LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-13-2012, 07:11 AM   #1
veru.naresh
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
Question adding default gateway and aditional gateway


please answer my question........
I want to add default gateway and aditional dns valu to my lan card. can any one send commands for this kind of task.....?
 
Old 06-13-2012, 07:34 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
You need to tell us which Distribution (e.g. RedHat, Fedora, Ubuntu, Suse, Slackware) of Linux you're running and which version of that distribution.

Also your question about DNS is a bit confusing. Are you trying to use DHCP and populate /etc/resolv.conf automatically?

In general though:
You can add default route in the network configuration file or the configuration file of the first NIC. You can add additional routes at command line with "route add" command or make them permanent by adding a new route file associated with the NIC the route applies to to be started at the same time the NIC is.
 
  


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
Avoid adding of default gateway when dhcp renews g_gochev Linux - Networking 4 12-21-2011 10:02 PM
Problem in adding Default gateway and DNS . gardenair Linux - Newbie 5 06-19-2010 04:40 PM
Adding default gateway... imprise Linux - Newbie 2 05-17-2009 01:10 PM
normal default gateway reapperas with openvpn redirect-gateway jonnytabpni Linux - Networking 2 04-23-2009 02:11 PM
Automatically adding default gateway when booting enjoyzj Linux - Networking 2 04-13-2004 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:07 AM.

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
Open Source Consulting | Domain Registration