Cisco OSPF

moxian_test(config)#ip routing

moxian_test(config)#interfacef0/1

moxian_test(config-if)#no switchport

moxian_test(config-if)#ip address 192.168.1.1255.255.255.0

moxian_test(config-if)#ip ospf cost 2

moxian_test(config-if)#ip ospfhello-interval 1

moxian_test(config-if)#ip ospfdead-interval 4

moxian_test(config-if)#no shutdown

moxian_test(config)#interfacef0/2                     

moxian_test(config-if)#no switchport

moxian_test(config-if)#ip address192.168.2.1 255.255.255.0

moxian_test(config-if)#ip ospf cost 2

moxian_test(config-if)#ip ospfhello-interval 1

moxian_test(config-if)#ip ospfdead-interval 4

moxian_test(config-if)#no shutdown

moxian_test(config-if)#exit

moxian_test(config)#interfacef0/3                      

moxian_test(config-if)#no switchport

moxian_test(config-if)#ip address192.168.3.1 255.255.255.0

moxian_test(config-if)#no shutdown

moxian_test(config-if)#exit

moxian_test(config)#interfacef0/4                     

moxian_test(config-if)#no switchport

moxian_test(config-if)#ip address192.168.4.1 255.255.255.0

moxian_test(config-if)#no shutdown

moxian_test(config-if)#exit

moxian_test(config-if)#ip address192.168.2.1 255.255.255.0

moxian_test(config)#router ospf 1

moxian_test(config-router)#network192.168.1.0 0.0.0.255 area 0.0.0.0

moxian_test(config-router)#network192.168.2.0 0.0.0.255 area 0.0.0.0

moxian_test(config-router)#exit

moxian_test#showip route

moxian_test#showip ospf neighbors


你可能感兴趣的:(Cisco,ospf)