SuSE Linux (sles10) IPv6 Configuration

Source: Internet
Author: User
Document directory
  • Our sample IPv6 setup
  • Task: adding an IPv6 address
  • Task: adding a default route
  • Task: Display your IPv6 IP addresses Configuration
  • Task: testing your IPv6 Configuration

How do I configure IPv6 networking Under SuSE Linux Enterprise Server (sles v10.2) or opensuse Linux by Novell?

IPv6 support under YaST is not upto date. You need to manually edit the configuration files. This is not recommended as YaST may get confused later on.

Sles10 IPv6 Configuration from the command line

Use the following command to set new IPv6 address using ip command Under SuSE Linux.

Our sample IPv6 setup
  • IPv6 IP: 2607: f0d0: 1002: 0011: 0000: 0000: 0000: 0002/64
  • IPv6 default router IP: 2607: f0d0: 1002: 0011: 0000: 0000: 0000: 0001
Task: adding an IPv6 address

Type the following command:
ip -6 address add {IPv6-Address}/{NetMask} dev {device-name}
To add 2607: f0d0: 1002: 0011: 0000: 0000: 0000: 0002/64 IP to eth0, enter:
# ip -6 address add 2607:f0d0:1002:0011:0000:0000:0000:0002/64 dev eth0

Task: adding a default route

Type the following command:
ip -6 route add default via {IP6-Router-IP} dev {device-name}
Add a default IPv6 router IP 2607: f0d0: 1002: 0011: 0000: 0000: 0000: 0001, enter:
# ip -6 route add default via 2607:f0d0:1002:0011:0000:0000:0000:0001 dev eth0

Task: Display your IPv6 IP addresses Configuration

Type the following command:
# ip -6 address show dev eth0
To review your IPv6 routing table, enter:
# ip -6 route show

Task: testing your IPv6 Configuration

Type the following command:
# ping6 ipv6.google.com
# ping6 www.cyberciti.biz

Sample output:

PING6(56=40+8+8 bytes) 2607:f0d0:3001:9::2 --> 2607:f0d0:1002:11::416 bytes from 2607:f0d0:1002:11::4, icmp_seq=0 hlim=60 time=34.481 ms16 bytes from 2607:f0d0:1002:11::4, icmp_seq=1 hlim=60 time=34.207 ms16 bytes from 2607:f0d0:1002:11::4, icmp_seq=2 hlim=60 time=33.994 ms
Persistence IPv6 Configuration

Above commands will not keep IPv6 Configuration guest SS reboots unless the configuration files are updated accordingly. You need to update the following IPv6 deployments under sles/opensuse Linux:

  • Eth0 IPv6 Configuration file:/Etc/sysconfig/Network/ifcfg-eth-ID-$ {ethidfile}
  • Default IPv6 routing configuration file:/Etc/sysconfig/Network/routes

You can find out the value of ethidfile by typing the following command:
#  ip link show dev eth0 | awk '/link/{ print $2 }'
#  ETHIDFILE=$(ip link show dev eth0 | awk '/link/{ print $2 }')

Now, open configuration file, enter:
# cp /etc/sysconfig/network/ifcfg-eth-id-${ETHIDFILE} /root/ifcfg-eth-id-${ETHIDFILE}.bak
vi /etc/sysconfig/network/ifcfg-eth-id-${ETHIDFILE}

Add configuration as follows:

 LABEL_0='0'IPADDR_0='2607:f0d0:1002:0011:0000:0000:0000:0002'PREFIXLEN_0='64' 

Save and close the file. Now, update default IPv6 Routing:
# cp /etc/sysconfig/network/routes /root/routes.bak
# echo 'default 2607:f0d0:1002:0011:0000:0000:0000:0001 - -'  >> /etc/sysconfig/network/routes

Finally, restart the networking under sles10:
# service network restart
Test your setup, enter:
# ping6 www.cyberciti.biz
# ping6 ipv6.google.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.