华三vlan端口隔离
为了实现端口间的二层隔离,可以将不同的端口加入不同的VLAN,但VLAN资源有限。采用端口隔离特性,用户只需要将端口加入到隔离组中,就可以实现隔离组内端口之间二层隔离,而不关心这些端口所属VLAN,从而节省VLAN资源。
隔离组内的端口与未加入隔离组的端口之间二层流量双向互通。
端口隔离配置
操作 |
命令 |
说明 |
进入系统视图 |
system-view |
- |
创建隔离组 |
port-isolate group group-id |
缺省情况下,不存在隔离组 |
进入相应视图 |
· 进入二层以太网接口视图: · 进入二层聚合接口视图: |
· 二层以太网接口视图下的配置只对当前端口生效 · 二层聚合接口视图下的配置对当前接口及其成员端口生效,若某成员端口配置失败,系统会跳过该端口继续配置其他成员端口,若二层聚合接口配置失败,则不会再配置成员端口 |
将端口加入到隔离组中 |
port-isolate enable group group-id |
缺省情况下,当前端口不属于任何隔离组 一个端口最多只能加入一个隔离组 |
端口维护
显示隔离组的信息 |
display port-isolate group [ group-id ] |
网络结构图
查看结果
测试
PC1
<H3C>ping 192.168.1.1
Ping 192.168.1.1 (192.168.1.1): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=0.000 ms
56 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=0.000 ms
56 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.1.1: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.000/0.000/0.000 ms
<H3C>%Oct 7 13:02:28:626 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.1: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.000/0.000/0.000 ms.
<H3C>ping 192.168.1.2
Ping 192.168.1.2 (192.168.1.2): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.2: icmp_seq=0 ttl=255 time=2.000 ms
56 bytes from 192.168.1.2: icmp_seq=1 ttl=255 time=1.000 ms
56 bytes from 192.168.1.2: icmp_seq=2 ttl=255 time=1.000 ms
56 bytes from 192.168.1.2: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.1.2: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.2 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.800/2.000/0.748 ms
<H3C>%Oct 7 13:02:31:369 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.2: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.800/2.000/0.748 ms.
<H3C>ping 192.168.1.3
Ping 192.168.1.3 (192.168.1.3): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.3: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 192.168.1.3: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.3: icmp_seq=2 ttl=255 time=3.000 ms
56 bytes from 192.168.1.3: icmp_seq=3 ttl=255 time=1.000 ms
56 bytes from 192.168.1.3: icmp_seq=4 ttl=255 time=2.000 ms
--- Ping statistics for 192.168.1.3 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/1.400/3.000/1.020 ms
<H3C>%Oct 7 13:02:34:756 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.3: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/1.400/3.000/1.020 ms.
<H3C>ping 192.168.1.4
Ping 192.168.1.4 (192.168.1.4): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.4: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 192.168.1.4: icmp_seq=1 ttl=255 time=1.000 ms
56 bytes from 192.168.1.4: icmp_seq=2 ttl=255 time=0.000 ms
56 bytes from 192.168.1.4: icmp_seq=3 ttl=255 time=1.000 ms
56 bytes from 192.168.1.4: icmp_seq=4 ttl=255 time=1.000 ms
--- Ping statistics for 192.168.1.4 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.800/1.000/0.400 ms
<H3C>%Oct 7 13:02:37:481 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.4: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.800/1.000/0.400 ms.
<H3C>ping 192.168.1.5
Ping 192.168.1.5 (192.168.1.5): 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- Ping statistics for 192.168.1.5 ---
5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss
<H3C>%Oct 7 13:02:50:980 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.5: 5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss.
PC2
<H3C>ping 192.168.1.1
Ping 192.168.1.1 (192.168.1.1): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=1.000 ms
56 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=1.000 ms
56 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.1.1: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.600/1.000/0.490 ms
<H3C>%Oct 7 13:02:55:747 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.1: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.600/1.000/0.490 ms.
<H3C>ping 192.168.1.2
Ping 192.168.1.2 (192.168.1.2): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.2: icmp_seq=0 ttl=255 time=0.000 ms
56 bytes from 192.168.1.2: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.2: icmp_seq=2 ttl=255 time=0.000 ms
56 bytes from 192.168.1.2: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.1.2: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.2 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.000/0.000/0.000 ms
<H3C>%Oct 7 13:02:58:291 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.2: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.000/0.000/0.000 ms.
<H3C>ping 192.168.1.3
Ping 192.168.1.3 (192.168.1.3): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.3: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 192.168.1.3: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.3: icmp_seq=2 ttl=255 time=2.000 ms
56 bytes from 192.168.1.3: icmp_seq=3 ttl=255 time=1.000 ms
56 bytes from 192.168.1.3: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.3 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.800/2.000/0.748 ms
<H3C>%Oct 7 13:03:00:998 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.3: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.800/2.000/0.748 ms.
<H3C>ping 192.168.1.4
Ping 192.168.1.4 (192.168.1.4): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.4: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 192.168.1.4: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.4: icmp_seq=2 ttl=255 time=1.000 ms
56 bytes from 192.168.1.4: icmp_seq=3 ttl=255 time=1.000 ms
56 bytes from 192.168.1.4: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.4 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.600/1.000/0.490 ms
<H3C>%Oct 7 13:03:03:691 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.4: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.600/1.000/0.490 ms.
<H3C>ping 192.168.1.5
Ping 192.168.1.5 (192.168.1.5): 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- Ping statistics for 192.168.1.5 ---
5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss
<H3C>%Oct 7 13:03:16:802 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.5: 5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss.
PC3
<H3C>
<H3C>ping 192.168.1.1
Ping 192.168.1.1 (192.168.1.1): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=2.000 ms
56 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=1.000 ms
56 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.1.1: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.800/2.000/0.748 ms
<H3C>%Oct 7 13:07:32:643 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.1: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.800/2.000/0.748 ms.
<H3C>ping 192.168.1.2
Ping 192.168.1.2 (192.168.1.2): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.2: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 192.168.1.2: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.2: icmp_seq=2 ttl=255 time=1.000 ms
56 bytes from 192.168.1.2: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.1.2: icmp_seq=4 ttl=255 time=1.000 ms
--- Ping statistics for 192.168.1.2 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.600/1.000/0.490 ms
<H3C>%Oct 7 13:07:35:840 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.2: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.600/1.000/0.490 ms.
<H3C>ping 192.168.1.3
Ping 192.168.1.3 (192.168.1.3): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.3: icmp_seq=0 ttl=255 time=0.000 ms
56 bytes from 192.168.1.3: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.3: icmp_seq=2 ttl=255 time=0.000 ms
56 bytes from 192.168.1.3: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.1.3: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.3 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.000/0.000/0.000 ms
<H3C>%Oct 7 13:07:38:433 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.3: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.000/0.000/0.000 ms.
<H3C>ping 192.168.1.4
Ping 192.168.1.4 (192.168.1.4): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.4: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 192.168.1.4: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.4: icmp_seq=2 ttl=255 time=1.000 ms
56 bytes from 192.168.1.4: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.1.4: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.4 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.400/1.000/0.490 ms
<H3C>%Oct 7 13:07:40:999 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.4: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.400/1.000/0.490 ms.
<H3C>ping 192.168.1.5
Ping 192.168.1.5 (192.168.1.5): 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- Ping statistics for 192.168.1.5 ---
5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss
<H3C>%Oct 7 13:07:53:748 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.5: 5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss.
PC4
<H3C>ping 192.168.1.1
Ping 192.168.1.1 (192.168.1.1): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=1.000 ms
56 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=1.000 ms
56 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.1.1: icmp_seq=4 ttl=255 time=3.000 ms
--- Ping statistics for 192.168.1.1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/1.200/3.000/0.980 ms
<H3C>%Oct 7 13:03:10:485 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.1: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/1.200/3.000/0.980 ms.
<H3C>ping 192.168.1.2
Ping 192.168.1.2 (192.168.1.2): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.2: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 192.168.1.2: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.2: icmp_seq=2 ttl=255 time=1.000 ms
56 bytes from 192.168.1.2: icmp_seq=3 ttl=255 time=1.000 ms
56 bytes from 192.168.1.2: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.2 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.600/1.000/0.490 ms
<H3C>%Oct 7 13:03:12:717 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.2: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.600/1.000/0.490 ms.
<H3C>ping 192.168.1.3
Ping 192.168.1.3 (192.168.1.3): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.3: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 192.168.1.3: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.3: icmp_seq=2 ttl=255 time=1.000 ms
56 bytes from 192.168.1.3: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.1.3: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.3 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.400/1.000/0.490 ms
<H3C>%Oct 7 13:03:15:291 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.3: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.400/1.000/0.490 ms.
<H3C>ping 192.168.1.4
Ping 192.168.1.4 (192.168.1.4): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.4: icmp_seq=0 ttl=255 time=0.000 ms
56 bytes from 192.168.1.4: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.4: icmp_seq=2 ttl=255 time=0.000 ms
56 bytes from 192.168.1.4: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.1.4: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.4 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.000/0.000/0.000 ms
<H3C>%Oct 7 13:03:17:944 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.4: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.000/0.000/0.000 ms.
<H3C>ping 192.168.1.5
Ping 192.168.1.5 (192.168.1.5): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.5: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 192.168.1.5: icmp_seq=1 ttl=255 time=1.000 ms
56 bytes from 192.168.1.5: icmp_seq=2 ttl=255 time=0.000 ms
56 bytes from 192.168.1.5: icmp_seq=3 ttl=255 time=1.000 ms
56 bytes from 192.168.1.5: icmp_seq=4 ttl=255 time=1.000 ms
--- Ping statistics for 192.168.1.5 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.800/1.000/0.400 ms
<H3C>%Oct 7 13:03:20:519 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.5: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.800/1.000/0.400 ms.
PC5
<H3C>ping 192.168.1.1
Ping 192.168.1.1 (192.168.1.1): 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- Ping statistics for 192.168.1.1 ---
5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss
<H3C>%Oct 7 13:05:29:524 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.1: 5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss.
<H3C>ping 192.168.1.2
Ping 192.168.1.2 (192.168.1.2): 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- Ping statistics for 192.168.1.2 ---
5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss
<H3C>%Oct 7 13:05:44:566 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.2: 5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss.
<H3C>ping 192.168.1.3
Ping 192.168.1.3 (192.168.1.3): 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- Ping statistics for 192.168.1.3 ---
5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss
<H3C>%Oct 7 13:06:00:143 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.3: 5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss.
<H3C>ping 192.168.1.4
Ping 192.168.1.4 (192.168.1.4): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.4: icmp_seq=0 ttl=255 time=2.000 ms
56 bytes from 192.168.1.4: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.4: icmp_seq=2 ttl=255 time=0.000 ms
56 bytes from 192.168.1.4: icmp_seq=3 ttl=255 time=1.000 ms
56 bytes from 192.168.1.4: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.4 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.600/2.000/0.800 ms
<H3C>%Oct 7 13:06:04:218 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.4: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.600/2.000/0.800 ms.
<H3C>ping 192.168.1.5
Ping 192.168.1.5 (192.168.1.5): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.5: icmp_seq=0 ttl=255 time=0.000 ms
56 bytes from 192.168.1.5: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.1.5: icmp_seq=2 ttl=255 time=0.000 ms
56 bytes from 192.168.1.5: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.1.5: icmp_seq=4 ttl=255 time=0.000 ms
--- Ping statistics for 192.168.1.5 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.000/0.000/0.000 ms
<H3C>%Oct 7 13:06:07:223 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.5: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.000/0.000/0.000 ms.
脚本
sysname SW-GL
#
port-isolate group 1
port-isolate group 2
#
interface GigabitEthernet1/0/1
port link-mode bridge
combo enable fiber
port-isolate enable group 1
#
interface GigabitEthernet1/0/2
port link-mode bridge
combo enable fiber
port-isolate enable group 1
#
interface GigabitEthernet1/0/3
port link-mode bridge
combo enable fiber
port-isolate enable group 1
#
interface GigabitEthernet1/0/4
port link-mode bridge
combo enable fiber
port-isolate enable group 2
#
interface GigabitEthernet1/0/5
port link-mode bridge
combo enable fiber
port-isolate enable group 2
#