日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

ensp小实验走起来(路由下发、MSTP、VRRP、DHCP、DHCP中继、NAT、链路聚合)之配置

發布時間:2024/2/28 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ensp小实验走起来(路由下发、MSTP、VRRP、DHCP、DHCP中继、NAT、链路聚合)之配置 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

華為小實驗(路由下發、MSTP、VRRP、DHCP、DHCP中繼、NAT、鏈路聚合)

  • 前言
  • 一、題目及需求
  • 二、每個配置
    • 1、R1
    • 2、R2
    • 3、R3
    • 4、R4
    • 5、LSW1
    • 6、LSW2
    • 7、LSW3
  • 總結


前言

華為ensp小實驗走起來。

一、題目及需求

要求按照拓撲圖配置相關命令使得圖中所有終端能夠網絡互通。
(1)MSTP+鏈路聚合:在SW1和SW2之間配置鏈路聚合,要求正常情況下有2條鏈路活躍、一條鏈路備份。常情況下各VLAN流量路徑要求:VLAN10:SW3->SW2->R1;VLAN20:SW3->SW1->R1
(2)VRRP:正常情況下要求VLAN10的Master為SW2;VLAN20的Master為SW1
(3)DHCP:R3為DHCP中繼代理,R2為DHCP服務器,為PC4、PC5提供動態分配IP服務。
(4)按照拓撲圖中的要求在各三層交換機和路由器上配置路由,使得所有PC終端能夠網絡互通(10分)。
(5)NAT:使用EasyIp進行轉換使得Client1能夠使用R1的外網口IP訪問外網;并使用NAT-Server使得Client1訪問Server1的web服務時能夠使用目標網址23.0.0.3/24的8080端口進行訪問

二、每個配置

1、R1

sysname R1 # acl number 3000 rule 5 permit ip source 192.168.10.0 0.0.0.255 # interface GigabitEthernet0/0/0ip address 10.0.0.1 255.255.255.0 # interface GigabitEthernet0/0/1ip address 11.0.0.1 255.255.255.0 # interface GigabitEthernet0/0/2ip address 12.0.0.1 255.255.255.0 nat outbound 3000 # ospf 1 area 0.0.0.0 network 10.0.0.0 0.0.0.255 network 11.0.0.0 0.0.0.255 network 12.0.0.0 0.0.0.255 # user-interface con 0authentication-mode password

2、R2

sysname R2 # dhcp enable # ip pool 1gateway-list 192.168.40.1 network 192.168.40.0 mask 255.255.255.0 dns-list 8.8.8.8 # interface GigabitEthernet0/0/0ip address 12.0.0.2 255.255.255.0 # interface GigabitEthernet0/0/1ip address 23.0.0.2 255.255.255.0 dhcp select global # interface GigabitEthernet0/0/2ip address 24.0.0.2 255.255.255.0 # ospf 1 import-route directimport-route staticimport-route rip 1 cost 1 type 1area 0.0.0.0 network 12.0.0.0 0.0.0.255 # rip 1undo summarydefault-route originateversion 2network 23.0.0.0import-route ospf 1 cost 3 # ip route-static 192.168.30.0 255.255.255.0 24.0.0.4 # user-interface con 0authentication-mode passwordidle-timeout 0 0

3、R3

sysname R3 # dhcp enable # interface GigabitEthernet0/0/0ip address 23.0.0.1 255.255.255.0 nat server protocol tcp global 23.0.0.3 8080 inside 192.168.50.100 www # interface GigabitEthernet0/0/1ip address 192.168.40.1 255.255.255.0 dhcp select relaydhcp relay server-ip 23.0.0.2 # interface GigabitEthernet0/0/2ip address 192.168.50.1 255.255.255.0 # rip 1undo summaryversion 2network 23.0.0.0network 192.168.40.0network 192.168.50.0 # user-interface con 0authentication-mode passwordidle-timeout 0 0

4、R4

sysname R4 # interface GigabitEthernet0/0/0ip address 192.168.30.1 255.255.255.0 # interface GigabitEthernet0/0/1 # interface GigabitEthernet0/0/2ip address 24.0.0.4 255.255.255.0 # ip route-static 0.0.0.0 0.0.0.0 24.0.0.2 # user-interface con 0authentication-mode passwordidle-timeout 0 0

5、LSW1

sysname sw1 # vlan batch 10 20 100 # stp instance 1 root secondary stp instance 2 root primary # lacp priority 1000 # stp region-configurationregion-name huaweirevision-level 1instance 1 vlan 10instance 2 vlan 20active region-configuration # interface Vlanif10ip address 192.168.10.10 255.255.255.0vrrp vrid 1 virtual-ip 192.168.10.1 # interface Vlanif20ip address 192.168.20.10 255.255.255.0vrrp vrid 2 virtual-ip 192.168.20.1vrrp vrid 2 priority 120vrrp vrid 2 track interface GigabitEthernet0/0/5 reduced 30 # interface Vlanif100ip address 10.0.0.10 255.255.255.0 # interface Eth-Trunk1port link-type trunkport trunk allow-pass vlan 2 to 4094mode lacp-staticmax active-linknumber 2 # interface GigabitEthernet0/0/1port link-type accessport default vlan 20 # interface GigabitEthernet0/0/2eth-trunk 1 # interface GigabitEthernet0/0/3eth-trunk 1 # interface GigabitEthernet0/0/4eth-trunk 1 # interface GigabitEthernet0/0/5port link-type accessport default vlan 100 # ospf 1area 0.0.0.0network 10.0.0.0 0.0.0.255network 192.168.20.0 0.0.0.255

6、LSW2

sysname sw2 # vlan batch 10 20 100 # stp instance 1 root primary stp instance 2 root secondary # cluster enable ntdp enable ndp enable # drop illegal-mac alarm # diffserv domain default # stp region-configurationregion-name huaweirevision-level 1instance 1 vlan 10instance 2 vlan 20active region-configuration # interface Vlanif10ip address 192.168.10.20 255.255.255.0vrrp vrid 1 virtual-ip 192.168.10.1vrrp vrid 1 priority 120vrrp vrid 1 track interface GigabitEthernet0/0/5 reduced 30 # interface Vlanif20ip address 192.168.20.20 255.255.255.0vrrp vrid 2 virtual-ip 192.168.20.1 # interface Vlanif100ip address 11.0.0.20 255.255.255.0 # interface Eth-Trunk1port link-type trunkport trunk allow-pass vlan 2 to 4094mode lacp-staticmax active-linknumber 2 # interface GigabitEthernet0/0/1port link-type accessport default vlan 10 # interface GigabitEthernet0/0/2eth-trunk 1 # interface GigabitEthernet0/0/3eth-trunk 1 # interface GigabitEthernet0/0/4eth-trunk 1 # interface GigabitEthernet0/0/5port link-type accessport default vlan 100 # ospf 1area 0.0.0.0network 11.0.0.0 0.0.0.255network 192.168.10.0 0.0.0.255

7、LSW3

sysname sw3 # vlan batch 10 20 100 # stp region-configurationregion-name huaweirevision-level 1instance 1 vlan 10instance 2 vlan 20active region-configuration # interface Ethernet0/0/1port link-type accessport default vlan 10 # interface Ethernet0/0/2port link-type accessport default vlan 20 # interface Ethernet0/0/3port link-type accessport default vlan 10 # interface GigabitEthernet0/0/1port link-type accessport default vlan 20 # interface GigabitEthernet0/0/2port link-type accessport default vlan 10

總結

題目不難,東西也不多,練練手的。

總結

以上是生活随笔為你收集整理的ensp小实验走起来(路由下发、MSTP、VRRP、DHCP、DHCP中继、NAT、链路聚合)之配置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。