Dual Ethernet in CentOS


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Dual Ethernet in CentOS
# 1  
Old 07-14-2011
Dual Ethernet in CentOS

Hi,

I have to Centos 5.5 Server which hold two ethernet card as I wanted two networks to be interfaced with.

One network has LAN connectivity, the other has internet connectivity on DHCP.

I could not make both work on same time. I tried to set static ip on internet router, then LAN connectivity works but internet does not work.

When I set dynamic DHCP, Internet works but LAN connectivity does not work.

I tried swapping the cables configuring them but the result remains same.

Can any one guide me what could be wrong?

Thanks,
Marutha
# 2  
Old 07-14-2011
Hi,
Can you run this command in the terminal and output here:

Code:
ifconfig -a

Centos has a nice GUI you can use to setup each NIC. I would use that. Make sure that each network is different IP range.
Example:
10.0.1.0
10.0.2.0

This will help if you don't have this setup this way.
# 3  
Old 07-14-2011
Hi,

One ethernet has extremly differnt ips.

eth1: 10.40.8.21
eth0: 192.168.1.4

Thanks,
Marutha
# 4  
Old 07-15-2011
Ok is this a project your doing at home or at work?

What is the default gateway/router?

Also after you make changes are you restating the network service?
Code:
service network restart

I would try to get the primary network working 1st. I guess this would be the DHCP/Internet access one. Which ever network that the router that controls the Internet access. Set the NIC using the GUI tool at system --> Admin --> Network. in there pic the NIC and input the info like router/gatway, DHCP. then use the command above to restart the network.
After that the network interface should work and you should be able to surf the web.
Then set the second interface. Add info router/gatway, no-DHCP. Then you have one more set edit the /etc/hosts file.

Lets say your host name is server1 that name should be set in DHCP to that name. If you don't know the host name type:
Code:
hostname

for the 2nd interfase add this line to your host file. For example:
Code:
10.40.8.21 sever1-2

This should do it. If you need more help let me know.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Hardware

Fedora 16 dual monitor - dual head - automatic monitor shutdown

Hi, I am experiencing troubles with dual monitors in fedora 16. During boot time both monitors are working, but when system starts one monitor automatically shut down. It happend out of the blue. Some time before when I updated system this happend but then I booted older kernel release and... (0 Replies)
Discussion started by: wakatana
0 Replies

2. Red Hat

How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation

Dear Linux Experts, On my windows 7 desktop with the help of Vmware workstation (Version 7.1), created virtual machine and installed Centos 5.7 successfully using ISO image. Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Discussion started by: Ananthcn
2 Replies

3. AIX

vio server ethernet to vio client ethernet(concepts confusing)

Hi In the vio server when I do # lsattr -El hdisk*, I get a PVID. The same PVID is also seen when I put the lspv command on the vio client partition. This way Im able to confirm the lun using the PVID. Similarly how does the vio client partition gets the virtual ethernet scsi client adapter... (1 Reply)
Discussion started by: newtoaixos
1 Replies

4. UNIX for Dummies Questions & Answers

installing centos dual boot with ubuntu

I have installed ubuntu desktop on my hard drive and I gave it all the hard drive. Now I want to repatriate the hard disk and give half of it to anther ext4. How do I do that? Can I do it fron with in the ubuntu? Second when I install the centos, how can I make to recognize the ubuntu and... (0 Replies)
Discussion started by: programAngel
0 Replies

5. SCO

Need help for Dual Ethernet on SCO UNIX

Mobo contains Dual Gigabit Ethernet Controller. One Eth is on Bus 2, Device 0 Second on Bus 5, Device 2 The one that is on Bus 2 works, and it can be pinged, bu otherone on bus 5, doesn't work at all. Can anyone help me in setting both cards to work? P.S. Drivers are from Marvell Yukon... (2 Replies)
Discussion started by: PNemesis
2 Replies

6. Windows & DOS: Issues & Discussions

Dual boot XP and Centos 5.x using the NTLDR bootloader

How can one dual boot Windows XP sp2 and Centos 5.x using the NTLDR bootloader? I wanted to install CentOS onto a spare partition on a machine with Windows XP already installed, leaving the MBR as it was and using the NTLDR bootloader. (2 Replies)
Discussion started by: proactiveaditya
2 Replies
Login or Register to Ask a Question