首页 单臂路由

单臂路由

举报
开通vip

单臂路由实验设备:一台CISCO路由器(R1),一台二层交换机(S1),两台PC机( pc2和pc3)    HYPERLINK "http://baike.baidu.com/picview/51139/51139/0/3b6833f58f4c8d1cbd310948.html" \t "_blank"   实验拓扑 PC的配置如下:   pc2的IP:192.168.2.10 网关:192.168.2.1   pc3的IP:192.168.3.10 网关:192.168.3.1   交换机S1的配置如下:   Swit...

单臂路由
实验设备:一台CISCO路由器(R1),一台二层交换机(S1),两台PC机( pc2和pc3)    HYPERLINK "http://baike.baidu.com/picview/51139/51139/0/3b6833f58f4c8d1cbd310948.html" \t "_blank"   实验拓扑 PC的配置如下:   pc2的IP:192.168.2.10 网关:192.168.2.1   pc3的IP:192.168.3.10 网关:192.168.3.1   交换机S1的配置如下:   Switch>enable   Switch#vlan database   Switch(vlan)#vlan 2 name test01   VLAN 2 added:   Name: test01   Switch(vlan)#vlan 3 name test02   VLAN 3 added:   Name: test02 →设置好vlan ,这里只简单设置两个。   Switch(vlan)#exit   APPLY completed.   Exiting....   Switch#config   Configuring from terminal, memory, or network [terminal]?   Enter configuration commands, one per line. End with CNTL/Z.   Switch(config)#interface fa0/2   Switch(config-if)#switchport access vlan 2   Switch(config-if)#exit   Switch(config)#interface fa0/3   Switch(config-if)#switchport access vlan 3   Switch(config-if)#exit   Switch(config)#interface fa0/1   Switch(config-if)#switchport trunk encapsulation dot1q (2960等交换机只支持802.1q协议,这里忽略)   Switch(config-if)#switchport mode trunk   Switch(config-if)#switchport trunk allowed vlan all   Switch(config-if)#exit   Switch(config)#end   %SYS-5-CONFIG_I: Configured from console by console   Switch#write memory   Building configuration...   [OK]   下面来重点,配置单臂路由:   Router>enable   Router#config   Configuring from terminal, memory, or network [terminal]?   Enter configuration commands, one per line. End with CNTL/Z. .................进入全局配置模式   Router(config)#interface fa0/0 ................进入和交换机连接的那个接口   Router(config-if)#no shutdown ................激活该端口   Router(config-if)#exit ……………返回到全局配置模式   Router(config)#interface fa0/0.1 ...........配置 子接口 这是配置单臂路由的关键,这个接口是个 逻辑接口,并不是实际存在的物理接口,但是功能却和物理接口是一样的。   Router(config-subif)#encapsulation dot1q 2 .......为这个接口配置802.1Q协议,最后面的 2 是vlan 号,这也是关键部分   Router(config-subif)#ip address 192.168.2.1 255.255.255.0 .........为该接口划分ip地址。   Router(config-subif)#exit   Router(config)#interface fa0/0.2 .....同样,进入第2个子接口,进行配置   Router(config-subif)#encapsulation dot1q 3 .........配置802.1Q协议   Router(config-subif)#ip address 192.168.3.1 255.255.255.0 ......划分ip地址和子网掩码   Router(config-subif)#end   %SYS-5-CONFIG_I: Configured from console by console ..........完成配置   下面是测试结果:   经过分别对两台机子互相ping的测试,可以发现能够ping通, 说明 关于失联党员情况说明岗位说明总经理岗位说明书会计岗位说明书行政主管岗位说明书 实验成功
本文档为【单臂路由】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_525959
暂无简介~
格式:doc
大小:35KB
软件:Word
页数:0
分类:互联网
上传时间:2014-04-24
浏览量:32