Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have redhat linux 9 , alrdy have two ethernet cards one is connecting to my internet gateway and otherone is connecting to my LAN. I want to add one more NIC, after fixing the working lan card into PCI slot , linux server detecting this new hardware, and i am configuring the same. But in network devices couldn't find eth2 ( eth0 - Lan, eth1- internet gateway). If i try to add manually also it's not getting activated... but in hardware list i am able to see the 3rd NIC card.
So i understood card is getting detected and configured, but i am not able to see eth2 anyware.... as i want to configure static routing for one more network.
On RH distribution there is a program called netconfig; you should use it as below:
Code:
netconfig -d eth2
You must be root to do it. Don't fill the Gateway field as it is the default gateway for the system.
This program will create a config file "/etc/sysconfig/network-scripts/ifcfg-eth2", which will be used by "/etc/rc.d/init.d/network" script to configure the network.
Create a config file like /etc/sysconfig/network-scripts/ifcfg-eth2 (copy paste from eth0 or 1) & prior to it fix this lan card in any other box(windows also), note down the mac address & copy paste that into the ifcfg-eth2 over the existing mac of other device.
Even i tried to configure my 3rd NIC by using netconfig -d eth2 , able to configure but if i go to network device control and see the status of that card it's showing as inactive.
but eth2 starting when i reboot the server. like
starting etho - ok
starting eth1 - ok
starting eth2 - ok
but in network device control it's showing as inactive.
Even i tried Mr.Amit procedure by coping ifcfg-eth0 to ifcfg-eth2 and changed the ipaddress as per my requirements, but i don't how to put mac address in that config files. Can u give me exact syntax.
But one thing i noticed , after fixing the 3rd NIC card, if i go to network device control and if try to see the configuration for eth0 or eth1 i am getting the following msg before going that Card properties.
" eth1 has an alias to module e100 in module.conf,instead of currently loaded module 8139too "
[root@ismartblr2 network-scripts]# cat /etc/modules.conf
alias eth0 8139too
alias eth1 e100
alias scsi_hostadapter sym53c8xx
alias usb-controller usb-uhci
[root@ismartblr2 network-scripts]#
Every time more than one nic with the same chipset are plugged onto the system, it's almost impossible to determine which of each must be the desired ethernet port number.
On your "12-04-06, 01:26 PM" post you showed an alert message:
Code:
eth1 has an alias to module e100 in module.conf,instead of currently loaded module 8139too
That means that when the kernel loaded the 8139too driver, it discovered both nics and associated it with eth0 and eth1.
I think that you could only decide on two configurations:
Code:
eth0 - e100
eth1 - 8139
eth2 - 8139
or
Code:
eth0 - 8139
eth1 - 8139
eth2 - e100
Try to change the alias on /etc/modules.conf to
Code:
alias eth2 e100
and see if the 3 interfaces work. Then, if you prefer, you can change the order, placing the e100 as the first, editing the modules.conf again as below
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.