H3C Technologies H3C S10500 Series Switches User Manual

Page 108

Advertising
background image

93

[SwitchC-GigabitEthernet1/0/3] undo lldp enable

[SwitchC-GigabitEthernet1/0/3] port service-loopback group 1

[SwitchC-GigabitEthernet1/0/3] quit

# Create Tunnel 0 on Switch C and configure the IP address and subnet mask for the interface.

[SwitchC] interface tunnel 0

[SwitchC-Tunnel0] ip address 50.1.1.2 24

# Configure Tunnel 0 on Switch C to operate in the GRE tunnel mode and configure the source and
destination addresses for the interface.

[SwitchC-Tunnel0] tunnel-protocol gre

[SwitchC-Tunnel0] source 30.1.1.2

[SwitchC-Tunnel0] destination 20.1.1.1

[SwitchC-Tunnel0] quit

3.

Configure OSPF.

# Configure OSPF on Switch A.

[SwitchA] ospf 1

[SwitchA-ospf-1] area 0

[SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

[SwitchA-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[SwitchA-ospf-1-area-0.0.0.0] network 50.1.1.0 0.0.0.255

[SwitchA-ospf-1-area-0.0.0.0] quit

[SwitchA-ospf-1] quit

# Configure OSPF on Switch B.

<SwitchB> system-view

[SwitchB] ospf 1

[SwitchB-ospf-1] area 0

[SwitchB-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[SwitchB-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[SwitchB-ospf-1-area-0.0.0.0] quit

[SwitchB-ospf-1] quit

# Configure OSPF on Switch C.

[SwitchC] ospf 1

[SwitchC-ospf-1] area 0

[SwitchC-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[SwitchC-ospf-1-area-0.0.0.0] network 40.1.1.0 0.0.0.255

[SwitchC-ospf-1-area-0.0.0.0] network 50.1.1.0 0.0.0.255

[SwitchC-ospf-1-area-0.0.0.0] quit

[SwitchC-ospf-1] quit

4.

Enable IP multicast routing, PIM-DM, and IGMP.

# Enable multicast routing on Switch A and enable PIM-DM on each interface.

[SwitchA] multicast routing-enable

[SwitchA] interface vlan-interface 100

[SwitchA-Vlan-interface100] pim dm

[SwitchA-Vlan-interface100] quit

[SwitchA] interface vlan-interface 101

[SwitchA-Vlan-interface101] pim dm

[SwitchA-Vlan-interface101] quit

Advertising