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...

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cjl7freelance for hireCommented:

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!


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
epifanio67Author Commented:
thanks so much....

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

thanks again..

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


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


If ifcfg-eth1 has a line


delete it.


/etc/init.d/network restart

and replug cable from eth0 to eth1
epifanio67Author Commented:
thank you experts...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.