交换接口实验

交换接口实验_第1张图片


[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

你可能感兴趣的:(编辑器)