H3C 交换机命令
356 字
2 分钟
H3C 交换机命令
一、系统基础
system-view // 进入系统视图sysname SW1-Group4 // 修改设备名称
save // 保存配置reboot // 重启设备
undo shutdown // 开启接口
display current-configuration // 查看当前配置(dis cu)display saved-configuration // 查看已保存配置二、VLAN 与接口配置
三、三层接口与网关
interface Vlan-interface 40 ip address 10.0.4.254 255.255.255.0
interface GigabitEthernet 1/0/24 undo portswitch // 切换为三层接口 ip address 10.99.0.2 255.255.255.252
display ip interface briefdisplay interface briefdisplay arp all四、静态路由
ip route-static 0.0.0.0 0.0.0.0 10.99.0.1ip route-static 10.0.1.0 255.255.255.0 10.99.0.1ip route-static 10.0.2.0 24 10.99.0.1
display ip routing-table
ping 10.99.0.1tracert 10.0.1.254五、单臂路由
interface GigabitEthernet 1/0/1.10 vlan-type dot1q vid 10 ip address 192.168.10.254 255.255.255.0六、SSH 远程管理
七、ACL 基础
acl basic 2000 rule permit source 10.0.4.0 0.0.0.255
acl advanced 3000 rule deny tcp source any destination any destination-port eq 80
interface GigabitEthernet 1/0/1 packet-filter 3000 inbound
display acl all八、常用查看命令速记
dis cu | inc vlan // 查看 VLAN 相关配置
dis int br // 接口状态dis ip int br // IP 地址表
dis ip rou // 路由表dis mac-add // MAC 地址表dis arp // ARP 表dis vlan // VLAN 信息
ping -a 10.0.4.254 10.0.1.1支持与分享
如果这篇文章对你有帮助,欢迎分享给更多人或赞助支持!
随机文章 随机推荐