fixed ip for more than 1 nic - more than 1 network - multi homed
Friends,
I have been struggling with the ubuntu 11.04. I have 2 nic cards and wish the machine to be in 2 diff networks. here is my /etc/network/interfaces file ----- auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 10.100.100.16 netmask 255.0.0.0 gateway 10.1.1.1 auto eth1 iface eth1 inet static address 172.16.100.16 netmask 255.255.0.0 ------------------------------------------------------- here is my /etc/resolv.config file # Generated by NetworkManager nameserver 208.233.14.16 nameserver 208.233.14.226 ------------- It seems that taking manual control from DHCP is really hard It also seems that having 2 nic in 2 nets is hard. I am unable to ping 172.16.100.14 which is connected via a known good crossover. ----------- a /sbin/ifconfig show that the 10 net is still getting DHCP ( 10.2.1.NNN ) eth1 Link encap:Ethernet HWaddr 00:1c:c4:17:cf:c3 inet addr:172.16.100.16 Bcast:172.16.255.255 Mask:255.255.0.0 inet6 addr: fe80::21c:c4ff:fe17:cfc3/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:71 errors:0 dropped:0 overruns:0 frame:0 TX packets:726 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5714 (5.7 KB) TX bytes:177842 (177.8 KB) Interrupt:17 eth2 Link encap:Ethernet HWaddr 00:14:d1:1d:2f:15 inet addr:10.2.1.154 Bcast:10.255.255.255 Mask:255.0.0.0 inet6 addr: fe80::214:d1ff:fe1d:2f15/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:378791 errors:0 dropped:0 overruns:0 frame:0 TX packets:1975 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:37236121 (37.2 MB) TX bytes:300314 (300.3 KB) Interrupt:56 Base address:0xe000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:3447 errors:0 dropped:0 overruns:0 frame:0 TX packets:3447 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:279472 (279.4 KB) TX bytes:279472 (279.4 KB) Thanks for any help with this. ( i thought unity was bad until i tried to have 2 nic w 2 fixed ipNums , so is Ubuntu just going to be for tablets and such in the future ? ) |
Now I have to guess a little - not running Ubuntu myself but pure Debian.
If you don't have a network-manager (there are several but I think Ubuntu's is actually named network-manager) then a Debian-system uses /etc/network/interfaces for nic-configuration. However, I do believe Ubuntu uses a special manager for networking (as mentioned) this means you have to configure your nic's through that. Look at your post: you have configured eth0 & eth1 in /etc/network/interfaces, but ifconfig shows eth1 & eth2. Quote:
Well, of course anything you don't master might seem 'hard' - but for you, here, I think all you need is understanding in how your distro handles networking. Once you get configuration right it will just work. --- So to make it clear: Checkout Ubuntus network-manager and configure your nic's there. Forget about /etc/network/interfaces it is not read. |
All times are GMT -5. The time now is 08:32 PM. |