Adding Second Nic - Slackware
Gday all,Well I am still having issues adding my second nic to my new slack 10.2 box. I had an older box (which this one replaced) using 2 nics (different networks) perfectly.
So here is the details:
I have 2 networks , 1 (for example) has the ip subnet of 10.0.0.0/24 the other has the ip subnet of 192.168.0.0/24. I want people from either network to be able to communicate with the server using that subnets ip address, so it will be fast access and also count as a non download (different subnets are different internet connections).
eth0 = 192.168.0.0/24 - ip = 192.168.0.20 - gateway = 192.168.0.254
eth1 = 10.0.0.0/24 - ip = 10.0.0.20 - gateway = 10.0.0.254
I have tried the following:
ifconfig eth1 10.0.0.20 netmask 255.255.255.0 broadcast 10.0.0.255
route add default gw 192.168.0.254
route add eth1 gw 10.0.0.254
route add -host 10.0.0.20 netmask 255.255.255.0 gw 10.0.0.254
but alas when i do all these changes, i loose all net connectivity on the box. when I down eth1 , eth0 is still not connectable so i have to remove the routes for eth1 for eth0 to work again.
That is probably the most messy post I have ever done, so I hope people are able to follow it, if not, I will try to clean up (if its needing it).
Thanks in advance for any help given.
Cheers!