ranjithr
February 6th, 2013, 11:41 AM
Hi,
I have a PC with Ubuntu 10.04 running on it. The PC have 6 Ethernet interfaces. I want to configure all with static IP. The first one, eth0 si to be connected in a public domain and all the others to a private domain with same gateway and same netmask. The /etc/network/interfaces is like below :
auto eth0 eth1 eth2 eth3 eth4 eth5
iface eth0 inet static
address xx.4.8.180
gateway xx.4.8.254
netmask 255.255.255.0
iface eth1 inet static
address 192.168.1.201
gateway 192.168.1.254
netmask 255.255.255.0
iface eth2 inet static
address 192.168.1.202
gateway 192.168.1.254
netmask 255.255.255.0
iface eth3 inet static
address 192.168.1.203
gateway 192.168.1.254
netmask 255.255.255.0
iface eth4 inet static
address 192.168.1.204
gateway 192.168.1.254
netmask 255.255.255.0
iface eth5 inet static
address 192.168.1.205
gateway 192.168.1.254
netmask 255.255.255.0
The end idea is to make the five Ethernet interfaces like an network switch. That is if I ping 192.168.1.101, I should get the reply if I connect the cable to each one of the interfaces. I could not do that currently. It works sometimes from eth1, sometimes from eth5.
The route table is as below:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth5
192.168.1.0 * 255.255.255.0 U 0 0 0 eth2
192.168.1.0 * 255.255.255.0 U 0 0 0 eth3
192.168.1.0 * 255.255.255.0 U 0 0 0 eth4
xx.4.8.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth5
default * 0.0.0.0 U 0 0 0 eth0
default 192.168.1.254 0.0.0.0 UG 100 0 0 eth4
default 192.168.1.254 0.0.0.0 UG 100 0 0 eth3
default 192.168.1.254 0.0.0.0 UG 100 0 0 eth2
default 192.168.1.254 0.0.0.0 UG 100 0 0 eth1
default 192.168.1.254 0.0.0.0 UG 100 0 0 eth5
Please help.
I have a PC with Ubuntu 10.04 running on it. The PC have 6 Ethernet interfaces. I want to configure all with static IP. The first one, eth0 si to be connected in a public domain and all the others to a private domain with same gateway and same netmask. The /etc/network/interfaces is like below :
auto eth0 eth1 eth2 eth3 eth4 eth5
iface eth0 inet static
address xx.4.8.180
gateway xx.4.8.254
netmask 255.255.255.0
iface eth1 inet static
address 192.168.1.201
gateway 192.168.1.254
netmask 255.255.255.0
iface eth2 inet static
address 192.168.1.202
gateway 192.168.1.254
netmask 255.255.255.0
iface eth3 inet static
address 192.168.1.203
gateway 192.168.1.254
netmask 255.255.255.0
iface eth4 inet static
address 192.168.1.204
gateway 192.168.1.254
netmask 255.255.255.0
iface eth5 inet static
address 192.168.1.205
gateway 192.168.1.254
netmask 255.255.255.0
The end idea is to make the five Ethernet interfaces like an network switch. That is if I ping 192.168.1.101, I should get the reply if I connect the cable to each one of the interfaces. I could not do that currently. It works sometimes from eth1, sometimes from eth5.
The route table is as below:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth5
192.168.1.0 * 255.255.255.0 U 0 0 0 eth2
192.168.1.0 * 255.255.255.0 U 0 0 0 eth3
192.168.1.0 * 255.255.255.0 U 0 0 0 eth4
xx.4.8.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth5
default * 0.0.0.0 U 0 0 0 eth0
default 192.168.1.254 0.0.0.0 UG 100 0 0 eth4
default 192.168.1.254 0.0.0.0 UG 100 0 0 eth3
default 192.168.1.254 0.0.0.0 UG 100 0 0 eth2
default 192.168.1.254 0.0.0.0 UG 100 0 0 eth1
default 192.168.1.254 0.0.0.0 UG 100 0 0 eth5
Please help.