实验来源:邓方鸣三层交换机
软件下载:
华三虚拟实验室: 华三虚拟实验室下载
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
279

被折叠的 条评论
为什么被折叠?



