Computing.Net > Forums > Linux > NIC configuration not stable

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

NIC configuration not stable

Reply to Message Icon

Name: Peter
Date: November 5, 2003 at 07:27:41 Pacific
OS: Redhat 7.2
CPU/Ram: 268MHz/128
Comment:

My NIC configuration is not stable. Any time I reboot, I have to swap eth0 and eth1.

Any Help!!



Sponsored Link
Ads by Google

Response Number 1
Name: drake
Date: November 5, 2003 at 10:05:28 Pacific
Reply:

give us your scenario what is your route table look like etc
in know in my case i had to specify the external gateway for both cards etc...

another work around could be to place a script using ifconfig in your rc.local folder so its last to be run and fixes the issue etc.. but need more info..


0

Response Number 2
Name: Peter
Date: November 6, 2003 at 00:34:45 Pacific
Reply:

My route table is not the problem. As at now I can communicate with my LAN and WAN, but when I reboot I will not be able to communicate with either my LAN or my WAN. Then, I would have to swap eth0 and eth1, and also effect some changes in my route table before I can communicate. If I reboot again, I am back to square one (I can't communicate).


0

Response Number 3
Name: drake
Date: November 6, 2003 at 13:09:22 Pacific
Reply:

fixed ip or dhcp what are you using
try setting both gateways as your external gateway and set a static route for the internal thats how i resolved my same issue

for security at work i also wrote scripts for the .profile so that after a person was done it shut down the external card and when needed reinitiallized them you could simply wtite a shell script and place it on the desktop that resets ifconfig and the route example

example (im assuming your not logged in as root even though everyone does it including my self sometimes but here goes) i will signify line end by (e)

#!/bin/sh
sudo ifconfig etho 1.1.1.1 netmask 255.255.255.0 broadcast 1.1.1.255(e)
sudo route add default gw 1.1.1.2 dev eth0(e)
sudo ifconfig eth0 up(e)
exit(e)
exit(e)
simply do an ifconfig down first then add lines for eth1 as well this way when your desktop comes up you just double click the file or place it in your rc.local folder or .profile file to automatically do this at boot time

but if you repost include the messed up route table and any logs or dead.letter info you can

thanks


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


linux workstation securit... Linux partitioning...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: NIC configuration not stable

Solaris 8 NIC configuration www.computing.net/answers/linux/solaris-8-nic-configuration/14898.html

NIC and PPP configuration www.computing.net/answers/linux/nic-and-ppp-configuration/8405.html

NIC configuring problem www.computing.net/answers/linux/nic-configuring-problem/28838.html