Need Help setting up adsl gateway with slackware
Okay i've a slackware box, with two ethernet cards . One connects to my adsl modem which connects to the internet (eth0). and the other connects to my switch (eth1), and two workstations are connected to my switch .
eth0 gets its address dhcp from modem/internet, its IP changes but its gateway IP is 18.104.22.168 DNS server is 10.1.1.1
My eth1 settings is
IP: 192.168.1.1 Subnet: 255.255.255.0
one of my workstation settings are
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 try and activate the gateway
route add -net 192.168.1.0 netmask 255.255.255.0 gw 22.214.171.124 dev eth1
Its saids network unreachable, not sure how to resolve this. Also when i type the route command, my default gateway is dslgw-211.29.13 im pretty sure that is refering to the 126.96.36.199 gateway, im not sure why its saids this.
Im new to routing. Can anyone help me resolve these issues? Cheers