Need help setting up my Linux box as gateway
Okay i've got a slackware box with two ethernet cards. My first card (eth0) connects to my adsl modem, and the second (eth1) connects to my switch, which is connected to workstations.
eth0 gets its address assigned from the modem/internet. its IP address changes but gateway is 220.127.116.11 its DNS is 10.1.1.1
eth1 settings is
IP: 192.168.1.1 Subnet 255.255.255.0
one of my workstation settings is
IP: 192.168.1.2 Subnet: 255.255.255.0 Gateway: 192.168.1.1 DNS: 10.1.1.1
When i use the route command to activate my gateway
route add -net 192.168.1.0 netmask 255.255.255.0 gw 18.104.22.168 dev eth1
Its saids network unreachable. How do i resolve this?
also when i type route, it saids its default gateway is dslgw-211.29.13 im sure this is refering to the 22.214.171.124 gateway , Why does it say that??
im new to routing, can anyone help me resolve these issues so i can gain internet access to my workstations. Cheers