Red Hat 4.8: how to configure my server to use eth1 instead of eth0?

Hello Experts,

how to configure my server to use eth1 instead of eth0?

why am I doing this? who knows how management thinks through things...

thx so much...

Regards,
epifanio67Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
cjl7Connect With a Mentor freelance for hireCommented:
Hi,

In /etc/sysconfig/network-scripts you have one file per network interface. If you have two interfaces you probably have 'ifcfg-eth0' and 'ifcfg-eth1'.

Just copy the information from 'ifcfg-eth0' to 'ifcfg-eth1' but don't overwrite the Mac address.

Plug the ethernet cable into the eth1 port and do a 'system network restart' and you should be fine!

//jonas
0
 
epifanio67Author Commented:
thanks so much....

My apologies for my ignorance, what do you mean by "don't overwrite the Mac address"?

thanks again..

Regards
0
 
medveddConnect With a Mentor Commented:
I'm assuming that you have static IP address on eth0. If you get IP address through DHCP server,
you have to make changes there.

Simplest way is go to /etc/sysconfig/network-scripts directory.
Copy ifcfg-eth0 file to ifcfg-eth1 (overwrite it, if ifcfg-eth1 exists).
Open ifcfg-eth0 it text editor and in line

ONBOOT=yes

replace yes to no. Open ifcfg-eth1 in text editor end replace no to yes in line

ONBOOT=no

If ifcfg-eth1 has a line

HWADDR=xx:xx:xx:xx:xx

delete it.

Say

/etc/init.d/network restart

and replug cable from eth0 to eth1
0
 
epifanio67Author Commented:
thank you experts...
0
All Courses

From novice to tech pro — start learning today.