交换接口实验


[sw1]vlan 3
[sw1-vlan3]q
[sw1]interface e0
[sw1-Ethernet0/0/2]port link-type access 
[sw1-Ethernet0/0/2]q
[sw1]interface e0/0/1
[sw1-Ethernet0/0/1]port hybrid pvid vlan 3
[sw1-Ethernet0/0/1]q
[sw1]
[sw1]interface e0/0/1
[sw1-Ethernet0/0/1]port hybrid untagged vlan 1 3
[sw1-Ethernet0/0/1]q
[sw1]

    
[sw2-Ethernet0/0/1]port hybrid untagged vlan 1

    
[sw3]vlan 4
[sw3-vlan4]
Jan 24 2024 17:39:11-08:00 sw3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 5, the c
hange loop count is 0, and the maximum number of records is 4095.q
[sw3]interface e0/0/2    
[sw3-Ethernet0/0/2]port link-type access 
[sw3-Ethernet0/0/2]port default vlan 4
[sw3]interface e0/0/1
[sw3-Ethernet0/0/1]port hybrid pvid vlan 4
[sw3-Ethernet0/0/1]q
[sw3]
[sw3]interface e0/0/1
[sw3-Ethernet0/0/1]port hybrid untagged vlan 1 4
[sw3-Ethernet0/0/1]


PC>ping 192.168.1.4
 
Ping 192.168.1.4: 32 data bytes, Press Ctrl_C to break
From 192.168.1.4: bytes=32 seq=1 ttl=128 time=110 ms
From 192.168.1.4: bytes=32 seq=2 ttl=128 time=109 ms
From 192.168.1.4: bytes=32 seq=3 ttl=128 time=109 ms
From 192.168.1.4: bytes=32 seq=4 ttl=128 time=110 ms
From 192.168.1.4: bytes=32 seq=5 ttl=128 time=109 ms
 
--- 192.168.1.4 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 109/109/110 ms
 
PC>ping 192.168.1.3
 
Ping 192.168.1.3: 32 data bytes, Press Ctrl_C to break
From 192.168.1.3: bytes=32 seq=1 ttl=128 time=78 ms
From 192.168.1.3: bytes=32 seq=2 ttl=128 time=78 ms
From 192.168.1.3: bytes=32 seq=3 ttl=128 time=78 ms
From 192.168.1.3: bytes=32 seq=4 ttl=128 time=78 ms
From 192.168.1.3: bytes=32 seq=5 ttl=128 time=78 ms
 
--- 192.168.1.3 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 78/78/78 ms

  • 5
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值