104CHAPTER 15: ROUTING CONFIGURATION GUIDE

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

[SwitchB-ospf-1] quit

Configure Switch C.

# Assign a router ID to Switch C.

<SwitchC> system-view

[SwitchC] router id 3.3.3.3

# Configure an IP address for the VLAN interface.

[SwitchC] interface Vlan-interface 1 [SwitchC-Vlan-interface1] ip address 196.1.1.3 255.255.255.0

# Assign a DR priority to the VLAN interface.

[SwitchC-Vlan-interface1] ospf dr-priority 2

[SwitchC-Vlan-interface1] quit

# Enable OSPF and specify the VLAN interface to belong to area 0.

[SwitchC] ospf [SwitchC-ospf-1] area 0

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

Configure Switch D.

# Assign a router ID to Switch D.

<SwitchD> system-view

[SwitchD] router id 4.4.4.4

# Configure an IP address for the VLAN interface.

[SwitchD] interface Vlan-interface 1 [SwitchD-Vlan-interface1] ip address 196.1.1.4 255.255.255.0

[SwitchD-Vlan-interface1] quit

# Enable OSPF and specify the VLAN interface to belong to area 0.

[SwitchD] ospf

[SwitchD-ospf-1] area 0

[SwitchD-ospf-1-area-0.0.0.0] network 196.1.1.0 0.0.0.255

Complete Configuration Perform the following configuration on Switch A.

#

router id 1.1.1.1

#

vlan 1

#

interface Vlan-interface 1

ip address 196.1.1.1 255.255.255.0 ospf dr-priority 100

#

ospf 1

Page 104
Image 104
3Com 5500G Configure Switch C # Assign a router ID to Switch C, Configure Switch D # Assign a router ID to Switch D