通信人家园
标题:
华为数通简单配置命令
[查看完整版帖子]
[打印本页]
时间:
2014-8-28 14:39
作者:
txgs512
标题:
华为数通简单配置命令
telnet配置
[huawei]interface Ethernet 0/0
[huawei-ethernet]ip address 1.1.1.4 255.255.255.255
[huawei]user-interface vty 0 4
[huawei-ui-vty0-4]authentication-mode password
[huawei-ui-vty0-4]set authentication password simple huawei
[huawei-ui-vty0-4]user privilege level 3
[huawei]user-interface vty 0 4
[huawei-ui-vty0-4]authentication-mode aaa
[huawei-aaa]local-user huawei password cipher 123456
[huawei-aaa]Local-user huawei service-type telnet
[huawei-aaa]local-user huawei privilege level 15
[rtb]display ip routing-table 查看ip路由表
[rtb]display ip routing-table protocol static 查看静态路由信息
<rtb>syename 更改用户名
[rtb]ip route-static 10.1.1.1(目的地址) 255.255.255.255 1.1.1.1(下一跳)静态路由配置
[rtb]ip route-static 10.1.1.1 255.255.255.255 1.1.1.1 preference(优先级) 100
Rip配置
[huawei]rip
[huawei-rip-1]version 2
[huawei-rip-1]network 192.168.1.0
[huawei]display rip 1 route
Ospf配置
[rtb]route id 1.1.1.1
[rtb]ospf
[rtb-ospf-1]area 0
[rtb-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0(反掩码)
[rtb]display ospf routing 显示路由表信息
[rtb]display ospf peer 查看邻居关系
配置access接口属性
[swa-ethernet0/1]port link-type access 配置接口类型
[swa]vlan 100 创建vlan
[swa-ethernet0/1]port default vlan 100
配置trunk端口属性
[swa]vlan 100
[swa]vlan 200
[Swa-ethernet0/100]port link-type trunk
[Swa-ethernet0/100]port trunk pvid 100
[Swa-ethernet0/100]port trunk allow-pass vlan 100 200
单臂路由配置—交换机配置
[swa]vlan100
[swa-vlan100]port Ethernet 0/1
[swa]vlan200
[swa-vlan200]port Ethernet 0/2
[swa]interface Ethernet 0/24
[swa-ethernet0/24]port link-type trunk
[swa-ethernet0/24]port trunk allow-pass vlan 100 200 /all
单臂路由配置—路由器配置
[rta]interface Ethernet 0/0/0.100
[rta- Ethernet 0/0/0.100]control-vid 100 dot1q-termination
[rta- Ethernet 0/0/0.100] dot1q-termination vid 100
[rta- Ethernet 0/0/0.100]arp broadcast enabie
[rta- Ethernet 0/0/0.100]ip address 192.168.10.1 255.255.255.0 网关地址
[rta]interface Ethernet 0/0/0.200
[rta- Ethernet 0/0/0.200]control-vid 200 dot1q-termination
[rta- Ethernet 0/0/0.200] dot1q-termination vid 200
[rta- Ethernet 0/0/0.200]arp broadcast enabie
[rta- Ethernet 0/0/0.200]ip address 192.168.20.1 255.255.255.0 网关地址
三层交换机配置
[swa]interface vlanif 100
[swa-vlanif100]ip add 192.168.10.1 255.255.255.0 网关
[swa]interface vlanif 200
[swa-vlanif200]ip add 192.168.20.1 255.255.255.0
通信人家园 (https://www.txrjy.com/)
Powered by C114