LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to set the default gateway if I configured IPv4 and IPv6 address? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-set-the-default-gateway-if-i-configured-ipv4-and-ipv6-address-910180/)

leericlapton 10-26-2011 12:39 AM

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!

kbp 10-26-2011 07:57 AM

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


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