Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-17-2004, 10:02 AM   #1
Registered: May 2004
Posts: 130

Rep: Reputation: 15
How to set Gateway by command line

I know that to IP addres and Netmask use command

"ifconfig eth0 161.246.xx.xx netmask up "

but I don't know How to set Gateway and DNS?
pls, tell me how to set that ?
Old 07-17-2004, 11:42 AM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
add a "network to be gatewayed" by a certain device say eth1.
route add mygateway eth1
route add -net netmask gw mygateway


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up DNS via command line? johnnybhoy67 Linux - Networking 5 10-21-2005 09:59 AM
How to set up FTP Apache, command line phlyersphan Linux - Newbie 1 09-29-2004 04:54 AM
How to set the $PATH on command line? huangyanfeng Programming 3 11-07-2003 12:59 AM
How do i set up svga for command line greendusk Linux - Newbie 2 09-27-2003 09:17 AM
How do i set my command line resolution greendusk Linux - General 1 09-26-2003 05:14 PM

All times are GMT -5. The time now is 05:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration