亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

華為eNSP——DHCP中繼配置

發布時間:2020-05-28 18:27:22 來源:網絡 閱讀:4660 作者:wx5d3a7feeb53cc 欄目:云計算

實驗拓撲圖

華為eNSP——DHCP中繼配置

實驗環境

R4作為DHCP服務器,R1,R2上做中繼服務,實現不同網段的pc獲取地址

1,配置sw交換機

<Huawei>sys      ##進入系統視圖模式
[Huawei]sysname SW1   ##修改名字
[SW1]vlan bat 10 20      ##創建vlan10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]int e0/0/1     ##進接口
[SW1-Ethernet0/0/1]port link-type access    ##配置為access口
[SW1-Ethernet0/0/1]port default vlan 10      ##將接口放到vlan10中
[SW1-Ethernet0/0/1]un sh                           ##開啟
[SW1-Ethernet0/0/1]int e0/0/2                     ##e0/0/2接口
[SW1-Ethernet0/0/2]port link-type access    
[SW1-Ethernet0/0/2]port default vlan 20     ##放到vlan20中
[SW1-Ethernet0/0/2]un sh
[SW1-Ethernet0/0/2]int e0/0/3    
[SW1-Ethernet0/0/3]port link-type access 
[SW1-Ethernet0/0/3]port default vlan 10    
[SW1-Ethernet0/0/3]un sh
[SW1-Ethernet0/0/3]int e0/0/4
[SW1-Ethernet0/0/4]port link-type access
[SW1-Ethernet0/0/4]port default vlan 20
[SW1-Ethernet0/0/4]un sh
[SW1-Ethernet0/0/4]dis vlan    ##查看vlan信息
The total number of vlans is : 3
--------------------------------------------------------------------------------
U: Up;         D: Down;         TG: Tagged;         UT: Untagged;
MP: Vlan-mapping;               ST: Vlan-stacking;
#: ProtocolTransparent-vlan;    *: Management-vlan;
--------------------------------------------------------------------------------
VID  Type    Ports                                                          
--------------------------------------------------------------------------------
1    common  UT:Eth0/0/5(D)     Eth0/0/6(D)     Eth0/0/7(D)     Eth0/0/8(D)     
                Eth0/0/9(D)     Eth0/0/10(D)    Eth0/0/11(D)    Eth0/0/12(D)    
                Eth0/0/13(D)    Eth0/0/14(D)    Eth0/0/15(D)    Eth0/0/16(D)    
                Eth0/0/17(D)    Eth0/0/18(D)    Eth0/0/19(D)    Eth0/0/20(D)    
                Eth0/0/21(D)    Eth0/0/22(D)    GE0/0/1(U)      GE0/0/2(D)      

10   common  UT:Eth0/0/1(U)     Eth0/0/3(U)                                     
20   common  UT:Eth0/0/2(U)     Eth0/0/4(U)                                     

VID  Status  Property      MAC-LRN Statistics Description      
--------------------------------------------------------------------------------
1    enable  default       enable  disable    VLAN 0001                         
10   enable  default       enable  disable    VLAN 0010                         
20   enable  default       enable  disable    VLAN 0020 
[SW1-Ethernet0/0/4]int g0/0/1       ##進入接口
[SW1-GigabitEthernet0/0/1] port link-type trunk   ##設置為trunk口
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all   ##允許所有vlan通過
[SW1-GigabitEthernet0/0/1]un sh  ##開啟

2,配置R1路由

[R1]dhcp enable   ##開啟dhcp
[R1]int g0/0/1.10    ##進入邏輯子接口
[R1-GigabitEthernet0/0/1.10]dot1q termination vid 10  ##封裝協議,該接口對應vlan10
[R1-GigabitEthernet0/0/1.10]ip add 192.168.10.1 24   ##配置網關地址
[R1-GigabitEthernet0/0/1.10]arp broadcast enable      ##開啟廣播
[R1-GigabitEthernet0/0/1.10]dhcp select relay             ##開啟DHCP中繼服務
[R1-GigabitEthernet0/0/1.10]dhcp relay server-ip  14.0.0.2  ##指向R1服務器地址
[R1-GigabitEthernet0/0/1.10]int g0/0/1.20      ##進入邏輯子接口
[R1-GigabitEthernet0/0/1.20]dot1q termination vid 20   ##vlan20
[R1-GigabitEthernet0/0/1.20]ip add 192.168.20.1 24
[R1-GigabitEthernet0/0/1.20]arp broadcast enable 
[R1-GigabitEthernet0/0/1.20]dhcp select relay 
[R1-GigabitEthernet0/0/1.20]dhcp relay server-ip 14.0.0.2
[R1-GigabitEthernet0/0/1.20]q
[R1]int g0/0/2   ##配置接口的ip地址
[R1-GigabitEthernet0/0/2]ip add 14.0.0.1 24
[R1-GigabitEthernet0/0/2]un sh
[R1-GigabitEthernet0/0/2]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.0.0.1 24
[R1-GigabitEthernet0/0/0]un sh
[R1-GigabitEthernet0/0/0]dis ip int b  ##查看接口ip信息
*down: administratively down
!down: FIB overload down
^down: standby
(l): loopback
(s): spoofing
(d): Dampening Suppressed
The number of interface that is UP in Physical is 6
The number of interface that is DOWN in Physical is 7
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 8
Interface                         IP Address/Mask      Physical   Protocol  
Ethernet0/0/0                     unassigned           down       down      
Ethernet0/0/1                     unassigned           down       down      
GigabitEthernet0/0/0              12.0.0.1/24          up         up        
GigabitEthernet0/0/1              unassigned           up         down      
GigabitEthernet0/0/1.10           192.168.10.1/24      up         up        
GigabitEthernet0/0/1.20           192.168.20.1/24      up         up        
GigabitEthernet0/0/2              14.0.0.1/24          up         up        
GigabitEthernet0/0/3              unassigned           down       down      
NULL0                             unassigned           up         up(s)   
[R1]ip route-static 15.0.0.0 24 12.0.0.2  ##設置靜態路由

3,配置R2路由

<Huawei>sys
[Huawei]sysname R2
[R2]int g0/0/0    ##配置接口IP地址
[R2-GigabitEthernet0/0/0]ip add 12.0.0.2 24
[R2-GigabitEthernet0/0/0]un sh
[R2-GigabitEthernet0/0/0]q
[R2]dhcp enable    ##開啟dhcp
[R2]int g0/0/1    ##進接口
[R2-GigabitEthernet0/0/1]ip add 15.0.0.1 24   ##配置接口ip
[R2-GigabitEthernet0/0/1]dhcp select relay     ##開啟中繼
[R2-GigabitEthernet0/0/1]dhcp relay server-ip 14.0.0.2  ##指向服務器地址
[R2-GigabitEthernet0/0/1]un sh
[R2-GigabitEthernet0/0/1]q  
[R2]ip route-static 0.0.0.0 0.0.0.0 12.0.0.1   ##設置默認路由
[R2]dis ip int b    ##查看接口ip信息
*down: administratively down
!down: FIB overload down
^down: standby
(l): loopback
(s): spoofing
(d): Dampening Suppressed
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 8
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 8
Interface                         IP Address/Mask      Physical   Protocol  
Ethernet0/0/0                     unassigned           down       down      
Ethernet0/0/1                     unassigned           down       down      
GigabitEthernet0/0/0              12.0.0.2/24          up         up        
GigabitEthernet0/0/1              15.0.0.1/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
GigabitEthernet0/0/3              unassigned           down       down      
NULL0                             unassigned           up         up(s)

4,配置R4路由

[R4]dhcp enable   ##開啟dhcp
[R4]int g0/0/0   ##進入接口
[R4-GigabitEthernet0/0/0]ip add 14.0.0.2 24  ##配置ip地址
[R4-GigabitEthernet0/0/0]dhcp select global   ##設置全局
[R4-GigabitEthernet0/0/0]un sh
[R4-GigabitEthernet0/0/0]q
[R4]ip route-static 0.0.0.0 0.0.0.0 14.0.0.1  ##設置默認路由
[R4]ip pool dhcp15   ##創建15網段的地址池
[R4-ip-pool-dhcp15]network 15.0.0.0 mask 24  ##設置ip地址段和子網掩碼
[R4-ip-pool-dhcp15]gateway-list 15.0.0.1          ##設置網關
[R4-ip-pool-dhcp15]dns-list 8.8.8.8 2.2.2.2       ##設置dns地址
[R4-ip-pool-dhcp15]q
[R4]ip pool dhcpvlan10     ##創建vlan10的地址池
[R4-ip-pool-dhcpvlan10]network 192.168.10.0 mask 24
[R4-ip-pool-dhcpvlan10]gateway-list 192.168.10.1
[R4-ip-pool-dhcpvlan10]dns-list 8.8.8.8 2.2.2.2
[R4-ip-pool-dhcpvlan10]excluded-ip-address 192.168.10.100 192.168.10.254  ##排除的地址
[R4-ip-pool-dhcpvlan10]static-bind ip-address 192.168.10.88 mac-address 5489-9820-62fb ##設置固定ip
[R4-ip-pool-dhcpvlan10]q    
[R4]ip pool dhcpvlan20    ##創建vlan20地址池
[R4-ip-pool-dhcpvlan20]network 192.168.20.0 mask 24 
[R4-ip-pool-dhcpvlan20]gateway-list 192.168.20.1
[R4-ip-pool-dhcpvlan20]dns-list 8.8.8.8 2.2.2.2
[R4-ip-pool-dhcpvlan20]q

5,查看pc機能否獲取ip地址

華為eNSP——DHCP中繼配置

謝謝閱讀!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

公主岭市| 阳泉市| 中山市| 内乡县| 镇平县| 郯城县| 如皋市| 临猗县| 钟山县| 海阳市| 承德县| 黔西县| 秦皇岛市| 泰顺县| 西充县| 满洲里市| 徐闻县| 兴隆县| 巴彦淖尔市| 日照市| 都兰县| 米泉市| 金昌市| 佛冈县| 南乐县| 贵阳市| 丹棱县| 富宁县| 福贡县| 洛阳市| 铜山县| 襄垣县| 安陆市| 肥乡县| 余庆县| 常熟市| 日土县| 开封县| 乌拉特中旗| 乃东县| 长海县|