华为路由标准配置
1.f主机配置
Host F : 133.0.0.8 255.255.0.0
login:root
password:linux
- ifconfig eth0 133.0.0.8 netmask 255.255.0.0
- route add default gw 133.0.0.1
- ifconfig
2.a主机配置
Host A : 10.1.1.1 255.255.0.0
- ifconfig eth0 10.1.1.1 netmask 255.255.0.0
- route add default gw 10.1.1.9
- route
3.路由配置
RouterA E0: 10.1.1.9 255.255.0.0
3.1配置e0接口ip
<Quidwqy>system
password:
- [Quidway]interface ethernet0
- [Quidway-Ethernet0]ip addr 10.1.1.9 255.255.0.0
- [Quidway-Ethernet0]undo shutdown
配置池和nat转换
- [Quidway]nat address-group 133.0.0.1 133.0.0.3 pool1
- [Quidway]acl 1
- [Quidway-acl-1]rule permit source 10.1.0.0 0.0.255.255
- [Quidway-acl-1]rule deny source any
- [Quidway-acl-1]int s0
- [Quidway-Serial0]undo shut
- [Quidway-Serial0]nat outbound 1 address-group pool1
- [Quidway-Serial0]nat server global 133.0.0.1 inside 10.1.1.1 ftp tcp
- [Quidway-Serial0]nat server global 133.0.0.2 inside 10.1.1.2 www tcp
- [Quidway-Serial0]nat server global 133.0.0.3 inside 10.1.1.3 smtp udp
ping ip测试配置
ping 133.0.0.1
telnet 开启
- [S3026]super password 111 ;设置特权密码
- [S3026]user-interface vty 0 4
- [S3026-ui-vty0-4]authentication-mode password
- [S3026-ui-vty0-4]set authentication-mode password simple 222
- [S3026-ui-vty0-4]user privilege level 3
- [S3026-ui-vty0-4]quit
或者
https://jingyan.baidu.com/article/d5a880ebdb802113f147cca3.html
接口聚合
- 实验二 配置端口聚合
- 要求聚合的端口工作在全双工,速度一致,在同一槽口且连续。
- 参数:ingress:源MAC, both:源和目的MAC
- 对于SwitchA:
- [SwitchA]interface ethernet0/1
- [SwitchA-Ethernet0/1]duplex full
- [SwitchA-Ethernet0/1]speed 100
- [SwitchA-Ethernet0/1]int e0/2
- [SwitchA-Ethernet0/2]duplex full
- [SwitchA-Ethernet0/2]speed 100
- 对于SwitchB:
- [SwitchB]interface ethernet0/1
- [SwitchB-Ethernet0/1]duplex full
- [SwitchB-Ethernet0/1]speed 100
- [SwitchB-Ethernet0/1]int e0/2
- [SwitchB-Ethernet0/2]duplex full
- [SwitchB-Ethernet0/2]speed 100
- 聚合操作:[SwitchB-Ethernet0/2] 都在这个接口下操作
- [SwitchA]link-aggregation ethernet0/1 to ethernet0/2 both
[SwitchB]link-aggregation ethernet0/1 to ethernet0/2 both
[SwitchA]display link-aggregation ethernet0/1
[SwitchA]undo link-aggregation all
简单路由设置
- <Huawei>sys
- [Huawei]interface g0/0/0
- [Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 24
- [Huawei-GigabitEthernet0/0/0]undo shutdown
- [Huawei-GigabitEthernet0/0/0]interface g0/0/1
- [Huawei-GigabitEthernet0/0/1]ip address 192.168.2.1 24
- [Huawei-GigabitEthernet0/0/1]undo shutdown
[Huawei]dis ip int b #查看接口信息
用户设置
- 密码验证方式
- [Huawei]user-interface vty 0 4
- [Huawei-ui-vty0-4]authentication-mode password
- Please configure the login password (maximum length 16):huawei
- user privilege level 1
aaa验证方式- 管理账户 用户admin 密码hello 管理级别3
- [Huawei]aaa
- [Huawei-aaa]local-user admin password cipher hello privilege level 3
- [Huawei-aaa]local-user admin service-type telnet
- [Huawei-aaa]user-interface vty 0 4
- [Huawei-ui-vty0-4]authentication-mode aaa
配置参考
#acl number 2000
#rule 0 permit source 192.168.10.0 0.0.0.255
#rule 1 deny
2.配置内网ip
#interface e0/0
#ip address 192.168.10.1 255.255.255.0
3.配置外网ip
#interface e0/1
#ip address 192.168.20.2 255.255.255.0
#gateway-list 192.168.20.1
4.设置路由
#ip route 0.0.0.0 0.0.0.0 192.168.20.1 preference 60
5.配置DHCP
#dhcp enable
#dhcp server ip-pool Huawei
#network 192.168.10.0 255.255.255.0
#gateway-list 192.168.10.1
#expired day 24
#dns-list *.*.*.*(你们本地的DNS)
6. 配置NAT
#interface e0/1
#nat outbound 2000
拨号上网配置
http://blog.itpub.net/29475508/viewspace-2051202/
资料下载华为
http://support.huawei.com/learning/trainFaceDetailAction?pbiPath=term1000025144&courseId=Node1000004871