1.f主机配置

Host F : 133.0.0.8 255.255.0.0

login:root
password:linux

  1. ifconfig eth0 133.0.0.8 netmask 255.255.0.0
  2. route add default gw 133.0.0.1
  3. ifconfig

2.a主机配置

Host A : 10.1.1.1 255.255.0.0

  1. ifconfig eth0 10.1.1.1 netmask 255.255.0.0
  2. route add default gw 10.1.1.9
  3. route

3.路由配置

RouterA E0: 10.1.1.9 255.255.0.0

3.1配置e0接口ip

<Quidwqy>system
password:

  1. [Quidway]interface ethernet0
  2. [Quidway-Ethernet0]ip addr 10.1.1.9 255.255.0.0
  3. [Quidway-Ethernet0]undo shutdown

配置池和nat转换

  1. [Quidway]nat address-group 133.0.0.1 133.0.0.3 pool1
  2. [Quidway]acl 1
  3. [Quidway-acl-1]rule permit source 10.1.0.0 0.0.255.255
  4. [Quidway-acl-1]rule deny source any
  5. [Quidway-acl-1]int s0
  6. [Quidway-Serial0]undo shut
  7. [Quidway-Serial0]nat outbound 1 address-group pool1
  8. [Quidway-Serial0]nat server global 133.0.0.1 inside 10.1.1.1 ftp tcp
  9. [Quidway-Serial0]nat server global 133.0.0.2 inside 10.1.1.2 www tcp
  10. [Quidway-Serial0]nat server global 133.0.0.3 inside 10.1.1.3 smtp udp

ping ip测试配置

ping 133.0.0.1

 

telnet 开启

  1. [S3026]super password 111 ;设置特权密码
  2. [S3026]user-interface vty 0 4
  3. [S3026-ui-vty0-4]authentication-mode password
  4. [S3026-ui-vty0-4]set authentication-mode password simple 222
  5. [S3026-ui-vty0-4]user privilege level 3
  6. [S3026-ui-vty0-4]quit

 或者

https://jingyan.baidu.com/article/d5a880ebdb802113f147cca3.html

 

接口聚合

  1. 实验二 配置端口聚合
  2. 要求聚合的端口工作在全双工,速度一致,在同一槽口且连续。
  3. 参数:ingress:源MAC, both:源和目的MAC
  4. 对于SwitchA:
  5. [SwitchA]interface ethernet0/1
  6. [SwitchA-Ethernet0/1]duplex full
  7. [SwitchA-Ethernet0/1]speed 100
  8. [SwitchA-Ethernet0/1]int e0/2
  9. [SwitchA-Ethernet0/2]duplex full
  10. [SwitchA-Ethernet0/2]speed 100
  11. 对于SwitchB:
  12. [SwitchB]interface ethernet0/1
  13. [SwitchB-Ethernet0/1]duplex full
  14. [SwitchB-Ethernet0/1]speed 100
  15. [SwitchB-Ethernet0/1]int e0/2
  16. [SwitchB-Ethernet0/2]duplex full
  17. [SwitchB-Ethernet0/2]speed 100
  18. 聚合操作:[SwitchB-Ethernet0/2] 都在这个接口下操作
  1. [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

 简单路由设置

  1. <Huawei>sys
  2. [Huawei]interface g0/0/0
  3. [Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 24
  4. [Huawei-GigabitEthernet0/0/0]undo shutdown
  5. [Huawei-GigabitEthernet0/0/0]interface g0/0/1
  6. [Huawei-GigabitEthernet0/0/1]ip address 192.168.2.1 24
  7. [Huawei-GigabitEthernet0/0/1]undo shutdown
    [Huawei]dis ip int b #查看接口信息

 用户设置

  1. 密码验证方式
  2. [Huawei]user-interface vty 0 4
  3. [Huawei-ui-vty0-4]authentication-mode password
  4. Please configure the login password (maximum length 16):huawei
  5. user privilege level 1

  6. aaa验证方式
  7. 管理账户 用户admin 密码hello 管理级别3
  8. [Huawei]aaa
  9. [Huawei-aaa]local-user admin password cipher hello privilege level 3
  10. [Huawei-aaa]local-user admin service-type telnet
  11. [Huawei-aaa]user-interface vty 0 4
  12. [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

版权声明:本文为zsl-find原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/zsl-find/articles/10262355.html