LRT
April 25th, 2008, 10:04 AM
i have two interfaces both assigned static ip addresses. here is /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.102
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1
auto eth1
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
gateway 192.168.1.102
eth1 is serving dhcp addresses. here is my subnet declaration in dhcpd.conf
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.10 192.168.2.50;
option routers 192.168.2.1;
}
when i try to start the network i get the following error:
root@pandion:/home/leandro# /etc/init.d/networking restart
* Reconfiguring network interfaces...
SIOCADDRT: No such process
Failed to bring up eth1.
[ OK ]
my theory is that i don't think it likes the gateway address for eth1 (which is the ip address of eth0). if i comment the gateway line for eth1 in the interfaces file and then restart networking i get a different error:
root@pandion:/etc/default# /etc/init.d/networking restart
* Reconfiguring network interfaces...
RTNETLINK answers: No such process
[ OK ]
i'm also doing ip forwarding and internet connection sharing from eth1 to eth0 with syscntl.conf and some iptables rules. this works fine because all my dhcp clients can browse the web and receive leased addresses.
what i don't understand is why i am getting those errors when i restart networking????? is the gateway address wrong???
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.102
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1
auto eth1
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
gateway 192.168.1.102
eth1 is serving dhcp addresses. here is my subnet declaration in dhcpd.conf
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.10 192.168.2.50;
option routers 192.168.2.1;
}
when i try to start the network i get the following error:
root@pandion:/home/leandro# /etc/init.d/networking restart
* Reconfiguring network interfaces...
SIOCADDRT: No such process
Failed to bring up eth1.
[ OK ]
my theory is that i don't think it likes the gateway address for eth1 (which is the ip address of eth0). if i comment the gateway line for eth1 in the interfaces file and then restart networking i get a different error:
root@pandion:/etc/default# /etc/init.d/networking restart
* Reconfiguring network interfaces...
RTNETLINK answers: No such process
[ OK ]
i'm also doing ip forwarding and internet connection sharing from eth1 to eth0 with syscntl.conf and some iptables rules. this works fine because all my dhcp clients can browse the web and receive leased addresses.
what i don't understand is why i am getting those errors when i restart networking????? is the gateway address wrong???