4 ip configuration examples, 4 ip configuration examples -42 – PLANET XGS3-24042 User Manual

Page 205

Advertising
background image

22-42

3. Configure two VLANs on SwitchB, namely, VLAN3 and VLAN4, VLAN4 is IPv6 domain, and VLAN3

connects to IPv4 domain.

4. Configure IPv6 address 2002:cbcb:cb01:2::1/64 in VLAN4 of SwitchB and turn on RA function,

configure IPv4 address 203.203.203.1 on VLAN3.

5. Configure tunnel on SwitchA, the source IPv4 address of the tunnel is 202.202.202.1, the tunnel

routing is ::/0

6. Configure tunnel on SwitchB, the source IPv4 address of the tunnel is 203.203.203.1, and the tunnel

routing is ::/0

7. Configure two VLANs on SwitchC, namely, VLAN2 and VLAN3. Configure IPv4 address

202.202.202.202 on VLAN2 and configure IPv4 address 203.203.203.203 on VLAN3.

8. PC-A and PC-B get the prefix of 2002 via SwitchA and SwitchB to configure IPv6 address

automatically.

9. On PC-A, ping IPv6 address of PC-B

The configuration procedure is as follows:

SwitchA(Config-if-Vlan1)#ipv6 address 2002:caca:ca01:2::1/64

SwitchA(Config-if-Vlan1)#no ipv6 nd suppress-ra

SwitchA(Config-if-Vlan1)#interface vlan 2

SwitchA(Config-if-Vlan2)#ipv4 address 202.202.202.1 255.255.255.0

SwitchA(Config-if-Vlan1)#exit

SwitchA(config)# interface tunnel 1

SwitchA(Config-if-Tunnel1)#tunnel source 202.202.202.1

SwitchA(Config-if-Tunnel1)#tunnel destination 203.203.203.1

SwitchA(Config-if-Tunnel1)#tunnel mode ipv6ip

SwitchA(config)#ipv6 route ::/0 tunnel1

SwitchB(Config-if-Vlan4)#ipv6 address 2002:cbcb:cb01::2/64

SwitchB(Config-if-Vlan4)#no ipv6 nd suppress-ra

SwitchB (Config-if-Vlan3)#interface vlan 3

SwitchB (Config-if-Vlan2)#ipv4 address 203.203.203.1 255.255.255.0

SwitchB (Config-if-Vlan1)#exit

SwitchB(config)#interface tunnel 1

SwitchB(Config-if-Tunnel1)#tunnel source 203.203.203.1

SwitchB(Config-if-Tunnel1)#tunnel destination 202.202.202.1

SwitchB(Config-if-Tunnel1)#tunnel mode ipv6ip

SwitchB(config)#ipv6 route ::/0 tunnel1

22.2.4 IP Configuration Examples

 The router lifespan configured should not be smaller than the Send Router advertisement Interval. If the

connected PC has not obtained IPv6 address, you should check RA announcement switch (the default

is turned off).

Advertising
This manual is related to the following products: