IPv6 Question related to plumbing interfaces
jason polachak <[email protected]> Fri, 27 Jun 2014 05:21:33 -0700
| Newsgroups | gmane.os.solaris.managers |
|---|---|
| Message-ID | <[email protected]> |
All,
This is kind of long so to summarize I am just trying to get a static IPv6 address plumbed with a persistent default route. I have gotten this to work however, not as I wanted. I have a working production server that I am comparing my results against. My question is why when I plumb the interface do I also get additional interfaces. I am just trying to enable and configure IPv6 on igb1.
1. Configure /etc/inet/ndpd.conf with the following:
ifdefault StatelessAddrConf false
ifdefault StatefulAddrConf false
2. Configure /etc/hostname6.igb1
addif x:y:z:1001::41/64 up
3. Start IPv6 and configure interface
ifconfig igb1 inet6 plumb
ifconfig igb1:1 inet6 plumb
ifconfig igb1:1 inet6 x:y:z:1001::40/64 up
4.Add persistent static route
route -p add -inet6 default z:y:z:1001::15
This works. However, this is what my output from ifconfig -a6 looks like as well as netstat -rn -f inet6
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
igb1: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 2
inet6 fe80::221:28ff:fe75:dc01/10
ether 0:21:28:75:dc:1
igb1:1: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 2
inet6 x:y:z:1001::41/64
igb1:2: flags=20a0841<UP,RUNNING,MULTICAST,NOLOCAL,ADDRCONF,IPv6> mtu 1500 index 2
inet6 subnet x:y:z:1001::/64
igb1:3: flags=20a0841<UP,RUNNING,MULTICAST,NOLOCAL,ADDRCONF,IPv6> mtu 1500 index 2
inet6 subnet x:y:z:1001::/64
Routing Table: IPv6
Destination/Mask Gateway Flags Ref Use If
--------------------------- --------------------------- ----- --- ------- -----
x:y:z:1001::/64 x:y:z:1001::41 U 1 4 igb1:1
x:y:z:1001::/64 x:y:z:1001::41 U 1 0 igb1:3
x:y:z:1001::/64 x:y:z:1001::41 U 1 0 igb1:2
fe80::/10 fe80::221:28ff:fe75:dc01 U 1 1 igb1
ff00::/8 fe80::221:28ff:fe75:dc01 U 1 0 igb1
default 2001:480:501:2302::15 UG 1 0
default fe80::215:62ff:fe3e:f343 UG 1 0 igb1
::1 ::1 UH 1 0 lo0
I thought the purpose of the /etc/inet/ndpd.conf file was to stop the autoconfiguration of igb1:2, and igb1:3. However, I must be wrong. I have compared my files to that of the server in production that is working. The production server shows just one interface configured igb1:1. How do i get mine to only configure one interface?
I have tried to add the suggested sun configuration of /etc/hostname6.igb1 to include
x:y:z:1001::41
addif x:y:z:1001::41/64 up
When I add this and reboot the zone. I do only get one interface configured igb1:1. However, I can only ping myself and not my gateway. My routing table afterwards via netstat -rn -f inet6 looks like as well as ifconfig -a6
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
igb1: flags=2000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 2
inet6 fe80::221:28ff:fe75:dc01/10
ether 0:21:28:75:dc:1
igb1:1: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 2
inet6 z:y:z:1001::41/64
Routing Table: IPv6
Destination/Mask Gateway Flags Ref Use If
--------------------------- --------------------------- ----- --- ------- -----
z:y:z:1001::/64 z:y:z:1001::41 U 1 4 igb1:1
default z: y:z:1001::15 UG 1 0
::1 ::1 UH 1 0 lo0
Thanks