CCNP(BCMSN)实验:VLAN间路由--单臂路由解决方案

馋奶兔 提交于 2020-10-14 14:53:00

CCNP(BCMSN)实验:VLAN间路由--单臂路由解决方案
实验过程:

第一步:在R1上进行配置
R1(config)#int e0/1
R1(config-if)#no sh
R1(config-if)#exi
R1(config)#int e0/1.1
R1(config-subif)#en dot1Q 100(vlan id)
R1(config-subif)#ip add 192.168.1.254 255.255.255.0
R1(config-subif)#exit
R1(config)#int e0/1.2
R1(config-subif)#en dot1Q 200
R1(config-subif)#ip add 172.16.1.254 255.255.255.0
R1(config-subif)#exi
R1(config)#end
第二步:在sw1上进行配置












sw1(config)#int f2/1
sw1(config-if)#sw trunk encapsulation dot1q
sw1(config-if)#switchport mode trunk
sw1(config-if)#end


sw1#vlan da
sw1#vlan database
sw1(vlan)#vlan 100 name pc1:192
VLAN 100 added:
Name: pc1:192
sw1(vlan)#vlan 200 name pc2:172
VLAN 200 added:
Name: pc2:172






sw1(config)#int f2/2
sw1(config-if)#sw mo ac
sw1(config-if)#sw acc vlan 100
sw1(config-if)#int f2/3
sw1(config-if)#sw mo acc
sw1(config-if)#sw acc vlan 200
sw1(config-if)#exit
第三步:在R3和R2上配置各种参数






R2(config)#no ip routing
R2(config)#int e0/1
R2(config-if)#ip add 192.168.1.1 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exi
R2(config)#ip default-gateway 192.168.1.254




R3(config)#no ip routing
R3(config)#int e0/1
R3(config-if)#ip add 172.16.1.1 255.255.255.0
R3(config-if)#no sh
R3(config)#ip default-gateway 172.16.1.254
第四步:测试
R2#ping 172.16.1.1





Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/75/112 ms


R3#ping 192.168.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/94/128 ms


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!