当前位置:文档之家› 华为配置命令

华为配置命令

华为命令
用户视图system-view
进接口 int e0/0/0
退出quit 保存 save 关闭undo 重启 reboot
配ip: ip add 1.1.1.1 8(华为设备不需要激活)
更改设备名称 sysname **
查看vlan display vlan
查看配置信息 display current-conf iguartion
查看开机运行信息 display saved-configuartion
恢复出厂设置rest saved-config
查看接口配置信息 display ip int brief=display this
查看接口状态 display int brief
查看路由表 display ip routing-table
进3a模式
用户验证local-user huayu password cipher(密文)123
指定用户服务类型 local-user huayu service-type telnet
激活vty user-inter vty 0 4
调用aaa验证 authentication mode aaa
指定用户级别 user privilege level 15
进入vlan 1:int vlan if 1
创建多个vlan : vlan batch 10,20,30
access模式
int e0/0/1
port link-type access 修改模式
port default vlan 1 把接口加入vlan 1
trunk 模式
int e0/0/1
port link-type trunk
port trunk allow-pass vlan all 允许所有vlan通过

静态路由 ip route-staic **** 24 **** =ip route-staic **** e0/0/1 ****
单臂路由
int e0/0/0.1
ip add 192.168.1.254 24
dotlg termination vid 2
int e0/0/0.2
ip add 192.168.2.254 24
dotlg termination vid 3

ospf模式
ospf 1
area 0
network 200.200.200.0 0.0.0.3 ndo summary
dis ospf peer 查看邻居
重分发
import-route static 静态
import-route direct 直连
nat 模式
acl number 2001
rule 0 permit source any
int g0/0/1
nat outbound 2001 创建地址池
nat outbound 2001 add-group 1 转换印射
nat static protocal tcp globcl 100.100.100.0 www inside 172.16.0.1 www

链路捆绑
int eth-trunk 1 创建聚合组
port link-type trunk
port trunk allow-pass vlan all
vlan 2
int e0/0/1
port link-type accss
port default vlan 2
eth-trunk 1
int e0/0/2
port link-type trunk
port trunk pvid vlan 2

DHCP模式
dhcp enable 开启dhcp功能
ip poor huayu 创建地址池
network 192.168.1.0 24
dns-list 192.168.1.254 指定客户端dns地址
gateway-list 192.168.1.254 指定网关
lease day 8 租约
excluded-ip-add **** 排除地址
int e0/0/1
dhcp select glolcal 启用全局dhcp

相关主题
文本预览
相关文档 最新文档