路由器与交换机配置综合实训
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
综合训练一
实训要求:
1.按照题目要求进行网络拓扑图设计;
2.对题目中的拓扑图正确连线,并使所有连线up;
3.能够对交换机或路由器添加或删除模块;
4.对各主机能够进行IP设置。
图示:
如图完成任务要求
一对Switch0进行配置:
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 10
Switch(config-vlan)#exi
Switch(config)#interface fa 0/2
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exi
Switch(config)#interface fa 0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#exi
Switch(config)#interface fa 0/3
Switch(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
Switch(config-if)#exi
Switch(config)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr
Building configuration...
[OK]
二对Switch1进行配置:
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#exi
Switch(config)#vlan 20
Switch(config-vlan)#exi
Switch(config)#interface fa 0/2
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exi
Switch(config)#interface fa 0/3
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exi
Switch(config)#interface fa 0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#exi
Switch(config)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr
Building configuration...
[OK]
三对Router0进行配置:
Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fa 0/1
Router(config-if)#ip add 192.168.12.1 255.255.255.0
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#exi
Router(config)#interface fa 0/0
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exi
Router(config)#interface fa 0/0.1
%LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to up
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip add 192.168.1.1 255.255.255.0
Router(config-subif)#no shutdown
Router(config-subif)#exi
Router(config)#interface fa 0/0.2