Monday, October 17, 2005

IPv6-Over-IPv4 tunnel (2)

1) /etc/hostname.eri0
   blade up
   addif SourceIP up
  * repeat for DestinIP
2) /etc/hostname6.ip.tun0
   plumb tsrc SourceIP tdst DestinIP up
  * repeat on DestinIP

Thursday, October 06, 2005

IPv6 version of in.routed

in.ripngd

Wednesday, October 05, 2005

To advertise prefixes (2 steps)

1) /etc/inet/ndpd.conf : turns on advertising and defines prefixes
2) in.ripngd : advertises

ndpd.conf must contain at least two entries

1) ifdefault AdvSendAdvertisements on
2) prefix fec0:0:0:9255::0/64 eri0

Enable ip6_forwarding

ndd -set /dev/ip ip6_forwarding 1

Bring UP and DOWN eri0 with IPv6

ifconfig eri0 inet6 plumb up
ifconfig eri0 inet6 down unplumb
* don't forget lo0

List PID and full path

pgrep -lf sshd

Tuesday, October 04, 2005

ping with IPv6

ping -s -A inet6 blade

List routing for IPv6 only

netstat -r -f inet6

List multicast group info for IPv6

netstat -g -f inet6

ifconfig flag for IPv6 only

ifconfig -6a
* ifconfig -4a for IPv4

To configure IPv6 (2 files)

/etc/hostname6.eri0
/etc/inet/ipnodes

Service in IPv6 that used to need a separate daemon

Discover routers
* NDP replaces RDISC (Router Discovery Protocol)

Daemon that autoconfigures and discovers routers

in.ndpd
* NDP stands for Neighbor Discovery Protocol

Multicast address for all link-local systems

FF02::1
* replaces 224.0.0.1

loopback address

::1

Example of tunneling IPv4 in IPv6

::FFFF:xxxx:xxxx
* where x's are a hex representation of an IPv4 address

Two autoconfiguration standards

1) Stateful : not preferred. Requires a DHCP server.
2) Stateless : host generates address based on router-advertised prefixes and its own interface identifier

Four Format Prefixes - no hex yet

Link-local : same as MAC addresses
Site-local : same as internal 192.168 addresses
Aggregatable global : the entire net
Multicast

Hex representation of Format Prefixes

Link-local : FE8
Site-local : FEC
Aggregatable global : 2 or 3
Multicast : FF

How many colon-separated parts?

8
* IPv6 is twice as good as IPv4

Three address types

1) Unicast
2) Multicast : replaces broadcasting of IPv4
3) Anycast : messages go to the closest member

IPv6 address consists of two parts

1) Format Prefix
2) Interface Identifier