ARP常见的基本用法

1、arp -a 当你需要显示当期ip地址对应的mac地址时使用
2、arp -s 当你需要手动添加或绑定一条arp记录时使用<手工输入一条ARP项目,格式为ARP+空格+-a+IP地址+MAC地址”>
3、arp -d 当你觉得某条arp记录有问题时,可以删除 <功能为:删除所有ARP记录>

ping 最常见的基本用法

1、ping IP <最常见的用法>
2、ping -t IP <不间断地ping指定计算机,需要手动中断>
3、ping -a IP <可以解析出主机名>
4、ping -n 10 IP <ping 10次后自动停止>
5、ping -l 3000 IP <ping 指定的数据包大小>
6、ping -r count 8 IP <在“记录路由”字段中记录传出和返回数据包的路由,探测经过的路由个数,但最多只能跟踪到9个路由>
7、for /L %D in (1,1,255) do ping 11.11.11.%D <批量ping 11.11.11.0/24网段>

H3C交换机堆叠配置(3台)

光纤连线方式(建议配置完交换机后再连接)
A:port-49—-B:port-50
B:port-49—-C:port-50
C:port-49—-A:port-50

交换机A配置如下:
interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50
shutdown
irf-port 1/1
port group interface Ten-GigabitEthernet1/0/49
#
irf-port 1/2
port group interface Ten-GigabitEthernet1/0/50
#
interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50
undo shutdown
quit
save
irf-port-configuration active

交换机B配置如下:
irf member 1 renumber 2
reboot
interface range ten-gigabitethernet 2/0/49 to ten-gigabitethernet 2/0/50
shutdown
irf-port 2/1
port group interface Ten-GigabitEthernet2/0/49
#
irf-port 2/2
port group interface Ten-GigabitEthernet2/0/50
#
interface range ten-gigabitethernet 2/0/49 to ten-gigabitethernet 2/0/50
undo shutdown
quit
save
irf-port-configuration active

交换机C配置如下:
irf member 1 renumber 3
reboot

interface range ten-gigabitethernet 3/0/49 to ten-gigabitethernet 3/0/50
shutdown
irf-port 3/1
port group interface Ten-GigabitEthernet3/0/49
#
irf-port 3/2
port group interface Ten-GigabitEthernet3/0/50
#

interface range ten-gigabitethernet 3/0/49 to ten-gigabitethernet 3/0/50
undo shutdown
quit
save
irf-port-configuration active