Equipment Configuration: Routers 6DEPLOY. IPv6 Deployment and Support.

101
Equipment Configuration: Routers 6DEPLOY. IPv6 Deployment and Support

Transcript of Equipment Configuration: Routers 6DEPLOY. IPv6 Deployment and Support.

Equipment Configuration:Routers

6DEPLOY. IPv6 Deployment and Support

Routing Equipment

CiscoJuniper6WINDHitachiHuaweiFreeBSDDebianWindowsQuagga

11th September 2008 Equipment Configuration: Routers 2

CISCO

11th September 2008 Equipment Configuration: Routers 3

Phase III

Phase II

Phase I Early Adopter Deployment

Production Backbone Deployment

Enhanced IPv6 Services

Market TargetIOS Release

11th September 2008 Equipment Configuration: Routers 4

Cisco IOS IPv6 Roadmap

IOS upgrade =Free IPv6

IPv6 features are supported in these Cisco IOS Release trains:

12.0S, 12.2T, 12.2S, 12.3, 12.3T, 12.4, 12.4T and beyond

Cisco – basicsEnable IPv6 on an interface

interface xxxxxipv6 enable

Configure an addressinterface xxxxx

ipv6 address X:X:X:X::X/<0-128> (general address)ipv6 address X:X:X:X::X (link-local address)ipv6 address autoconfig (auto-configuration)

Example: LAN Interfaceinterface Ethernet0/0

ip address 192.168.1.254 255.255.255.0 ipv6 address 2001:DB8:123:1::2/64

11th September 2008 Equipment Configuration: Routers 5

11th September 2008 Equipment Configuration: Routers 6

Cisco – tunnel (1)

Configure an IPv6 in IPv4 tunnelinterface tunnel x

tunnel source interface

tunnel destination X.X.X.X

ipv6 address X:X:X:X::X/<0-128>

tunnel mode ipv6ip (for direct tunneling)

tunnel mode gre ip (for gre encapsulation)

11th September 2008 Equipment Configuration: Routers 7

Cisco – tunnel (2)

Configure an IPv6 in IPv6 tunnelinterface tunnel x

tunnel source interface

tunnel destination X:X:X:X::X

ipv6 address X:X:X:X::X/<0-128>

tunnel mode ipv6 (for direct tunneling)

tunnel mode gre ipv6 (for gre encapsulation)

11th September 2008 Equipment Configuration: Routers 8

Cisco – routing

Enable IPv6 routingipv6 unicast-routing

Configure static routesipv6 route prefix/prefixlen next_hop

Example: ipv6 route ::/0 2001:DB8:10A:1001::1

11th September 2008 Equipment Configuration: Routers 9

Cisco – OSPFv3

interface Ethernet0/0ipv6 address 2001:DB8:1:1::1/64ipv6 ospf 1 area 0!interface Ethernet0/1ipv6 address 2001:DB8:1:2::2/64ipv6 ospf 1 area 1!ipv6 router ospf 1router-id 2.2.2.2

Area 1

Area 0

ABR

Eth0/1

Eth0/0

11th September 2008 Equipment Configuration: Routers 10

Cisco – BGPno bgp4 default unicast

bgp router-id a.b.d.f

router bgp xxxx

neighbor X:X:X:X::X remote-as …

neighbor X:X:X:X::X …

address-family ipv6

neighbor X:X:X:X::X activate

neighbor X:X:X:X::X …

network 2001:DB8::/32

no synchronization

exit address-family

11th September 2008 Equipment Configuration: Routers 11

Cisco – routing policy filtering

ipv6 prefix-list bgp-in-ipv6 seq 5 deny ::/0-> Means filter ::/0 exactly

ipv6 prefix-list bgp-in-ipv6 seq 10 deny 3ffe::/16 le 128 ipv6 prefix-list bgp-in-ipv6 seq 15 deny 2001:DB8::/32 le 128ipv6 prefix-list bgp-in-ipv6 seq 20 permit 2001::/32ipv6 prefix-list bgp-in-ipv6 seq 25 deny 2001::/32 le 128 ipv6 prefix-list bgp-in-ipv6 seq 30 permit 2002::/16ipv6 prefix-list bgp-in-ipv6 seq 35 deny 2002::/16 le 128

-> Means every prefix matching 2001::/32 except 2001::/32 le 128

ipv6 prefix-list bgp-in-ipv6 seq 40 permit 2001:4000::/18 ge 32 le 32

ipv6 prefix-list bgp-in-ipv6 seq 45 permit 2001::/16 ge 32 le 35-> Means every 2001::/16 derived prefix, with length between 32 and 35

11th September 2008 Equipment Configuration: Routers 12

Cisco – ACLs

ACLipv6 access-list vty-ipv6

permit tcp 2001:DB8:0:401::/64 any eq telnet

deny ipv6 any any log-input

Applying an ACL to an interfaceipv6 traffic-filter <acl_name> in | out

Restricting access to the routeripv6 access-class <acl_name> in | out

Applying an ACL to filter debug trafficdebug ipv6 packet [access-list <acl_name>] [detail]

11th September 2008 Equipment Configuration: Routers 13

Cisco – show commandsshow bgp

show bgp ipv6 unicast/multicast/all summary

show bgp ipv6 neigh <addr> routes

show bgp ipv6 neigh <addr> advertised-routes

show bgp ipv6 neigh <addr> received-routes

show ipv6 route

show ipv6 interface

show ipv6 neighbors

JUNIPER

11th September 2008 Equipment Configuration: Routers 14

11th September 2008 Equipment Configuration: Routers 15

Juniper – IPv6 support (1)

No Special code, uniform on all platformAddressing and forwarding

• H/W forwarding• Addressing (link, global, Neighbor discovery)• Stateless autoconfiguration

Routing• BGP4+, IS-IS, OSPFv3, RIPng, Static

Operation• telnet, ssh, ping traceroute,ICMPv6• H/W based firewall filter• uRPF check

Deployment• Dualstack, configured tunnel, L3 MPLS VPN

11th September 2008 Equipment Configuration: Routers 16

Juniper – IPv6 support (2)

IPv6 Multicast: BGP, PIMv2 with RP support, SSM

EBGP peering with linklocal addressIPv6 over MPLSIPv6 flow monitoring

IPv6 features are supported in these JUNOS Releases: 5.x, 6.x and 7.x

11th September 2008 Equipment Configuration: Routers 17

Juniper – basics

Interface configurationinterfaces {

name_of_interface {

unit x {

family inet {

address X.X.X.X/prefixlength;

}

family iso {

address Y.Y.Y.Y.Y.Y;

}

family inet6 {

address Z:Z:Z:Z::Z/prefixlength;Cannot autoconfigure the router interfaces

11th September 2008 Equipment Configuration: Routers 18

Juniper – tunnelsRouter Advertisements (stateless

autoconfiguration)protocols {

router-advertisement { interface interface-name { prefix IPv6_prefix::/prefix_length;Configure tunnel (with Tunnel PIC)interface{

ip-x/x/x {tunnel {

source ipv4_source_address;destination ipv4_destination_address;}

family inet6 {address ipv6_address_in_tunnel/prefixlength

gr-x/y/z {

unit 0 {...}}}}}

11th September 2008 Equipment Configuration: Routers 19

Juniper – static routing

Static routesrouting-options {

rib inet6.0 { -> Means IPv6 unicast routing tablestatic {

route IPv6_prefix next-hop IPv6_address;}

routing-options {rib inet6.0 {

static {route IPv6_prefix discard; -> Useful to

originate a network}

11th September 2008 Equipment Configuration: Routers 20

Juniper – OSPFv3protocols {

ospf3 {

preference 20;

area 0.0.0.0 {

interface ge-0/3/0.808 {

metric 100;

}

interface lo0.0 {

passive;

}

}

}

}

11th September 2008 Equipment Configuration: Routers 21

Juniper – BGPprotocols {

bgp {local-as local_AS_number;group EBGP_peers {

type external;family inet6 {

(any | multicast | unicast) }neighbor neighbor_IPv6_address;

peer-as distant_AS_number;import in-PS;export out-PS; }

11th September 2008 Equipment Configuration: Routers 22

Juniper – routing policy filtering

Policy statementspolicy-statement in-PS {

term from_outside_accept {from {

route-filter 3ffe::/16 orlonger; route-filter ::/8 orlonger; route-filter 2001:DB8::/32 orlonger; route-filter 2001::/32 exact next policy; route-filter 2001::/31 longer; route-filter 2002::/16 exact next policy; route-filter 2002::/16 longer;

route-filter ::/0 upto /48 next policy; } then {

accept; }then reject; }

11th September 2008 Equipment Configuration: Routers 23

Juniper – show commandsshow bgp summary

show route advert bgp <addr>

show route rece bgp <addr>

show route table inet6.0 (terse)

show interfaces

show ipv6 neighbors

6WIND

11th September 2008 Equipment Configuration: Routers 24

11th September 2008 Equipment Configuration: Routers 25

6WIND – basics

Interface ConfigurationEnter Ethernet Private Interface Context

hurricane{myconfig} eth0_0hurricane{myconfig-eth0_0}

Set IP Address hurricane{myconfig-eth0_0} ipaddress 10.0.0.10/24hurricane{myconfig-eth0_0} ipaddress 2001:DB8:10::beef/48

Advertise an IPv6 prefixhurricane{myconfig-eth0_0} prefix 2001:DB8:10:10::/64

11th September 2008 Equipment Configuration: Routers 26

6WIND – tunnels (1)

Migration configurationEnter Migration Context

hurricane{myconfig} mighurricane{myconfig-mig}

Create 6in4 interface hurricane{myconfig-mig} 6in4 0 1.1.1.10 1.1.1.20 2001:DB8::10 2001:DB8::20

Create 4in6 interfacehurricane{myconfig-mig} 4in6 0 2001:DB8::10 2001:DB8::20 1.1.1.10 1.1.1.20

Create 6to4 interface hurricane{myconfig-mig} 6to4 1.1.1.10

11th September 2008 Equipment Configuration: Routers 27

6WIND – tunnels (2)

Create ISATAP interface hurricane{myconfig-mig} isatap_router 0 10.0.0.10hurricane{myconfig-mig} isatap_prefix 0 2002:101:10a::/64

Create DSTM interfacehurricane{myconfig-mig} dstm eth0_0

11th September 2008 Equipment Configuration: Routers 28

6WIND – static routing

Routing configurationEnter Routing Context

hurricane{myconfig} rtghurricane{myconfig-rtg}

Set IP default route hurricane{myconfig-rtg} ipv4_defaultroute 1.1.1.20hurricane{myconfig-rtg} ipv6_defaultroute 2001:DB8:1::20

Set static routehurricane{myconfig-rtg} route 30.0.0.0/24 3.3.3.30hurricane{myconfig-rtg} route 2001:DB8:1::/48 2001:DB8:3::30

11th September 2008 Equipment Configuration: Routers 29

6WIND – RIPng

Dynamic Routing Configuration RIP Enter Dynamic Routing Context

hurricane{myconfig-rtg} dynamichurricane{myconfig-rtg-dynamic}

Activate RIP Routing Process hurricane{myconfig-rtg-dynamic} router riphurricane{myconfig-rtg-dynamic-router-rip} network 1.1.1.0/24hurricane{myconfig-rtg-dynamic-router-rip} network 3.3.3.0/24hurricane{myconfig-rtg-dynamic-router-rip} redistribute connected

11th September 2008 Equipment Configuration: Routers 30

6WIND – BGPDynamic Routing Configuration BGP4+ Enter Dynamic Routing Context

hurricane{myconfig-rtg} dynamichurricane{myconfig-rtg-dynamic}

Activate BGP4+ Routing Process hurricane{myconfig-rtg-dynamic} router bgp 10hurricane{myconfig-rtg-dynamic-router-bgp} neighbor 2001:DB8:2::20 remote-as 20hurricane{myconfig-rtg-dynamic-router-bgp} neighbor 2001:DB8:3::30 remote-as 30

hurricane{myconfig-rtg-dynamic-router-bgp} address-family ipv6 hurricane{myconfig-rtg-dynamic-router-bgp-v6} neighbor

2001:DB8:2::20 activatehurricane{myconfig-rtg-dynamic-router-bgp-v6} neighbor 2001:DB8:2::20 activatehurricane{myconfig-rtg-dynamic-router-bgp-v6} redistribute connected

HITACHI

11th September 2008 Equipment Configuration: Routers 31

11th September 2008 Equipment Configuration: Routers 32

Hitachi – basics

IPv6 features supported in these Hitachi OS releases: 06-xx, 07-xx, and 08-xx

Enable IPv6Enabled by default in Hitachi OS IPv6 images

Add an IPv6 address on an interfaceconfig ip interface-name IPv6-address/prefix-length

Delete an IPv6 address on an interfaceconfig delete ip interface-name IPv6-address

11th September 2008 Equipment Configuration: Routers 33

Hitachi – tunnel

Tunneltunnel tunnel-name local-ipv4-address remote remote-ipv4-address

ip tunnel-name local-ipv6-address/prefix-length destination_ip_address remote-ipv6-address connect_type point

Configure a static default route via the tunnelstatic 0::/0 gateway tunnel-remote-ipv6-address

11th September 2008 Equipment Configuration: Routers 34

Hitachi – RA autoconfiguration

By default the router advertisements are suppressed

RA autoconfigurationconfig ra yes

ra interface interface-name

More control with options of ra commands

HUAWEI

11th September 2008 Equipment Configuration: Routers 35

11th September 2008 Equipment Configuration: Routers 36

Huawei – basics

IPv6 features supported since this Huawei Quidway OS release: VRP5

Enable IPv6Execute ipv6 command

Add an IPv6 address on an interfaceconfig interface type numberipv6 address IPv6-address prefix-length

Delete an IPv6 address on an interfaceconfig interface type numberundo ipv6 address IPv6-address prefix-length

11th September 2008 Equipment Configuration: Routers 37

Huawei – tunnel

Tunnelinterface Tunnel name

ipv6 address local-ipv6-address prefix-length

tunnel-protocol ipv6-ipv4

source local-ipv4-address

destination remote-ipv4-address

undo shutdown

Configure a static default route via the tunnelipv6 route-static 0::/0 tunnel-remote-ipv6-address

11th September 2008 Equipment Configuration: Routers 38

Huawei – RA autoconfiguration

By default the router advertisements are suppressed

RA autoconfigurationUse ipv6 nd ra halt, to suppress a router to send RAUse undo ipv6 nd ra halt, to cancel the configuration

More control with options of ipv6 nd commands

FREEBSD

11th September 2008 Equipment Configuration: Routers 39

11th September 2008 Equipment Configuration: Routers 40

FreeBSD – basics

Enable IPv6ipv6_enable="YES" in /etc/rc.conf file

Autoconfiguration is automatically done while the gateway function is off

Enable IPv6 forwardingipv6_gateway_enable="YES" in rc.conf file

Add an IPv6 address on an interfaceifconfig interface inet6 X:X:X:X::X prefixlen 64

11th September 2008 Equipment Configuration: Routers 41

FreeBSD – tunnel

Configure an IPv6 in IPv4 tunnelifconfig gif1 createifconfig gif1 inet6 @IPv6_source @IPv6_dest prefixlen 128gifconfig gif1 inet @IPv4_source @IPv4_destifconfig gif1 up

Configure an IPv6 in IPv6 tunnelifconfig gif1 createifconfig gif1 inet6 @IPv6_source @IPv6_dest prefixlen 128gifconfig gif1 inet6 @IPv6_source @IPv6_destifconfig gif1 up

11th September 2008 Equipment Configuration: Routers 42

FreeBSD – static routing

Configure a static route• Default routeroute add -inet6 default fe80::X:X:X:X%interfaceroute add -inet6 default X:X:X:X::X (if global address)• Othersroute add –inet6 X:X:X:X:: -prefixlen YY X:X:X:X::Xroute add –inet6 X:X:X:X:: -prefixlen YY fe80::X:X:X:X%interface

%interface notationIf link-local address, need to specify on which interface the address is available

11th September 2008 Equipment Configuration: Routers 43

FreeBSD – RIPng

RIPng: route6d daemonroute6d

-L IPv6_prefix,interface (receives only prefixes derived from IPv6_prefix on interface interface)

11th September 2008 Equipment Configuration: Routers 44

FreeBSD – BGP

BGP: bgpd daemonBetter to use Quagga BGP daemon

DEBIAN

11th September 2008 Equipment Configuration: Routers 45

11th September 2008 Equipment Configuration: Routers 46

Debian – basics

Enable IPv6• Put "ipv6" in "/etc/modules"• Edit "/etc/network/interfaces" :

iface eth0 inet6 static address 2001:XXXX:YYYY:ZZZZ::1 netmask 64

Further information: http://people.debian.org/~csmall/ipv6/

11th September 2008 Equipment Configuration: Routers 47

Debian – tunnel

Edit "/etc/network/interfaces" :

iface tun0 inet6 v4tunnel

endpoint A.B.C.D

address 2001:XXXX:1:YYYY::2

gateway 2001:XXXX:1:YYYY::1

netmask 64

11th September 2008 Equipment Configuration: Routers 48

Debian – RA autoconfigurationAdd in "/etc/radvd.conf" :

interface eth0

{

AdvSendAdvert on;

AdvLinkMTU 1472;

prefix 2001:XXXX:YYYY:ZZZZ:/64

{

AdvOnLink on;

AdvPreferredLifetime 3600;

AdvValidLifetime 7200;

};

};

WINDOWS XP

11th September 2008 Equipment Configuration: Routers 49

11th September 2008 Equipment Configuration: Routers 50

Windows XP – basics (1)

Enable IPv6ipv6 install in a dos window

Autoconfiguration is then performed

Display IPv6 interfacesipv6 if

Display IPv6 routesipv6 rt

11th September 2008 Equipment Configuration: Routers 51

Windows XP – basics (2)

Add a static routeipv6 rtu prefix ifindex[/address] [life valid[/pref]] [preference P] [publish] [age] [spl Site Prefix Size]

Anonymous addressesipv6 gpu UseAnonymousAddresses no

« User-friendly » IPv6 configurationnetsh in a dos window

> interface ipv6

QUAGGA

11th September 2008 Equipment Configuration: Routers 52

11th September 2008 Equipment Configuration: Routers 53

Quagga

Cisco like commandsRIPng, BGP, OSPF, etc. available

http://www.quagga.net/

11th September 2008 Equipment Configuration: Routers 54

Questions?

6DEPLOY Project Web Site:

http://www.6deploy.eu

Equipment Configuration:Hosts

6DEPLOY. IPv6 Deployment and Support

IPv6 Support – Hosts Operating Systems

25th September 2008 56Equipment Configuration: Hosts

Vendor Versions supporting IPv6 More Information

Apple MAC OS X 10.2 http://developer.apple.com/macosx/

BSD FreeBSD 4.0 OpenBSD 2.7, NetBSD 1.5 BSD/OS 4.2

http://www.kame.net/

HP / Compaq

HP-UX 11i, Tru64 UNIX V5.1, OpenVMS V5.1

http://docs.hp.com/en/5990-7247/index.html

IBM z/OS Rel. 1.4, AIX 4.3, OS/390 V2R6 eNCS

http://www-01.ibm.com/software/info/ipv6/compliance.jsp

Linux Red Hat 6.2, Mandrake 8.0, SuSE 7.1, Debian 2.2

http://www.bieringer.de/linux/IPv6/status/IPv6+Linux-status-distributions.html

Microsoft

Windows 7, Vista, XP, Server 2003, Server 2008, CE .NET, Mobile

http://www.microsoft.com/ipv6/

Novell Netware 6.1 http://www.novell.com/documentation/oes2/ntwk_ipv6_nw/index.html?page=/documentation/oes2/ntwk_ipv6_nw/data/ai4x21f.html

Sun Solaris 8, 9 and 10 http://docs.sun.com/app/docs/doc/817-0573?l=en

General purpose and embedded OSs supporting IPv6 http://www.ipv6tf.org/index.php?page=guide/organizations/vendors/oss

25th September 2008 57Equipment Configuration: Hosts

Host Equipment

WindowsBSDLinuxSolarisMac OS X

WINDOWS

25th September 2008 Equipment Configuration: Hosts 58

IPv6 on WindowsFull support

• Windows 7, Vista and XP SP1 and later• Windows Server 2003 and 2008

Technology preview• Windows XP without SP• Windows 2000 (not compatible with SP2 or later)

Developer Edition• Windows NT 4.0 (source was available)

No official support but third party products available• Windows 95/98/ME

Supported features:• autoconfiguration, 6in4 tunnel, 6to4 tunnel, 6to4 relay,

TEREDO tunnel, ISATAP tunnel, IPSec (manual keying)

25th September 2008 59Equipment Configuration: Hosts

IPv6 in Windows 7

IPv6 is installed by defaultConfiguration is based on GUI and netsh (see

Vista)IPv6 Support similar to Vista, differences are:• Change: Random Interface ID is on by default (RFC

3041)• Doesn’t use EUI-64 by default to get the interface ID in

autoconfigured addresses: netsh interface ipv6 set global [[randomizeidentifiers=]enabled|disabled]

• New Feature: IP-HTTPS (IP over Secure HTTP)• New Feature: DirectAccess

• Transparent VPN allowing communication in both directions• Needs Windows Server 2008

25th September 2008 60Equipment Configuration: Hosts

IPv6 in Windows Vista

IPv6 is installed by defaultIt not only supports the basic functionalities as

in previous versions (i.e. Windows XP and 2003) but also new advanced features such as

• Dual IP layer architecture Installed and enabled by default

• Graphical user interface (GUI)-based configuration

• Full Support for IPsec

• MLDv2

• DNS messages over IPv6

• LLMNR (Link Local Multicast Name Resolution)

• Literal IPv6 addresses in URLs

• Support for ipv6-literal.net names

• IPv6 over PPP

• DHCPv625th September 2008 61Equipment Configuration: Hosts

Windows Vista configuration (1)• Automatic address configuration

1. Stateless address autoconfiguration with IPv6 RA

2. Stateful address autoconfiguration with DHCPv6

• Manual address configuration1. The GUI of the properties of TCP/IPv6 component

2. Commands in the netsh interface ipv6 context

netsh interface ipv6 add address interface_name ipv6_address

• Address selection configuration• RFC3484 provides a standardized method to choose source and

destination IPv6 addresses with which to attempt connections

1. A destination address selection algorithm to sort the list of possible destination addresses in order of preference

2. A source address selection algorithm to choose the best source address to use with a destination address

25th September 2008 62Equipment Configuration: Hosts

Windows Vista configuration (2)

Unlike XP, IPv6 in Vista cannot be uninstalledTo disable IPv6 on a specific connection

• Network Connections folder > properties of the connection > clear the check box next to the TCP/IPv6 component

• This method disables IPv6 on your LAN interfaces and connections

• But does not disable IPv6 on tunnel interfaces or the IPv6 loopback interface

To selectively disable IPv6 components and configure behaviors

• Create and configure the following registry value (DWORD type)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tcpip6\Parameters\DisabledComponents

DisabledComponents is set to 0 by default

25th September 2008 63Equipment Configuration: Hosts

IPv6 in Windows XP

Not installed by default, and installation varies on service packs

SP1 additions:• vendor support• GUI installation• configuration via netsh command

SP2 additions• Teredo client• host-specific relay support • IPv6 firewall

25th September 2008 64Equipment Configuration: Hosts

IPv6 installation in Windows XP

No service packs• type ipv6 install from the command prompt

SP1• install protocol “Microsoft IPv6 Developer

Edition” from Connection Properties window

SP2• install protocol “Microsoft TCP/IP version 6”

from Connection Properties window

25th September 2008 65Equipment Configuration: Hosts

Windows XP configuration (1)

Command for IPv6 configuration• ipv6 (will be discontinued, not present in

Windows Server 2003)• netsh interface ipv6

Autoconfiguration is working• netsh interface ipv6 4• interface 1 - loopback• interface 2 - ISATAP• interface 3 - 6to4 interface• interface 4... – real network interfaces• interface 5 – Teredo interface

25th September 2008 66Equipment Configuration: Hosts

Windows XP configuration (2)

Set manual address – netsh ipv6 interface {add|set} address [interface=] <interface> [address=] <address>

– <interface> - interface name or index– <address> - address in IPv6 format

Deleting manual address– netsh ipv6 interface delete address [interface=] <interface> [address=] <address>

25th September 2008 67Equipment Configuration: Hosts

Windows XP configuration (3)

Set/remove static IPv6 route– netsh ipv6 interface {add|set|delete} route [prefix=]<prefix>/<length> [interface=]<interface> [[nexthop=] <address>]

Applications• ipconfig, netstat, ping6, tracert6, pathping• All Wininet.dll based applications

ftp, telnet, IExplorer,

Windows 2003 server– netsh interface ipv6 (only!)• file/print sharing-et (site-local) supported over

IPv6• IIS and media server

25th September 2008 68Equipment Configuration: Hosts

Windows XP configuration (4)

Neighbor cache– netsh interface ipv6 show neighbors (ipv6 nc)

IPv6 routing table– netsh interface ipv6 show routes (ipv6 rt)

Reconfiguration– netsh interface ipv6 renew (ipv6 renew)

Address selection policy– netsh interface ipv6 show prefixpolicy– netsh interface ipv6 set prefixpolicy [prefix=]<prefix>/<length> [precedence=]precedence [label=]label

25th September 2008 69Equipment Configuration: Hosts

What Windows cannot do with IPv6

DNS messages over IPv6• not for Windows XP, but Windows Vista and Server

2003 can, there is a builtin proxy for it

IPv6 support for file and print sharing• Windows 2003 can

IPv6 support for the WinInet, IPHelper, and DCOM APIs

25th September 2008 70Equipment Configuration: Hosts

Windows XP configuration (4)IPSec

– ipsec6 sp/sa/s/l• No ESP support by default

.NET• IPv6 support, but IPv6 literal address does not work

IPv6 firewall support after SP2 or Advanced networking pack

IPv6 teredo support after SP2 or Advanced networking pack

Further information: http://www.microsoft.com/ipv6/

Important! You should switch on IPv6 support if you have IPv6 connectivity or you have to tweak RFC3484 knobs

25th September 2008 71Equipment Configuration: Hosts

Windows XP configuration (5)Windows XP ICF – same rules for IPv4 and IPv6

• Show configuration:• netsh firewall show globalport• netsh firewall show adapter

• Set configuration• set globalport [port#=enable|disable] [name=name] [protocol=tcp|udp]• set adapter [name] [icmp type#=enable|disable] [port port#=enable|disable [name=name] [protocol=tcp|udp]] [ignoreglobalport port#=enable|disable] [name=name] [protocol=tcp|udp]] [filtering=enable|disable]

• set logging [filelocation=<location>] [filesize=integer] [droppedpackets=enable|disable] [successfulconnections=enable|disable]

After SP2• in the firewall you can configure Path MTU discovery support• per process configuration possible

Further information: http://www.microsoft.com/technet/community/columns/cableguy/cg0104.mspx

25th September 2008 72Equipment Configuration: Hosts

Reminder about RFC3484(Default Address Selection for IPv6)

Multiple source addresses: - linklocal, global, tunneling, mobile, choosing IPv6 or IPv4 for communication – which one to select?• implement sorting in getaddrinfo()- via policy

table:prefer native IPv6Prefix Precendence Label

::1/128 50 0

::/0 40 1

2002::/16 30 2

::/96 20 3

::ffff:0:0:/96 10 4

prefer IPv4Prefix Precendence Label

::1/128 50 0

::/0 40 1

2002::/16 30 2

::/96 20 3

::ffff:0:0:/96 100 4

25th September 2008 73Equipment Configuration: Hosts

BSD

25th September 2008 Equipment Configuration: Hosts 74

IPv6 on *BSD

Supported• autoconfiguration, IPv4 tunnel, 6to4, MLDv1,

IPSec, Jumbogram, ICMP mode information query, TRT, privacy extension

Available since FreeBSD 4.0, OpenBSD 2.7, NetBSD 1.5

KAME extension • NAT-PT, DHCPv6, PIM-(S)SM, multicast DNS,

EDNS resolver, ISATAP (not any more), anycast (integrated)

25th September 2008 75Equipment Configuration: Hosts

FreeBSD configuration (1)

Installation: not necessary, the default kernel has it

The installer asking for IPv6 support– ipv6_enable=”yes” in /etc/rc.conf

• Autoconfiguration is working– ifconfig -a

25th September 2008 76Equipment Configuration: Hosts

FreeBSD configuration (2)

Manual address configuration– ipv6_prefix_fxp0=”2001:DB8:1:2”– ipv6_ifconfig_fxp0=”2001:DB8:1:2::1 prefixlen 64”

• then /etc/netstart• or ifconfig

Neighbor cache– ndp -a

Routing table– route/netstat

25th September 2008 77Equipment Configuration: Hosts

FreeBSD configuration (3)Configuration of further addresses

– ipv6_ifconfig_if0_alias0="fec0:0:0:5::2/64"

What about if you don’t have IPv6 connectivity• ip6addrctl(8) program – according RFC3484 you

can adjust default address selection#preferip4connection_policy#Prefix Precedence Label::1/128 50 0::/0 40 12002::/16 30 2::/96 20 3::ffff:0:0/96 100 4

25th September 2008 78Equipment Configuration: Hosts

FreeBSD configuration (4) Reconfiguration

– rtsol fxp0

Applications• ping6, traceroute6, ftp, telnet, r* commands,

sendmail, apache, Mozilla, proftpd, OpenSSH, LPD, NFS/YP (FreeBSD 5.0 tól), courier-imap ,irc, openldap, tftp, tcpdump, inn, tin

Further information– http://www.freebsd.org– http://www.kame.net– http://ipv6.niif.hu/m/FAQ

25th September 2008 79Equipment Configuration: Hosts

FreeBSD configuration (5)

Configure an IPv6 in IPv4 tunnel• ifconfig gif1 create• ifconfig gif1 tunnel @IPv4_source

@IPv4_dest• ifconfig gif1 inet6 @IPv6_address up

Configure an IPv6 in IPv6 tunnel• ifconfig gif1 create• ifconfig gif1 tunnel @IPv6_source

@IPv6_dest• ifconfig gif1 inet6 @IPv6_address up

25th September 2008 80Equipment Configuration: Hosts

Configure a static route• Default routeroute add -inet6 default fe80::X:X:X:X%interface

route add -inet6 default X:X:X:X::X (if global address)• Othersroute add –inet6 X:X:X:X:: -prefixlen YY X:X:X:X::X

route add –inet6 X:X:X:X:: -prefixlen YY fe80::X:X:X:X%interface

%interface notationIf link-local address, need to specify on which interface the address is available

FreeBSD configuration (6)

25th September 2008 81Equipment Configuration: Hosts

FreeBSD configuration (7)

Router advertisement: /etc/rtadvdv.conf default:\

:chlim#64:raflags#0:rltime#1800:rtime#0:retrans#0:\ :pinfoflags="la":vltime#2592000:pltime#604800:mtu#auto:

• ef0:\ :addr=“2001:DB8:ffff:1000::":prefixlen#64:tc=default:

25th September 2008 82Equipment Configuration: Hosts

FreeBSD configuration (8)

RIPng: route6d daemonroute6d

-L IPv6_prefix,interface (receives only prefixes derived from IPv6_prefix on interface interface)

-N interface (do not receive and advertise routes on interface)

-O IPv6_prefix, interface (advertise only on interface the IPv6 prefix)

BGP: bgpd daemonBetter to use Zebra/Quaggua BGP daemon

25th September 2008 83Equipment Configuration: Hosts

LINUX

25th September 2008 Equipment Configuration: Hosts 84

IPv6 on Linux

Supported• autoconfiguration, IPv4 tunnel, 6to4• since Kernel 2.2.x recommended at least

2.4.8

USAGI patch (mostly included in 2.6.x series)• Node information query, anycast, ISATAP,

privacy extension, IPSec, applications, bug-fix, mobile IP

25th September 2008 85Equipment Configuration: Hosts

General Linux configuration (1)

Kernel compile options• CONFIG_IPv6=m/y• If the IPv6 module is loaded, file /proc/net/if_inet6

should be present• IPv6 module can be loaded by modprobe ipv6

Autoconfiguration supported• ifconfig

25th September 2008 86Equipment Configuration: Hosts

General Linux configuration (2)

Address configuration•ifconfig <interface> inet6 add <ipv6address>/<prefixlength>

Neighbor cache•ip -6 neigh show

IPv6 routing table•route -A inet6/netstat

25th September 2008 87Equipment Configuration: Hosts

Red Hat configuration (1)Enabling Global IPv6 support /etc/sysconfig/network file:

NETWORKING_IPV6="yes"

Enabling IPv6 support on a particular interface

/etc/sysconfig/network-scripts/ifcfg-eth0 file:IPV6INIT="yes"

Configuring IPv6 interface address/etc/sysconfig/network-scripts/ifcfg-eth0 file:

IPV6ADDR=“2001:DB8:20::291D:6A83/48“

Default route configuration/etc/sysconfig/static-routes-ipv6 file:

eth0 ::/0 2001:DB8:20::922:A67825th September 2008 88Equipment Configuration: Hosts

Red Hat configuration (2)

Applications• ping6, traceroute6, tcpdump, tracepath6, apache,

bind, imap (xinetd), sendmail, openssh, telnet, ftp, mozilla, lynx, wget, kde, xchat, etc.

Further information– http://www.bieringer.de/linux/IPv6– http://www.linux-ipv6.org/

25th September 2008 89Equipment Configuration: Hosts

Fedora configuration (1)

(Fedora Core 2 only) append to /etc/sysconfig/network:– NETWORKING_IPV6=yes– IPV6_DEFAULTDEV=“your exit device e.g. tun6to4”

(Fedora Core 1 only) append to /etc/sysconfig/network– NETWORKING_IPV6=yes– IPV6_GATEWAYDEV=“your exit device e.g. tun6to4”

6to4 gateway- append to /etc/sysconfig/network-scripts/ifcfg-eth0– IPV6INIT=yes– IPV6TO4INIT=yes

25th September 2008 90Equipment Configuration: Hosts

Debian configuration (1)

Enabling IPv6You should put "ipv6" in "/etc/modules"

Address configuration"/etc/network/interfaces" :

iface eth0 inet6 static

address 2001:XXXX:YYYY:ZZZZ::1

netmask 64

Further informationhttp://wiki.debian.org/DebianIPv6

25th September 2008 91Equipment Configuration: Hosts

Debian configuration (2)

Tunnel configuration"/etc/network/interfaces" :

iface tun0 inet6 v4tunnel

endpoint A.B.C.D

address 2001:XXXX:1:YYYY::2

gateway 2001:XXXX:1:YYYY::1

netmask 64

25th September 2008 92Equipment Configuration: Hosts

Debian configuration (3)

RA configuration on Debian router"/etc/radvd.conf" :interface eth0{

AdvSendAdvert on;AdvLinkMTU 1500;prefix 2001:XXXX:YYYY:ZZZZ:/64 {

AdvOnLink on;AdvPreferredLifetime 3600;AdvValidLifetime 7200;

};};

25th September 2008 93Equipment Configuration: Hosts

Debian configuration (4)

Configuration on routernet.ipv6.conf.all.autoconf = 0net.ipv6.conf.all.accept_ra = 0net.ipv6.conf.all.accept_redirects = 0net.ipv6.conf.all.forwarding = 1net.ipv6.conf.all.router_solicitations = 0

Firewallsiptables -I INPUT -j ACCEPT --proto 41

25th September 2008 94Equipment Configuration: Hosts

SOLARIS

25th September 2008 Equipment Configuration: Hosts 95

Solaris configuration (1)

Supported since Solaris 8• autoconfiguration, IPv4 tunnel, 6to4, IPSec,

applications

25th September 2008 96Equipment Configuration: Hosts

Solaris configuration (2)

Autoconfigurationexisting "/etc/hostname6.<intf>"

Static address configuration "/etc/hostname6.<intf>" :addif 2001:DB8:1:2::100 up

Static name IPv6 address resolution: in /etc/inet/ipnodes

DNS resolution should be enabled

/etc/nsswitch.confipnodes: files dns

25th September 2008 97Equipment Configuration: Hosts

MAC OS X

25th September 2008 Equipment Configuration: Hosts 98

Mac OS X configuration (1)

Supported since Mac OS X 10.2 (since Darwin kernel version 6)• autoconfiguration, IPv4 tunnel, 6to4, IPSec,

applications, Apple Filing Protocol (since AFP version 3.1)

• Rendez-vous point supports IPv6• Basically – what you can expect from *BSD

25th September 2008 99Equipment Configuration: Hosts

Mac OS X configuration (2)

Enabled by ip6config commandip6config command interface• commands:

start-v6 –enable IPv6 on given (all) interface stop-v6 –disable IPv6 on given (all) interface start-stf – enable IPv6 as defined in /etc/6to4.conf start-rtadvd – start router advertisement daemon

and enable IPv6 packet forwarding between interfaces

• ip6 – enable disable per interface

Autoconfigurationenabled by default

25th September 2008 100Equipment Configuration: Hosts

25th September 2008 Equipment Configuration: Hosts 101

Questions?

6DEPLOY Project Web Site:

http://www.6deploy.eu