Number of NIC card of my desktop = 2.
eth0: 10.255.2.191 netmask 255.255.255.0 default gateway 10.255.2.1 broadcast 255.255.255.0
I have bought a switch and want to provide Internet service to another 4 desktops. My PC will act as router. I have configured the
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 10.255.2.191 netmask 255.255.255.0 network 10.255.2.0 broadcast 10.255.2.255 gateway 10.255.2.1 auto eth1 iface eth1 inet static address 192.168.0.9 netmask 255.255.255.248 broadcast 192.168.0.15 gateway 10.255.2.1 up route add -net 192.168.0.8/29 gw 10.255.2.1 dev eth1
Host Desktop: There are 4 host desktops. One of host desktop configuration is given below:
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.0.10 network 192.168.0.8 netmask 255.255.255.248 gateway 192.168.0.9
But Host desktop cannot connect to Internet. What should I do?