Two Network card in one linux system

Hi,

I've configured two network card in ubuntu 12.10.
I've assigned ipaddress of each interface.

Eth1: address 192.168.0.227
         netmask 255.255.255.0
         gateway  192.168.0.1

Eth2: address 192.168.30.25
         netmask 255.255.255.0
         gateway 192.168.30.1

Now both interface connected to switch via cable..
Now when i unplugged eth1 cable then eth2 automatically shutdown/ not connected to cable.

But when i'm unplugged cable from eth2 then only eth2 disconnected not Eth1..
SO why eth2 disconnected when i'm unplugged eth1..

Please suggest the solution for the same ASAP

Regards,
xeroxzerox
LVL 6
xeroxzeroxAsked:
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.

MazdajaiCommented:
My assumption is your data was routed on eth0, therefore when you remove eth0, the system has no idea how to route the data.

That being said - you cannot have two default gateways. What is the network for eth0 and Eth1 being used? (data, management...etc) You need to figure out which default gateway to use.
0
omarfaridCommented:
what do you get if you run the command

netstat -rn

or the command

ifconfig -a
0
arnoldCommented:
you need to look at your gateway setting and add a metric.

look at netstat -rn look for UG
This defines the default gateway.

If you only have one UG entry pointing to eth0 that will explain why when eth0 goes does so does your access to anything other than 192.168.30.0/24

usually if eth2 goes down there is no reason for eth1 to go down.
Are you sure you do not have eth0/eth1?
 will wait for response to omarfarid's request for ifconfig -a

use Metric 10 within the interface that you want internet traffic to flow through (preferred)
Metric 20 on the interface that will work when the other is unavailable.

https://help.ubuntu.com/12.04/serverguide/network-configuration.html
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
xeroxzeroxAuthor Commented:
Issue solved by make bonding network
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

From novice to tech pro — start learning today.