【实验】【H3CNE邓方鸣】三层交换实验+2024.12.27

三层交换机实验软件及端口命令

实验来源:邓方鸣三层交换机
软件下载:
华三虚拟实验室: 华三虚拟实验室下载
wireshark:wireshark
SecureCRT v8.7 版本: CRT下载分享与破解
端口常用命令:端口

在这里插入图片描述
配置三层交换机

[SW1]vlan 10
[SW1-vlan10]port GigabitEthernet 1/0/1
[SW1-vlan10]int vlan-interface 10              //vlan接口配置
[SW1-Vlan-interface10]ip address 192.168.1.254 24
[SW1-Vlan-interface10]qu
[SW1]vlan 20
[SW1-vlan20]port GigabitEthernet 1/0/2
[SW1-vlan20]int vlan-interface 20
[SW1-Vlan-interface20]ip address 192.168.2.254 24
[SW1-Vlan-interface20]qu
[SW1-Vlan-interface10]dis ip int brief
*down: administratively down
(s): spoofing  (l): loopback
Interface                Physical Protocol IP Address      Description
MGE0/0/0                 down     down     --              --
Vlan10                   up       up       192.168.1.254   --   //vlan10配置地址成功
Vlan20                   up       up       192.168.2.254   --   //vlan20配置地址成功

[SW1]dis ip routing-table

Destinations : 16       Routes : 16

Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.0/32       Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.0/24     Direct  0   0           192.168.1.254   Vlan10
192.168.1.0/32     Direct  0   0           192.168.1.254   Vlan10
192.168.1.254/32   Direct  0   0           127.0.0.1       InLoop0
192.168.1.255/32   Direct  0   0           192.168.1.254   Vlan10
192.168.2.0/24     Direct  0   0           192.168.2.254   Vlan20
192.168.2.0/32     Direct  0   0           192.168.2.254   Vlan20
192.168.2.254/32   Direct  0   0           127.0.0.1       InLoop0
192.168.2.255/32   Direct  0   0           192.168.2.254   Vlan20
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0

查看主机ping


<H3C>ping 192.168.2.100
Ping 192.168.2.100 (192.168.2.100): 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out

<H3C>ping 192.168.2.100
Ping 192.168.2.100 (192.168.2.100): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.2.100: icmp_seq=0 ttl=254 time=1.702 ms
56 bytes from 192.168.2.100: icmp_seq=1 ttl=254 time=0.977 ms
56 bytes from 192.168.2.100: icmp_seq=2 ttl=254 time=0.559 ms
56 bytes from 192.168.2.100: icmp_seq=3 ttl=254 time=0.998 ms
56 bytes from 192.168.2.100: icmp_seq=4 ttl=254 time=2.454 ms
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值