3Com 5500 Switch User Manual


 
Configuring OSPF 99
Networking and
Configuration
Requirements
Network devices run OSPF to forward packets. For network security, disable the
device interfaces not enabled with OSPF from sending OSPF packets.
Configuration Procedure
Configure Switch A.
# Create VLANs and configure IP addresses for VLAN interfaces. The configuration
procedure is omitted.
# Configure OSPF.
<SwitchA> system-view
[SwitchA] ospf 1 router-id 1.1.1.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 10.1.2.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] quit
[SwitchA-ospf-1] quit
Configure Switch B (refer to “Configure Switch A.” on page 99).
Configure Switch C.
# Create VLANs and configure IP addresses for VLAN interfaces. The configuration
procedure is omitted.
# Configure OSPF.
<SwitchC> system-view
[SwitchC] router id 3.3.3.3
# Disable the interfaces from sending OSPF packets.
[SwitchC] ospf
[SwitchC-ospf-1] silent-interface Vlan-interface 10
[SwitchC-ospf-1] silent-interface Vlan-interface 20
# Enable the interfaces in the specified areas to run OSPF.
[SwitchC-ospf-1] area 0
[SwitchC-ospf-1-area-0.0.0.0] network 10.1.2.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.0] network 10.1.4.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.0] quit
[SwitchC-ospf-1] area 1
[SwitchC-ospf-1-area-0.0.0.1] network 192.168.1.0 0.0.0.255
Switch D Vlan-int200 10.1.3.2/24 4.4.4.4
Vlan-int300 10.1.4.2/24
Vlan-int10 192.168.10.1/24
Vlan-int20 192.168.20.1/24
Product series Software version Hardware version
Switch 5500 Release V03.02.04 All versions
Switch 5500G Release V03.02.04 All versions
Switch 4500 Release V03.03.00 All versions