LinuxQuestions.org
Register a domain and help support LQ
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 10-26-2011, 12:39 AM   #1
leericlapton
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
Smile How to set the default gateway if I configured IPv4 and IPv6 address?


Firstly,I used the Rhel.
My question:
I configured both ipv4 and ipv6 address to the interface eth0,and I want to add both ipv4 and ipv6 default gateway to eth0,what about the routes file?
Right now I saved the the information in the /etc/sysconfig/network/routes
sys001A64131012:/etc # cat /etc/sysconfig/network/routes
9.181.137.154 9.181.137.1 255.255.255.255
default 9.181.137.1 0.0.0.0 eth0

So if I want to add a ipv6 default gateway,how can I modify the routes file?

Thanks in advance for your help!
 
Old 10-26-2011, 07:57 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Are you sure you posted that correctly? ... /etc/sysconfig/network is usually a file not a directory
 
  


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 know that HP-UX machine is configured with IPv6/IPv4? u4u Linux - General 1 08-04-2007 07:48 AM
I get IPV6 address and no IPV4. Why? erics_acvw Linux - Networking 2 10-22-2006 08:12 PM
How programatically in C do I get/set the default route or gateway address of eth0 jroberts5477 Linux - Networking 2 09-15-2006 01:11 PM
can a NIC have both, IPv4 and IPv6, address simultaneously?? b0nd Linux - Networking 2 06-04-2006 02:18 PM
How do I set the ip address for eth0, eth1 and the default gateway? abefroman Suse/Novell 5 05-19-2005 04:15 AM


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

Main Menu
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