单臂路由配置二层交换机和三层交换机跨vlan通信.docx

上传人:牧羊曲112 文档编号:3090535 上传时间:2023-03-10 格式:DOCX 页数:9 大小:37.32KB
返回 下载 相关 举报
单臂路由配置二层交换机和三层交换机跨vlan通信.docx_第1页
第1页 / 共9页
单臂路由配置二层交换机和三层交换机跨vlan通信.docx_第2页
第2页 / 共9页
单臂路由配置二层交换机和三层交换机跨vlan通信.docx_第3页
第3页 / 共9页
单臂路由配置二层交换机和三层交换机跨vlan通信.docx_第4页
第4页 / 共9页
单臂路由配置二层交换机和三层交换机跨vlan通信.docx_第5页
第5页 / 共9页
亲,该文档总共9页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《单臂路由配置二层交换机和三层交换机跨vlan通信.docx》由会员分享,可在线阅读,更多相关《单臂路由配置二层交换机和三层交换机跨vlan通信.docx(9页珍藏版)》请在三一办公上搜索。

1、单臂路由配置 二层交换机和三层交换机跨vlan通信单臂路由配置 实现二层交换机三层交换机 跨vlan 通信 三层交换机 (config#)ip routing 打开三层交换机的路由功能 (config#)int vlan 2 ip address 192.168.2.254 255.255.255.0 no shutdown (config#)int vlan 3 ip address 192.168.3.254 255.255.255.0 no shutdown 配置两条静态路由 (config#)ip route 192.168.2.0 255.255.255.0 fa0/1 (confi

2、g#)ip route 192.168.3.0 255.255.255.0 fa0/1 将接到二层交换的那个端口设置成trunk模式 (config#)interface fa0/1 switch mode trunk 二层交换机 (config#)vlan 2 (config#)interface fa0/2 switch mode access switchport access vlan2 no shutdown (config#)vlan 3 (config#)interface fa0/3 switch mode access switchport access vlan3 no s

3、hutdown 将接到三层交换的那个端口设置成trunk模式 (config#)interface fa0/1 switch mode trunk witch(config)#vlan 3 %LINK-5-CHANGED: Interface Vlan3, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, changed state to up Switch(config-vlan)#no shut % Invalid input detected at marker. Switch(confi

4、g-vlan)#no shutdown % Invalid input detected at marker. Switch(config-vlan)#exit Switch(config)# Switch(config)#int vlan 3 Switch(config-if)#no shut Switch(config-if)#no shutdown Switch(config-if)#end Switch# %SYS-5-CONFIG_I: Configured from console by console Switch# Switch# Switch#show vlan VLAN N

5、ame Status Ports - - - - 1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/15, Fa0/16, Fa0/17 Fa0/18, Fa0/19, Fa0/20, Fa0/21 Fa0/22, Fa0/23, Fa0/24, Gig0/1 Gig0/2 2 VLAN0002 active 3 VLAN0003 active 1002 fddi-default act/unsup 1003 toke

6、n-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 - - - - - - - - - - - 1 enet 100001 1500 - - - - - 0 0 2 enet 100002 1500 - - - - - 0 0 3 enet 100003 1500 - - - - - 0 0 1002 fddi 101002 1500 - -

7、 - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 101005 1500 - - - ibm - 0 0 Remote SPAN VLANs - Switch#show vlan VLAN Name Status Ports - - - - 1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14

8、, Fa0/15, Fa0/16, Fa0/17 Fa0/18, Fa0/19, Fa0/20, Fa0/21 Fa0/22, Fa0/23, Fa0/24, Gig0/1 Gig0/2 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 - - - - - - - -

9、 - - - 1 enet 100001 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 1005 trnet 101005 1500 - - - ibm - 0 Remote SPAN VLANs - Primary Secondary Type Ports - - - - Switch# Switch# Switch#config Configuring from terminal, m

10、emory, or network terminal? Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 3 %LINK-5-CHANGED: Interface Vlan3, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, changed state to up Switch(config-vlan)#no shut % Invalid input detected at mark

11、er. Switch(config-vlan)#no shutdown % Invalid input detected at marker. Switch(config-vlan)#exit Switch(config)#int vlan 2 Switch(config-if)#no shutdown Switch(config-if)#end Switch# %SYS-5-CONFIG_I: Configured from console by console Switch#show vlan 0 0 VLAN Name Status Ports - - - - 1 default act

12、ive Fa0/2, Fa0/3, Fa0/4, Fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/15, Fa0/16, Fa0/17 Fa0/18, Fa0/19, Fa0/20, Fa0/21 Fa0/22, Fa0/23, Fa0/24, Gig0/1 Gig0/2 3 VLAN0003 active 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup

13、1005 trnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 - - - - - - - - - - - 1 enet 100001 1500 - - - - - 0 0 3 enet 100003 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005

14、 trnet 101005 1500 - - - ibm - 0 0 Remote SPAN VLANs - Primary Secondary Type Ports - - - - Switch#config Configuring from terminal, memory, or network terminal? Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int vlan 2 Switch(config-if)#no shutdown Switch(config-if)#exi

15、t Switch(config)#end %SYS-5-CONFIG_I: Configured from console by console Switch#show vlan VLAN Name Status Ports - - - - 1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/15, Fa0/16, Fa0/17 Fa0/18, Fa0/19, Fa0/20, Fa0/21 Fa0/22, Fa0/23,

16、 Fa0/24, Gig0/1 Gig0/2 3 VLAN0003 active 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 - - - - - - - - - - - 1 enet 100001 1500 - - - - - 0 0 3 enet 100003

17、 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 Switch#config Configuring from terminal, memory, or network terminal? Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 2 %LINK-5-CHANGED: Interface Vlan2, changed state to up %LI

18、NEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to up Switch(config-vlan)#no shutdown % Invalid input detected at marker. Switch(config-vlan)#exit Switch(config)#int vlan % Incomplete command. Switch(config)#int vlan 2 Switch(config-if)#no shutdown Switch(config-if)#end %SYS-5-CONF

19、IG_I: Configured from console by console Switch#show vlan VLAN Name Status Ports - - - - 1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/15, Fa0/16, Fa0/17 Fa0/18, Fa0/19, Fa0/20, Fa0/21 Fa0/22, Fa0/23, Fa0/24, Gig0/1 Gig0/2 2 VLAN0002 active 3 VLAN0003 active 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup Primary Secondary Type Ports - - - - Switch#

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号