只有一个思科三层交换机3560怎么实现两个VLAN间通信
.交换机fa0/1,fa0/2为vlan2,10.9.X.X段,.交换机fa0/3,fa0/4为vlan3,192.168.X.X段,同一VLAN间通信是无问题的,两个V...
.交换机fa0/1,fa0/2为vlan2,10.9.X.X段,.交换机fa0/3,fa0/4为vlan3,192.168.X.X段,同一VLAN间通信是无问题的,两个VLAN怎么配通?
展开
展开全部
给你一个完整版的
Switchserver#vlan dat
Switchserver(vlan)#vlan 4 name test4 为vlan4and vlan5 命名
VLAN 4 added:
Name: test4
Switchserver(vlan)#vlan 5 name test5
VLAN 5 added:
Name: test5
Switchserver(vlan)#exit
APPLY completed.
Exiting....
Switchserver#config t 进入全局模式,为vlan4和vlan 5指定IP和网关
Enter configuration commands, one per line. End with CNTL/Z.
Switchserver(config)#int vlan 4
Switchserver(config-if)#
%LINK-5-CHANGED: Interface Vlan4, changed state to up
ip add 172.16.8.254 255.255.255.0
Switchserver(config-if)#ip add 172.16.8.254 255.255.255.0
Switchserver(config-if)#no shutdown
Switchserver(config-if)#end
Switchserver#
%SYS-5-CONFIG_I: Configured from console by console
Switchserver#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switchserver(config)#int vlan 5
Switchserver(config-if)#
%LINK-5-CHANGED: Interface Vlan5, changed state to up
Switchserver(config-if)#ip add 172.16.7.254 255.255.255.0
Switchserver(config-if)#no shutdown
Switchserver(config-if)#ip routing 开通vlan4和vlan5的IP路由功能
Switchserver(config)#end
Switchserver#
%SYS-5-CONFIG_I: Configured from console by console
Switchserver#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switchserver(config)#int vlan 4
Switchserver(config-if)#ip routing
Switchserver(config)#
Switchserver#
%SYS-5-CONFIG_I: Configured from console by console
Switchserver#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switchserver(config)#int vlan 4 将vlan4和交换机的11-15号端口相关联
Switchserver(config-if)#interface range fa0/11-15
Switchserver(config-if-range)#sw access vlan 4
Switchserver(config-if-range)#exit
Switchserver(config)#interface range fa0/16-20 将vlan5和交换机的16-20号端口相关联
Switchserver(config-if-range)#sw access vlan 5
Switchserver(config-if-range)#end
以上一切就Ok了,实现了同个三层交换机上,两个vlan里的PC互访的功能!
Switchserver#vlan dat
Switchserver(vlan)#vlan 4 name test4 为vlan4and vlan5 命名
VLAN 4 added:
Name: test4
Switchserver(vlan)#vlan 5 name test5
VLAN 5 added:
Name: test5
Switchserver(vlan)#exit
APPLY completed.
Exiting....
Switchserver#config t 进入全局模式,为vlan4和vlan 5指定IP和网关
Enter configuration commands, one per line. End with CNTL/Z.
Switchserver(config)#int vlan 4
Switchserver(config-if)#
%LINK-5-CHANGED: Interface Vlan4, changed state to up
ip add 172.16.8.254 255.255.255.0
Switchserver(config-if)#ip add 172.16.8.254 255.255.255.0
Switchserver(config-if)#no shutdown
Switchserver(config-if)#end
Switchserver#
%SYS-5-CONFIG_I: Configured from console by console
Switchserver#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switchserver(config)#int vlan 5
Switchserver(config-if)#
%LINK-5-CHANGED: Interface Vlan5, changed state to up
Switchserver(config-if)#ip add 172.16.7.254 255.255.255.0
Switchserver(config-if)#no shutdown
Switchserver(config-if)#ip routing 开通vlan4和vlan5的IP路由功能
Switchserver(config)#end
Switchserver#
%SYS-5-CONFIG_I: Configured from console by console
Switchserver#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switchserver(config)#int vlan 4
Switchserver(config-if)#ip routing
Switchserver(config)#
Switchserver#
%SYS-5-CONFIG_I: Configured from console by console
Switchserver#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switchserver(config)#int vlan 4 将vlan4和交换机的11-15号端口相关联
Switchserver(config-if)#interface range fa0/11-15
Switchserver(config-if-range)#sw access vlan 4
Switchserver(config-if-range)#exit
Switchserver(config)#interface range fa0/16-20 将vlan5和交换机的16-20号端口相关联
Switchserver(config-if-range)#sw access vlan 5
Switchserver(config-if-range)#end
以上一切就Ok了,实现了同个三层交换机上,两个vlan里的PC互访的功能!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询