Change Default Gateway Linux Command
RegisterLogin
Change Default Gateway Linux Command
Post Description: Change Default Gateway Linux Command
Tags: Change, Default, Gateway, Linux, Command
This Post Was Posted On Feb 29, 2008 By web hosting #788
Post Description: Change Default Gateway Linux Command
Tags: Change, Default, Gateway, Linux, Command
This Post Was Posted On Feb 29, 2008 By web hosting #788
Change Default Gateway Linux Command by web hosting
Thanks
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
oorangeboy
#994 1
worked like a charm thanks.
Aug 03, 2007 Reply Report abuse
hostman
#993 2
If you want to chage the default gateway in linux using the linux shell, do this:
Execute this comand to display your network configuration:
Code:
It will show something like this:
Code:
In this example, my gateway is set to 210.96.156.101 If you want to change it, user your favorite editor and edit, then save it. I like using nano or VI. if you find vi hard to master, use nano, its much easier to use. if you are going to us nano, execute this command to edit:
Code:
Please note in this example i am using Redhat/Fedora distribution.
Execute this comand to display your network configuration:
Code:
cat /etc/sysconfig/network
It will show something like this:
Code:
NETWORKING=yes
HOSTNAME=host.domain.com
GATEWAY=210.96.156.101
HOSTNAME=host.domain.com
GATEWAY=210.96.156.101
In this example, my gateway is set to 210.96.156.101 If you want to change it, user your favorite editor and edit, then save it. I like using nano or VI. if you find vi hard to master, use nano, its much easier to use. if you are going to us nano, execute this command to edit:
Code:
nano /etc/sysconfig/network
Please note in this example i am using Redhat/Fedora distribution.
Aug 24, 2006 Reply Report abuse
©2011 Webune Forums - Mon Dec 19, 2011 6:16 pm
Powered by: Webune Forums V3
Powered by: Webune Forums V3