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?
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:
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

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

Regards
0
medveddCommented:
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
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.