两台3550三层交换机VLAN间通信
因为没有真实3550交换机,很多模拟软件不能真实模拟出三层交换机的功能.所以找了个专门的3550交换机模拟器.做了两个VLAN间通信的实验.
器材:两台3550交换机 二台PC 如图示:
![]() S1的F0/1口与S2的F0/1口相连
在S1上创建两个VLAN2,VLAN 3
S1的F0/2口加到VLAN 2
S2的F0/2口加到VLAN 3
配置: PC1:IP 10.1.1.2 255.255.255.0
PC2:IP 10.1.2.2 255.255.255.0
VLAN2:IP 10.1.1.1 255.255.255.0
VLAN3: IP 10.1.2.1 255.255.255.0
具体配置如下:
S1:
switch>en
switch#vlan data switch(vlan)#vlan 2 switch(vlan)#vlan 3 switch(vlan)#end switch#config t Enter configuration commands, one per line. End with CNTL/Z. switch(config)#vtp mode server switch(config)#vtp domain shil switch(config)#int f0/1 switch(config-if)#switchport mode trunk switch(config-if)#switchport trunk encap dot1q switch(config-if)#switchport trunk allowed vlan all switch(config-if)#no sh switch(config-if)#int f0/2 switch(config-if)#switchport mode access switch(config-if)#switchport access vlan 2 switch(config-if)#no sh switch(config-if)#exit switch(config)#ip routing switch(config)#int vlan 2 switch(config-if)#ip add 10.1.1.1 255.255.255.0 switch(config-if)#no sh switch(config-if)#int vlan 3 switch(config-if)#ip add 10.1.2.1 255.255.255.0 switch(config-if)#no sh switch(config-if)#end switch#show run S2:
switch>en
switch#config t Enter configuration commands, one per line. End with CNTL/Z. switch(config)#vtp mode client switch(config)#vtp domain shil switch(config)#int f0/1 switch(config-if)#switchport mode trunk switch(config-if)#switchport trunk encap dot1q switch(config-if)#switchport runk allowed vlan all switch(config-if)#no sh switch(config-if)#int f0/2 switch(config-if)#switchport mode access switch(config-if)#switchport access vlan 3 switch(config-if)#no sh switch(config-if)#end switch#config t
Enter configuration commands, one per line. End with CNTL/Z. switch(config)#ip routing switch(config)#end |



qqwulong
博客统计信息
热门文章
最新评论
友情链接
