C114门户论坛百科APPEN| 举报 切换到宽版

亚星游戏官网

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索
查看: 3215|回复: 0

[原理资料] HUAWEI数通简单配置命令 [复制链接]

军衔等级:

亚星游戏官网-yaxin222  新兵

注册:2013-4-8
发表于 2014-8-28 14:39:57 |显示全部楼层
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
       

举报本楼

您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系大家 |网站地图  

GMT+8, 2024-11-16 16:53 , Processed in 0.126549 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部
XML 地图 | Sitemap 地图