Help answer threads with 0 replies.
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 10-26-2011, 12:39 AM   #1
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
default 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
Senior Member
Registered: Aug 2009
Posts: 3,790

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


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 / openSUSE 5 05-19-2005 04:15 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:17 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
Open Source Consulting | Domain Registration