Switching between ethernet interfaces on Ubuntu 10.04 SERVER

Posted by Chaitanya on Ask Ubuntu See other posts from Ask Ubuntu or by Chaitanya
Published on 2012-04-12T05:32:48Z Indexed on 2012/04/12 5:41 UTC
Read the original article Hit count: 338

Filed under:

I have ubuntu 10.04 "SERVER" installed on a system with two ehternet ports. I use only one at a time. I wanted to know if I can switch between ports without using ifup and ifdown every time. That means when I connect my Lan cable on eth0 it should work and it does. But when I disconnect the lan cable and connect it on eth1 I have to ifdown eth0 and only then it works. In my /etc/network/interfaces file I have configured both eth0 and eth1. there is no problem other than I have to switch it manually with ifdown and ifup everytime.

Please guide. Thanks in advance

© Ask Ubuntu or respective owner

Related posts about server