侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

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

2023-04-06 星期四 / 0 评论 / 0 点赞 / 73 阅读 / 2007 字

实验过程:第一步:在R1上进行配置R1(config)#int e0/1R1(config-if)#no shR1(config-if)#exiR1(config)#int e0/1.1R1(conf

.


实验过程:

第一步:在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

.

广告 广告

评论区