综合训练 一
实训要求:
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
%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to up
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip add 192.168.2.1 255.255.255.0 Router(config-subif)#no shutdown Router(config-subif)#exi Router(config)#router rip
Router(config-router)#network 192.168.12.0 Router(config-router)#network 192.168.1.0 Router(config-router)#network 192.168.2.0 Router(config-router)#end Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#wr
Building configuration... [OK]
四 对Multilayer Switch0进行配置:
Switch>en Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 30 Switch(config-vlan)#exi Switch(config)#vlan 40 Switch(config-vlan)#exi
Switch(config)#interface fa 0/1
Switch(config-if)#switchport access vlan 30 Switch(config-if)#exi
Switch(config)#interface fa 0/2
Switch(config-if)#switchport access vlan 40 Switch(config-if)#exi
Switch(config)#interface vlan 30
%LINK-5-CHANGED: Interface Vlan30, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to up Switch(config-if)#ip add 192.168.12.2 255.255.255.0 Switch(config-if)#no shutdown Switch(config-if)#exi
Switch(config)#interface vlan 40
%LINK-5-CHANGED: Interface Vlan40, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to up Switch(config-if)#ip add 192.168.4.1 255.255.255.0 Switch(config-if)#no shutdown Switch(config-if)#exi Switch(config)#router rip
Switch(config-router)#network 192.168.12.0 Switch(config-router)#network 192.168.4.0 Switch(config-router)#end Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#wr
Building configuration... [OK]
Ping 192.168.1.10
Ping 192.168.2.10