Routing thru a new network card
compdoc
compdoc at hotrodpc.com
Thu Aug 2 02:24:58 UTC 2012
> ifconfig eth1 192.168.100.3 netmask 255.255.255.0
>
> now I want to route every internet traffic to eth1, or at least trafic
> to
> 177.67.81.98
>
> so I did:
>
> route add 177.67.81.98 dev eth1
I don't think that's going to work. Basically, you have added a route
telling your pc how to reach the network "177.67.81.x", but the internet has
many more addresses than that.
You need to send all non-local (internet) traffic to a certain router, known
as the default gateway. Your system can only have one such gateway
configured.
So, you have to delete the existing gateway address from eth0, and add a new
one to the eth1 card. The gateway address will be the local address for the
cable modem, which is likely something like 192.168.100.1
Searching Google I found the following site, but it's certainly not the only
one:
http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddre
ss/
More information about the ubuntu-users
mailing list