Upgrading to IPv6 with IPv4 not configured
This scenario shows how to set up hosts and a router for IPv6 without IPv4 settings configured.
The network used in this example consists of a router
and two subnets. There are two hosts on each subnet: the router, and
another host. By the end of the scenario, the router will advertise
prefix 3ffe:0:0:aaaa::/64
on network interface en0
and
prefix 3ffe:0:0:bbbb::/64
on network interface en1
.
You will first configure the machines to temporarily support IPv6 so
that you can test them. You will then configure the machines so they
will be IPv6-ready at boot time.
This scenario assumes that the bos.net.tcp.client fileset is installed.
To upgrade to IPv6 with IPv4 already configured, see Upgrading to IPv6 with IPv4 configured.
- The information in this how-to scenario was tested using specific versions of AIX®. The results you obtain might vary significantly depending on your version and level of AIX.
Step 1: Set up the hosts for IPv6
- With root authority, type the following command on each host on
the subnet:
autoconf6 -A
This will bring up all IPv6-capable interfaces on the system.Note: To bring up a subset of interfaces, use the -i flag. For example,autoconf6 -i en0 en1
will bring up interfacesen0
anden1
. - Type the following command to view your interfaces:
netstat -ni
Your results should look similar to the following:Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll en0 1500 link#3 0.4.ac.17.b4.11 7 0 17 0 0 en0 1500 fe80::204:acff:fe17:b411 7 0 17 0 0 lo0 16896 link#1 436 0 481 0 0 lo0 16896 127 127.0.0.1 436 0 481 0 0 lo0 16896 ::1 436 0 481 0 0
- Start the ndpd-host daemon by typing the following
command:
startsrc -s ndpd-host
Step 2: Set up the router for IPv6
- With root authority, type the following command on the router
host:
autoconf6 -A
This will bring up all IPv6-capable interfaces on the system.Note: To bring up a subset of interfaces, use theYour results should look similar to the following:-i
flag. For example,autoconf6 -i en0 en1
will bring up interfacesen0
anden1
.Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll en1 1500 link#2 0.6.29.dc.15.45 0 0 7 0 0 en1 1500 fe80::206:29ff:fedc:1545 0 0 7 0 0 en0 1500 link#3 0.4.ac.17.b4.11 7 0 17 0 0 en0 1500 fe80::204:acff:fe17:b411 7 0 17 0 0 lo0 16896 link#1 436 0 481 0 0 lo0 16896 127 127.0.0.1 436 0 481 0 0 lo0 16896 ::1 436 0 481 0 0
- Manually configure global addresses on the router's interfaces
belonging to each of the two subnets by typing the following commands:
# ifconfig en0 inet6 3ffe:0:0:aaaa::/64 eui64 alias # ifconfig en1 inet6 3ffe:0:0:bbbb::/64 eui64 alias
Note: You will need to do this for every subnet that your router is sending packets to. - To activate IPv6 forwarding, type the following:
no -o ip6forwarding=1
- To start the ndpd-router daemon, type the following:
startsrc -s ndpd-router
The ndpd-router daemon will advertise prefixes corresponding to the global addresses that you configured on the router. In this case, the ndpd-router will advertise prefix
3ffe:0:0:aaaa::/64
onen0
and prefix3ffe:0:0:bbbb::/64
onen1
. - Press Enter to continue.
- Press Enter a second time to confirm your decision and begin the installation of your software bundle.
Step 3. Set up IPv6 to be configured on the hosts at boot time
- Open the /etc/rc.tcpip file using your favorite text editor.
- Uncomment the following lines in that file:
# Start up autoconf6 process start /usr/sbin/autoconf6 ""
# Start up ndpd-host daemon start /usr/sbin/ndpd-host "$src_running"
- Add the -A flag to
start /usr/sbin/autoconf6 ""
:start /usr/sbin/autoconf6 "" -A
- Repeat this process for each host.
Step 4: Set up IPv6 to be configured on the router at boot time
- Open the /etc/rc.tcpip file in your favorite text editor.
- Uncomment the following line in that file:
# Start up autoconf6 process start /usr/sbin/autoconf6 ""
- Add the -A flag to that line:
start /usr/sbin/autoconf6 "" -A
- Add the following lines immediately after the line that you just
uncommented in the previous step:
In this scenario, our network has only two subnets,# Configure global addresses for router ifconfig en0 inet6 3ffe:0:0:aaaa::/64 eui64 alias ifconfig en1 inet6 3ffe:0:0:bbbb::/64 eui64 alias
en0
anden1
. You will need to add a line to this file for every subnet that your router is sending packets to. - Uncomment the following line in the file:
# Start up ndpd-router daemon start /usr/sbin/ndpd-router "$src_running"
- Run the following command to enable IP forwarding at boot time:
no -r -o ip6forwarding=1