beautypg.com

H3C Technologies H3C S10500 Series Switches User Manual

Page 195

background image

184

[SwitchC] interface vlan-interface 13

[SwitchC-Vlan-interface13] mpls

[SwitchC-Vlan-interface13] mpls ldp

[SwitchC-Vlan-interface13] quit

2.

Configure related interfaces on the switches.

# Configure Switch A.

[SwitchA] interface vlan-interface 12

[SwitchA-Vlan-interface12] ip address 12.1.1.1 24

[SwitchA-Vlan-interface12] quit

[SwitchA] interface vlan-interface 13

[SwitchA-Vlan-interface13] ip address 13.1.1.1 24

[SwitchA-Vlan-interface13] quit

[SwitchA] interface loopback 0

[SwitchA-LoopBack0] ip address 1.1.1.9 32

[SwitchA-LoopBack0] quit

# Configure Switch B.

[SwitchB] interface vlan-interface 12

[SwitchB-Vlan-interface12] ip address 12.1.1.2 24

[SwitchB-Vlan-interface12] quit

[SwitchB] interface loopback 0

[SwitchB-LoopBack0] ip address 2.2.2.9 32

[SwitchB-LoopBack0] quit

# Configure Switch C.

[SwitchC] interface vlan-interface 13

[SwitchC-Vlan-interface13] ip address 13.1.1.3 24

[SwitchC-Vlan-interface13] quit

[SwitchC] interface loopback 0

[SwitchC-LoopBack0] ip address 3.3.3.9 32

[SwitchC-LoopBack0] quit

3.

Configure basic OSPF functions.

# Configure Switch A.

[SwitchA] ospf

[SwitchA-ospf-1] area 0

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

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

[SwitchA-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0

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

[SwitchA-ospf-1] quit

# Configure Switch B.

[SwitchB] ospf

[SwitchB-ospf-1] area 0

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

[SwitchB-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0

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

[SwitchB-ospf-1] quit

# Configure Switch C.