首页 > 其他分享 >H3C vlan基础配置实验

H3C vlan基础配置实验

时间:2024-02-05 17:15:48浏览次数:35  
标签:H3C 56 vlan bytes packet 实验 192.168 time 0.000

H3C vlan基础配置实验

实验拓扑

image.png

实验需求

1、按图示为PC配置IP地址

2、SW1和SW2上分别创建vlan10和vlan20,要求PC1和PC3属于vlan10,PC2和PC4属于vlan20

3、SW1和SW2相连的接口配置为trunk类型,允许vlan10和vlan20通过

4、测试效果,同一vlan的PC可以互通,不同vlan的PC无法互通

实验步骤

SW1创建vlan,配置接口

#
 sysname SW1
#
vlan 10
#
vlan 20
#
interface GigabitEthernet1/0/1
 port link-type trunk
 port trunk permit vlan 10 20
#
interface GigabitEthernet1/0/2
 port link-mode bridge
 port access vlan 10
#
interface GigabitEthernet1/0/3
 port link-mode bridge
 port access vlan 20

SW2创建vlan,配置接口

#
 sysname SW2
#
vlan 10
#
vlan 20
#
interface GigabitEthernet1/0/1
 port link-type trunk
 port trunk permit vlan 10 20
#
interface GigabitEthernet1/0/2
 port link-mode bridge
 port access vlan 10
#
interface GigabitEthernet1/0/3
 port link-mode bridge
 port access vlan 20

PC配置IP(略)

实验验证

同一vlan的PC可以互通,不同vlan的PC无法互通

PC1 ping测试(同vlan可互通,不同vlann无法互通)

[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]%Jan 15 13:00:15:328 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=1.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 = 1.000/1.200/2.000/0.400 ms
[H3C]%Jan 15 13:00:18:248 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 = 1.000/1.200/2.000/0.400 ms.

[H3C]ping 192.168.2.1
Ping 192.168.2.1 (192.168.2.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.2.1 ---
5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss
[H3C]%Jan 15 13:00:34:791 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.2.1: 5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss.

[H3C]ping 192.168.2.2
Ping 192.168.2.2 (192.168.2.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.2.2 ---
5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss
[H3C]%Jan 15 13:00:48:161 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.2.2: 5 packet(s) transmitted, 0 packet(s) received, 100.0% packet loss.

PC2 Ping测试(同vlan可互通,不同vlann无法互通)

[H3C]ping 192.168.2.1
Ping 192.168.2.1 (192.168.2.1): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.2.1: icmp_seq=0 ttl=255 time=0.000 ms
56 bytes from 192.168.2.1: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.2.1: icmp_seq=2 ttl=255 time=0.000 ms
56 bytes from 192.168.2.1: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 192.168.2.1: icmp_seq=4 ttl=255 time=0.000 ms

--- Ping statistics for 192.168.2.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]%Jan 15 13:03:03:995 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.2.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.2.2
Ping 192.168.2.2 (192.168.2.2): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.2.2: icmp_seq=0 ttl=255 time=2.000 ms
56 bytes from 192.168.2.2: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 192.168.2.2: icmp_seq=2 ttl=255 time=1.000 ms
56 bytes from 192.168.2.2: icmp_seq=3 ttl=255 time=2.000 ms
56 bytes from 192.168.2.2: icmp_seq=4 ttl=255 time=1.000 ms

--- Ping statistics for 192.168.2.2 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/1.200/2.000/0.748 ms
[H3C]%Jan 15 13:03:08:669 2024 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.2.2: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/1.200/2.000/0.748 ms.

[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]%Jan 15 13:03:23:248 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]%Jan 15 13:03:39:192 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.

实验附件

vlan基础配置实验.zip

标签:H3C,56,vlan,bytes,packet,实验,192.168,time,0.000
From: https://www.cnblogs.com/caomojian/p/18008450/h3c-vlan-basic-configuration-experiment-1qbon

相关文章

  • H3C 设备升级与降级固件版本
    H3C设备升级与降级固件版本华三路由器软件版本为Version7.1.064,Release0809P25可通过华三官网下载中调指定版本版本软件下载地址:https://www.h3c.com/cn/d_202006/1300612_30005_40.html下载账号:yx800密码:01230123降级步骤和升级步骤一样已下载的软件版本文件可通过f......
  • H3C DHCP实验
    H3CDHCP实验实验拓扑​​实验需求按照图示为R1配置IP地址配置R1为DHCP服务器,提供服务的地址池为192.168.1.0/24​网段,网关为192.168.1.254​,DNS服务器地址为202.103.24.68​,202.103.0.117​​192.168.1.10-192.168.1.20​为专用地址段,要求不能用于自动分配PC1和PC2都能获......
  • H3C DHCP中继实验
    H3CDHCP中继实验实验拓扑​​实验需求按照图示配置IP地址配置R1为DHCP服务器,能够跨网段为192.168.2.0/24​网段自动分配IP地址。要求分配DNS地址为202.103.24.68​和202.103.0.117​PC1获取IP地址后,能够访问到192.168.1.1​实验步骤设备IP地址配置R1#interfaceGiga......
  • H3C 交换机端口安全实验
    H3C交换机端口安全实验实验拓扑​​实验需求按照图示配置IP地址在SW1所有连接PC的接口上配置开启802.1X验证,使接入的终端需要进行身份验证创建一个用户身份验证的用户。用户名为wangdaye​,密码为123456​创建一个端口隔离组,实现三台PC无法互相访问实验步骤PC配置IP(略)......
  • H3C 链路聚合实验
    H3C链路聚合实验实验拓扑​​实验需求按照图示配置PC1和PC2的IP地址在SW1和SW2的两条直连链路上配置链路聚合,实现链路冗余,并可以增加传输带宽SW1和SW2之间的直连链路要配置为Trunk类型,允许所有vlan通过中断SW1和SW2之间的一条直连链路,测试PC1和PC2是否仍然能够继续访问......
  • H3C 设备配置文件备份还原实验
    H3C设备配置文件备份还原实验H3C模拟器搭建实验,仅为参考(2024年1月14日)实验拓扑实验需求1、按照图示连接到真机,并配置IP地址(真机IP地址配置到VirtualBoxHost-OnlyEthernetAdapter网卡)2、R1保存当前配置3、在R1上开启FTP服务4、使用真机访问FTP服务,把R1的配置文件拷......
  • H3C vlan基础配置实验
    H3Cvlan基础配置实验实验拓扑实验需求1、按图示为PC配置IP地址2、SW1和SW2上分别创建vlan10和vlan20,要求PC1和PC3属于vlan10,PC2和PC4属于vlan203、SW1和SW2相连的接口配置为trunk类型,允许vlan10和vlan20通过4、测试效果,同一vlan的PC可以互通,不同vlan的PC无法互通实验步......
  • H3C 单臂路由实验
    H3C单臂路由实验实验拓扑​​实验需求按照图示为PC1和PC2配置IP地址和网关PC1属于Vlan10,PC2属于Vlan20,配置单臂路由实现Vlan10和Vlan20三层互通PC1和PC2可以互通实验步骤PC配置IP地址(略)配置单臂路由实现Vlan10和Vlan20三层互通用单臂路由实现V......
  • H3C 三层交换实验
    H3C三层交换实验实验拓扑​​实验需求按照图示为PC1和PC2配置IP地址和网关PC1属于Vlan10,PC2属于Vlan20,在三层交换机上配置Vlanif三层接口实现Vlan10和Vlan20三层互通PC1和PC2可以互通实验步骤PC配置IP地址(略)SW1配置创建VLAN10和VLAN20#vlan10......
  • H3C ACL配置实验
    H3CACL配置实验实验拓扑​​实验需求按照图示配置IP地址全网路由互通在SERVER1上配置开启TELNET和FTP服务配置ACL实现如下效果​192.168.1.0/24​网段不允许访问192.168.2.0/24​网段,要求使用基本ACL实现PC1可以访问SERVER1的TELNET服务,但......