Results 1 to 3 of 3
Hello,
In windows when setting up a network connection you enter the IP, subnet mask, etc.. I learned how to do all that in linux, but I was puzzled how ...
- 03-04-2007 #1Just Joined!
- Join Date
- Jul 2005
- Posts
- 29
setting gateway for interface
Hello,
In windows when setting up a network connection you enter the IP, subnet mask, etc.. I learned how to do all that in linux, but I was puzzled how to set the gateway and DNS IP.
For instance, the DHCP router on my network is 192.168.1.2, but the gateway to the internet is actually 192.168.1.1
When I connect to my network linux automatically takes 192.168.1.2 as the gateway, but it's wrong. Is there a way to set 192.168.1.1 as the gateway?
What would be the command?
Thanks in advance guys!!
- 03-04-2007 #2
Check out man ip.
Example: ip route add default via 192.168.1.1
- 03-04-2007 #3Just Joined!
- Join Date
- Jul 2005
- Posts
- 29
thank you!


Reply With Quote