hey guys
just started posting on these forums and i've just started using linux so... bare with me.
okay, here's the situation: PC1 - router, PC2 and PC3, both in different subnets. to configure my computer as a router, here's the script that i run:
#!/bin/bash
echo 1 > /proc/sys/net/ipv4/ip_forward
ifconfig eth0 192.168.10.36 netmask 255.255.255.0
ifconfig eth0:1 192.168.10.110 netmask 255.255.255.0
route add -host 192.168.10.36 dev eth0
route add -host 192.168.10.110 dev eth0:1
route add -net 192.168.10.32 netmask 255.255.255.0 gw 192.168.10.33
route add -net 192.168.10.96 netmask 255.255.255.0 gw 192.168.10.97
I have to do this in class, and yes, that is the right netmask because we were given 192.168.10.0 Class C address range to play around with. As far as I know, this script should give address 192.168.10.33 and 192.168.10.97 direct connection (they should be able to ping each other) but for some reason, they can't. And I'm lost now. Please help. Thanks