第一范文网 - 专业文章范例文档资料分享平台

路由器与交换机配置综合实训

来源:用户分享 时间:2025/5/18 10:28:36 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

综合训练 一

实训要求:

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

搜索更多关于: 路由器与交换机配置综合实训 的文档
路由器与交换机配置综合实训.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c3bfuf2shxy1xkfx974n4_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top