Default Gateway using ifconfig
im trying to figure out how to set up the default gateway with ifconfig with a command similar to
ifconfig eth0 inet 192.168.1.1 wich is to setup the ip address, any clues? |
oh and by the way im using slackware 9, wich really doesnt matter since ifconfig is the same on all linux systems.
|
ifconfig is used to set an ip address to your interface:
ifconfig eth0 192.168.0.1 netmask 255.255.255.0 for example. To set a default gateway, you need to use the route command: route add default gw 192.168.0.1 for example. |
thanks!! Works
|
All times are GMT -5. The time now is 07:45 AM. |