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

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

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

目 录CONTENT

文章目录

CCNP(BCMSN)实验:VLAN间路由--通过多层交换机解决方案

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

实验过程:第一步:配置sw1sw1 (config)#ip routingsw1(config)#int f2/1sw1(config-if)#sw mo accsw1(config-if)#sw a

.


实验过程:

第一步:配置sw1
sw1 (config)#ip routing
sw1(config)#int f2/1
sw1(config-if)#sw mo acc
sw1(config-if)#sw acc vlan 100
sw1(config-if)#int f2/2
sw1(config-if)#sw mo acc
sw1(config-if)#sw acc vlan 200

sw1(config)#int vlan 100
sw1(config-if)#ip add 192.168.1.1 255.255.255.0
sw1(config-if)#no sh
sw1(config-if)#int vlan 200
sw1(config-if)#ip add 172.16.1.1 255.255.255.0
sw1(config-if)#no sh

第二步:在R1和R2上进行配置,它们模拟pc

R1(config)#no ip routing
R1(config)#int e0/1
R1(config-if)#ip add 192.168.1.2 255.255.255.0
R1(config-if)#no sh
R1(config)#ip default-gateway 192.168.1.1

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

R1#ping 172.16.1.2

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

R2#ping 192.168.1.2

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

.

广告 广告

评论区