jeetstechie
April 13th, 2012, 11:55 AM
Hi,
I have three NIC at my Ubuntu machine. I have configured following interfaces on these NICs:
eth0 Link encap:Ethernet HWaddr e4:1f:13:68:aa:24
inet addr:10.128.0.150 Bcast:10.128.0.159 Mask:255.255.255.240
inet6 addr: fe80::e61f:13ff:fe68:aa24/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14232 errors:0 dropped:0 overruns:0 frame:0
TX packets:14536 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1448400 (1.4 MB) TX bytes:1496210 (1.4 MB)
Interrupt:28 Memory:96000000-96012800
eth1 Link encap:Ethernet HWaddr e4:1f:13:68:aa:26
inet addr:10.238.172.195 Bcast:10.238.172.223 Mask:255.255.255.224
inet6 addr: fe80::e61f:13ff:fe68:aa26/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:664 (664.0 B) TX bytes:1028 (1.0 KB)
Interrupt:40 Memory:98000000-98012800
eth2 Link encap:Ethernet HWaddr e4:1f:13:8d:44:04
inet addr:10.238.198.70 Bcast:10.238.198.95 Mask:255.255.255.224
inet6 addr: fe80::e61f:13ff:fe8d:4404/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46734 errors:0 dropped:0 overruns:0 frame:0
TX packets:594 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24963482 (24.9 MB) TX bytes:38352 (38.3 KB)
Interrupt:29 Memory:92000000-92012800
Following are the contents of my /etc/network/interfaces file:
c/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.128.0.150
netmask 255.255.255.240
network 10.128.0.144
broadcast 10.128.0.159
gateway 10.128.0.145
# dns-* options are implemented by the resolvconf package, if installed
dns-search test
auto eth1
iface eth1 inet static
address 10.238.172.195
netmask 255.255.255.224
network 10.238.172.192
broadcast 10.238.172.223
gateway 10.238.172.193
dns-search test
auto eth2
iface eth2 inet static
address 10.238.198.70
netmask 255.255.255.224
network 10.238.198.64
broadcast 10.238.198.95
gateway 10.238.198.65
dns-search test
I am getting following error when I run the ifup eth1 command:
root@ubuntu:~# ifup eth1
RTNETLINK answers: File exists
Failed to bring up eth1.
I tried to search the forum but couldn't get the exact solution to this problem. Early help is appreciated.
Thanks.
I have three NIC at my Ubuntu machine. I have configured following interfaces on these NICs:
eth0 Link encap:Ethernet HWaddr e4:1f:13:68:aa:24
inet addr:10.128.0.150 Bcast:10.128.0.159 Mask:255.255.255.240
inet6 addr: fe80::e61f:13ff:fe68:aa24/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14232 errors:0 dropped:0 overruns:0 frame:0
TX packets:14536 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1448400 (1.4 MB) TX bytes:1496210 (1.4 MB)
Interrupt:28 Memory:96000000-96012800
eth1 Link encap:Ethernet HWaddr e4:1f:13:68:aa:26
inet addr:10.238.172.195 Bcast:10.238.172.223 Mask:255.255.255.224
inet6 addr: fe80::e61f:13ff:fe68:aa26/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:664 (664.0 B) TX bytes:1028 (1.0 KB)
Interrupt:40 Memory:98000000-98012800
eth2 Link encap:Ethernet HWaddr e4:1f:13:8d:44:04
inet addr:10.238.198.70 Bcast:10.238.198.95 Mask:255.255.255.224
inet6 addr: fe80::e61f:13ff:fe8d:4404/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46734 errors:0 dropped:0 overruns:0 frame:0
TX packets:594 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24963482 (24.9 MB) TX bytes:38352 (38.3 KB)
Interrupt:29 Memory:92000000-92012800
Following are the contents of my /etc/network/interfaces file:
c/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.128.0.150
netmask 255.255.255.240
network 10.128.0.144
broadcast 10.128.0.159
gateway 10.128.0.145
# dns-* options are implemented by the resolvconf package, if installed
dns-search test
auto eth1
iface eth1 inet static
address 10.238.172.195
netmask 255.255.255.224
network 10.238.172.192
broadcast 10.238.172.223
gateway 10.238.172.193
dns-search test
auto eth2
iface eth2 inet static
address 10.238.198.70
netmask 255.255.255.224
network 10.238.198.64
broadcast 10.238.198.95
gateway 10.238.198.65
dns-search test
I am getting following error when I run the ifup eth1 command:
root@ubuntu:~# ifup eth1
RTNETLINK answers: File exists
Failed to bring up eth1.
I tried to search the forum but couldn't get the exact solution to this problem. Early help is appreciated.
Thanks.