I have two physical networks:
eth0 192.168.0.0/24 with with several PCs and NAT adresss 192.168.0.1 where PPPoE connecting to inet;
eth1 192.168.0.1/24 with several PCs and no internet.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.2
gateway 192.168.0.1
netmask 255.255.255.0
auto eth1
iface eth1 inet static
address 192.168.1.2
netmask 255.255.255.0
up route add -net 192.168.0.0/24 gw 192.168.0.1 dev eth0
up route add -net 192.168.1.0/24 gw 192.168.1.2 dev eth1
and got:
Reconfiguring network interfaces...RTNETLINK answers: File exists
Failed to bring up eth1.
what route I should add and why eth1 failed? What default gateway I should add for 192.168.1.0/24 network? Can anywone help?