PLANET XGS3-24042 User Manual

Page 381

Advertising
background image

43-15

Configure the IPv4 address of the tunnel interface. To run OSPF routing protocol, the interface address

must be configured.

SwitchA (config-if-tunnel1)#ip address 100.1.1.2 255.255.255.0

Configure the interface VLAN20 and its address.

SwitchA(config)#vlan 20

SwitchA(config-vlan20)#switchport interface ethernet 1/0/10

SwitchA(config-vlan20)#exit

SwitchA(config)#interface vlan 20

SwitchA(config-if-vlan20)# ip address 20.1.1.2 255.255.255.0

SwitchA(config-if-vlan20)#exit

SwitchA(config)#

Configure OSPF routing protocol.

SwitchA(config)#router ospf

SwitchA(config-router)#router-id 1.1.1.2

SwitchA(config-router)#network 100.1.1.0/24 area 0

SwitchA(config-router)#network 20.1.1.0/24 area 0

SwitchA(config-router)#exit

SwitchA(config)#

After the OSPF protocols of two ends are fully connected through the tunnel, we can see the tunnel route

SwitchB(config)#show ip route

O 10.1.1.0/24 [110/2] via 100.1.1.2, Tunnel1, 01:41:49 tag:0

(3) The configuration of device C

1. The configuration step

Enable IPv6 function.

SwitchA(config)#ipv6 enable

Create the interface VLAN 11 and its address.

SwitchA(config)#vlan 11

SwitchA(config-vlan11)#switchport interface ethernet 1/0/11

SwitchA(config-vlan11)#exit

SwitchA(config)#interface vlan 11

SwitchA(config-if-vlan11)#ipv6 address 2000:3000:1000::2/64

Create the interface VLAN 12 and its address

SwitchA(config)#vlan 12

SwitchA(config-vlan12)#switchport interface ethernet 1/0/12

Advertising
This manual is related to the following products: