HT53 交换机和路由器 实验.doc_第1页
HT53 交换机和路由器 实验.doc_第2页
HT53 交换机和路由器 实验.doc_第3页
HT53 交换机和路由器 实验.doc_第4页
HT53 交换机和路由器 实验.doc_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

要求所有计算机、交换机、路由器的接口相互联通。1. 交换机下的计算机在两个网络段,要求划分vlan,要求switchA 和switchB 的f0/5 和f0/6 在vlan 2;routerA:RouterenRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/0Router(config-if)#ip add 10.65.1.2 255.255.0.0Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upRouter(config-if)#int s0/1Router(config-if)#ip add 10.68.1.2 255.255.0.0Router(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/1, changed state to downRouter(config-if)#int f0/1.1Router(config-subif)#enRouter(config-subif)#encapsulation dRouter(config-subif)#encapsulation dot1Q 1Router(config-subif)#ip add 10.66.1.4 255.255.0.0Router(config-subif)#int f0/1.2Router(config-subif)#enRouter(config-subif)#encapsulation dRouter(config-subif)#encapsulation dot1Q 2Router(config-subif)#ip add 10.60.1.4 255.255.0.0Router(config-subif)#int f0/1Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up%LINK-5-CHANGED: Interface FastEthernet0/1.1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.1, changed state to up%LINK-5-CHANGED: Interface FastEthernet0/1.2, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.2, changed state to upRouter(config-if)#end%SYS-5-CONFIG_I: Configured from console by consoleRouter#show runBuilding configuration.Current configuration : 940 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname Router!interface FastEthernet0/0 ip address 10.65.1.2 255.255.0.0 duplex auto speed auto!interface FastEthernet0/1 no ip address duplex auto speed auto!interface FastEthernet0/1.1 encapsulation dot1Q 1 native ip address 10.66.1.4 255.255.0.0!interface FastEthernet0/1.2 encapsulation dot1Q 2 ip address 10.60.1.4 255.255.0.0!interface Serial0/0 no ip address shutdown!interface Serial0/1 ip address 10.68.1.2 255.255.0.0!interface Serial0/2 no ip address shutdown!interface Serial0/3 no ip address shutdown!interface FastEthernet1/0 no ip address duplex auto speed auto shutdown!interface FastEthernet1/1 no ip address duplex auto speed auto shutdown!ip classless!line con 0line vty 0 4 login!endRouter#Router#Router#%LINK-5-CHANGED: Interface Serial0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to upRouter con0 is now availablePress RETURN to get started.RouterB:RouterenRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int s0/0Router(config-if)#ip add 10.78.1.1 255.255.0.0Router(config-if)#clRouter(config-if)#clock rRouter(config-if)#clock rate 64000Router(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/0, changed state to upRouter(config-if)#int f0/0Router(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to upip add 10.69.1.2 255.255.0.0Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#int f0/1Router(config-if)#ip add 10.70.1.2 255.255.0.0Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to uprouterC:RouterenRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int s0/0Router(config-if)#ip add 10.68.1.1 255.255.0.0Router(config-if)#clRouter(config-if)#clock rRouter(config-if)#clock rate 64000Router(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/0, changed state to upRouter(config-if)#int s0/1Router(config-if)#ip add 10.78%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up.1.2 255.255.0.0Router(config-if)#no shut%LINK-5-CHANGED: Interface Serial0/1, changed state to downRouter(config-if)#%LINK-5-CHANGED: Interface Serial0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to upSwitchA:SwitchenSwitch#config tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan1 % Invalid input detected at marker.Switch(config)#vlan 1Switch(config-vlan)#vlan 2Switch(config-vlan)#int f0/3Switch(config-if)#swSwitch(config-if)#switchport mSwitch(config-if)#switchport mode aSwitch(config-if)#switchport mode access Switch(config-if)#swSwitch(config-if)#switchport aSwitch(config-if)#switchport access vlan 1Switch(config-if)#int f0/6Switch(config-if)#swSwitch(config-if)#switchport mSwitch(config-if)#switchport mode aSwitch(config-if)#switchport mode access Switch(config-if)#swSwitch(config-if)#switchport aSwitch(config-if)#switchport access vlSwitch(config-if)#switchport access vlan 2Switch(config-if)#int f0/1Switch(config-if)#swSwitch(config-if)#switchport mSwitch(config-if)#switchport mode tSwitch(config-if)#switchport mode trunk %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upSwitch(config-if)#int f0/2Switch(config-if)#swSwitch(config-if)#switchport mSwitch(config-if)#switchport mode tSwitch(config-if)#switchport mode trunk %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to upSwitchB:SwitchenSwitch#config tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 1Switch(config-vlan)#vlan 2Switch(config-vlan)#int f0/3Switch(config-if)#swSwitch(config-if)#switchport mSwitch(config-if)#switchport mode aSwitch(config-if)#switchport mode access Switch(config-if)#swSwitch(config-if)#switchport aSwitch(config-if)#switchport access vlSwitch(config-if)#switchport access vlan 1Switch(config-if)#int f0/6Switch(config-if)#swSwitch(config-if)#switchport mSwitch(config-if)#switchport mode aSwitch(config-if)#switchport mode access Switch(config-if)#swSwitch(config-if)#switchport aSwitch(config-if)#switchport access vlSwitch(config-if)#switchport access vlan 2Switch(config-if)#int f0/1Switch(config-if)#swSwitch(config-if)#switchport mSwitch(config-if)#switchport mode tSwitch(co

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论