网络拓扑图:
2.实训要求及内容
整个网络拓扑结构有四个网段,要求通过配置实现各设备间的通讯互联.
题目分析:
整个网络拓扑结构由一台思科3560 交换机充当核心交换机,另外两台充当汇聚层交换机, 一台2811 充当外网的边界路由器,三层交换机间需建立静态路由,才能实现通讯.
3.交换机配置
汇聚层交换机1
Switch>en
Switch# configure terminal
Switch(config)#interface f0/1
Switch(config-if)#no switchport
Switch(config-if)# ip address 192.168.1.1 255.255.255.0
Switch(config-if)#exit
Switch(config)# interface f0/24
Switch(config-if)# no switchport
Switch(config-if)# ip address 172.16.1.5 255.255.255.0
Switch(config-if)#exit
Switch(config)# ip route 0.0.0.0 0.0.0.0 172.16.1.6
Switch(config)# exit
Switch#
汇聚层交换机2
Switch>en
Switch#configure terminal
Switch(config)#interface f0/1
Switch(config-if)# no switchport
Switch(config-if)#ip address 192.168.2.1 255.255.255.0
Switch(config-if)#exit
Switch(config)#interface f0/24
Switch(config-if)# no switchport
Switch(config-if)#ip address 172.16.1.9 255.255.255.0
Switch(config-if)#exit
Switch(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.10
Switch(config)#exit
Switch#
核心交换机配置
Switch>en
Switch#configure terminal
Switch(config)#ip route 0.0.0.0 0.0.0.0 172.16.61.1
Switch(config)#ip route192.168.1.1 255.255.255.0 172.16.1.5
Switch(config)# ip route 192.168.2.1 255.255.255.0 172.16.1.9
Switch(config)#interface f0/24
Switch(config)#no switchport
Switch(config-if)#ip address 172.16.1.6 255.255.255.0
Switch(config-if)#exit
Switch(config)#interface f0/23
Switch(config-if)#no switchport
Switch(config-if)#ip address 172.16.1.10 255.255.255.0
Switch(config-if)#exit
Switch(config)#end
Switch#
边界路由器的配置
Switch>en
Switch#configure terminal
Switch(config)#interface f0/0
Switch(config-if)# ip address 172.16.1.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config)#interface f0/0
Switch(config-if)# ip address 192.168.3.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#end
Switch#