LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 07-17-2004, 11:02 AM   #1
vanhelsing
Member
 
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 255.255.255.0 up "

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

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


Reply


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 10:59 AM
How to set up FTP Apache, command line phlyersphan Linux - Newbie 1 09-29-2004 05:54 AM
How to set the $PATH on command line? huangyanfeng Programming 3 11-07-2003 01:59 AM
How do i set up svga for command line greendusk Linux - Newbie 2 09-27-2003 10:17 AM
How do i set my command line resolution greendusk Linux - General 1 09-26-2003 06:14 PM


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

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