三层交换VLAN路由配置技巧解析

PC1配置:

No ip routing

interface FastEthernet0/0

ip address 172.16.20.254 255.255.255.0

No shutdown

PC2配置:

No ip routing

interface FastEthernet0/0

ip address 172.16.30.254 255.255.255.0

No shutdown

Switch配置:

Ip routing

interface FastEthernet0/1

switchport access VLAN 20

no ip address

!

interface FastEthernet0/2

switchport access VLAN 30

no ip address

!

VLAN database

VLAN 20

VLAN 30

Exit

!

interface VLAN20

ip address 172.16.20.1 255.255.255.0

No shutdown

!

interface VLAN30

ip address 172.16.30.1 255.255.255.0

No shutdown

===========================

验证:

PC1#ping 172.16.30.254 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.30.254, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 44/100/196 ms

PC2#ping 172.16.20.254 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.20.254, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 56/80/120 ms

 

   来源:中国IT实验室

微信扫描分享本文到朋友圈
扫码关注5G通信官方公众号,免费领取以下5G精品资料
  • 1、回复“YD5GAI”免费领取《中国移动:5G网络AI应用典型场景技术解决方案白皮书
  • 2、回复“5G6G”免费领取《5G_6G毫米波测试技术白皮书-2022_03-21
  • 3、回复“YD6G”免费领取《中国移动:6G至简无线接入网白皮书
  • 4、回复“LTBPS”免费领取《《中国联通5G终端白皮书》
  • 5、回复“ZGDX”免费领取《中国电信5GNTN技术白皮书
  • 6、回复“TXSB”免费领取《通信设备安装工程施工工艺图解
  • 7、回复“YDSL”免费领取《中国移动算力并网白皮书
  • 8、回复“5GX3”免费领取《R1623501-g605G的系统架构1
  • 本周热点本月热点

     

      最热通信招聘

      最新招聘信息

    最新技术文章

    最新论坛贴子