思科項目2實戰(dhcp,動態路由ospf,鏈路捆綁等)
介紹項目1未提及的三項配置:
鏈路捆綁配置:
R3(config)#int range fa1/13 -14
R3(config-if-range)#channel-group 1 mode on
R3#show etherchannel summary 查看捆綁配置
SW1(config)#int range fa1/13 -14
SW1(config-if-range)#channel-group 1 mode on //這裏的1與R3中定義的相同
2.DHCP:
R4#conf t
R4(config)#ip dhcp pool v20
R4(dhcp-config)#network 192.168.20.0 /24
R4(dhcp-config)#default-router 192.168.20.1
vcps上:pc打 ip dhcp 即可獲取動態ip
3.動態路由(OSPF):RIP類似
和靜態路由區別:靜態是缺什麽加什麽,動態是自己知道什麽說什麽
R1(config)#router ospf 110
R1(config-router)#network 192.168.13.0 0.0.0.255 a 0
R1(config-router)#net 192.168.14.0 0.0.0.255 a 0
R3(config)#router ospf 110
R3(config-router)#net 192.168.13.0 0.0.0.255 a 0
R3(config-router)#net 192.168.10.0 0.0.0.255 a 0
R3(config-router)#net 192.168.20.0 0.0.0.255 a 0
R4(config)#router ospf 110
R4(config-router)#net 192.168.14.0 0.0.0.255 a 0
R4(config-router)#net 192.168.10.0 0.0.0.255 a 0
R4(config-router)#net 192.168.20.0 0.0.0.255 a 0
思科項目2實戰(dhcp,動態路由ospf,鏈路捆綁等)