中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

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

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

dhcp中繼 以太網鏈路聚合

發布時間:2020-07-09 20:17:28 來源:網絡 閱讀:837 作者:zhaobing12 欄目:網絡安全

dhcp中繼  以太網鏈路聚合

 

SW2========================================================================================

 

[sw2]dis cu

#

sysname sw2  

vlan batch 10 20 ------添加vlan

#

interface Eth-Trunk1              鏈路聚合

 port link-type trunk                          把接口設為trunk模式允許vlan 10 20通過

 port trunk allow-pass vlan 10 20

#

interface Eth-Trunk2

 port link-type trunk

 port trunk allow-pass vlan 10 20

#

interface Ethernet0/0/1

 port link-type access          把接口以access模式加入到vlan 10

 port default vlan 10

#

interface Ethernet0/0/10

 eth-trunk 1                         接口添加到eth-trunk 1

#

interface Ethernet0/0/11

 eth-trunk 1

#

interface Ethernet0/0/12

 port link-type access          把接口以access模式加入到vlan 20

 port default vlan 20

#

interface GigabitEthernet0/0/1

 eth-trunk 2    接口添加到eth-trunk 2

#

interface GigabitEthernet0/0/2

 eth-trunk 2

#

SW3========================================================================================

 

sysname Huawei

#

vlan batch 10 20

#

#

interface Eth-Trunk1  進接口

 port link-type trunk                       把接口設置為trunk

 port trunk allow-pass vlan 10 20   trunk允許通過vlan10 20

#

interface Ethernet0/0/1

#

interface Ethernet0/0/2

 port link-type access      把接口以access模式加入到vlan 10

 port default vlan 10

#

interface Ethernet0/0/12

 eth-trunk 1

#                                            把接口添加到eth-trunk 1

interface Ethernet0/0/13

 eth-trunk 1

#

SW1=============================================================================================

sysname sw1

#

vlan batch 10 20 30 100    添加vlan

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

dhcp enable       開啟dhcp功能

#

diffserv domain default

#

drop-profile default

#

ip pool vlan20

 gateway-list 192.168.20.1

 network 192.168.20.0 mask 255.255.255.0    給vlan20 設置地址池

 dns-list 2.2.2.2

#

interface Vlanif1

#

interface Vlanif10

 ip address 192.168.10.1 255.255.255.0

 dhcp select interface                           給vlan10設置dhcp 基于端口

 dhcp server dns-list 1.1.1.1

#

interface Vlanif20

 ip address 192.168.20.1 255.255.255.0    給vlan20設置網關

 dhcp select global     dhcp地址池選擇全局

#

interface Vlanif30

 ip address 192.168.30.1 255.255.255.0 vlan30 設置網關

 dhcp select global

 dhcp select relay   dhcp中繼代理

 dhcp relay server-ip 23.0.0.3 指向代理方得ip地址

#

interface Vlanif100

 ip address 11.0.0.1 255.255.255.0  vlan100設置網關

#

interface MEth0/0/1

#

interface Eth-Trunk2             進接口interface Eth-Trunk2            并把它設置為trunk,允許vlan 10 20通過

 port link-type trunk

 port trunk allow-pass vlan 10 20

#

interface Eth-Trunk3

 port link-type access  進接口interface Eth-Trunk3            并把它設置為trunk,允許vlan 100通過

 port default vlan 100

#

interface GigabitEthernet0/0/1

 eth-trunk 2                                把接口添加到 eth-trunk 2 

#

interface GigabitEthernet0/0/2

 eth-trunk 2

#

interface GigabitEthernet0/0/3

 port link-type access               進接口 ,把接口設置為access口屬于vlan30

 port default vlan 30

#

interface GigabitEthernet0/0/4

 eth-trunk 3

#                                                      把接口添加到 eth-trunk 23

interface GigabitEthernet0/0/5

 eth-trunk 3

#

 

rip 1                            動態路由協議

 undo summary       關閉路由匯總

 version 2               版本2

 network 192.168.10.0 

 network 192.168.20.0                      告訴鄰居自己知道的ip

 network 192.168.30.0

 network 11.0.0.0

AR1========================================================================================

interface Eth-Trunk3              進入Eth-Trunk3             

 undo portswitch                 從二層模式切換到三層

 ip address 11.0.0.2 255.255.255.0    給Eth-Trunk3設置ip

#

interface GigabitEthernet0/0/0

 eth-trunk 3                       把接口添加到 eth-trunk 3 (鏈路聚合)

#                                                           

 interface GigabitEthernet0/0/1

 eth-trunk 3

#

interface GigabitEthernet0/0/2

 ip address 12.0.0.1 255.255.255.0           設置ip

#

interface NULL0

#

rip 1

 undo summary

 version 2

 network 11.0.0.0

 network 12.0.0.0

AR2================================================================================================

interface Eth-Trunk4

 undo portswitch               從二層模式切換到三層

 ip address 23.0.0.2 255.255.255.0   設置ip

#

interface GigabitEthernet0/0/0

 ip address 12.0.0.2 255.255.255.0   ip

#

interface GigabitEthernet0/0/1

 eth-trunk 4                                把接口添加到 eth-trunk 4(鏈路聚合)

#

interface GigabitEthernet0/0/2

 eth-trunk 4

#

interface NULL0

#

rip 1

 undo summary

 version 2

 network 23.0.0.0

 network 12.0.0.0

#

AR3==========================================================================================

#

dhcp enable          開啟dhcp功能

undo dhcp server bootp

#

ip pool vlan30

 gateway-list 192.168.30.1 

 network 192.168.30.0 mask 255.255.255.0                           設置地址池

 dns-list 3.3.3.3 4.4.4.4 

#

interface Eth-Trunk4

 undo portswitch          從二層模式切換到三層

 ip address 23.0.0.3 255.255.255.0 

 dhcp select global          全局的地址池給DHCP客戶端使用 

#

interface GigabitEthernet0/0/0

 eth-trunk 4                 把接口添加到 eth-trunk 4(鏈路聚合)

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

 eth-trunk 4              把接口添加到 eth-trunk 4(鏈路聚合)

#

interface NULL0

#

rip 1

 undo summary

 version 2

 network 23.0.0.0

#

 

向AI問一下細節

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

AI

剑河县| 龙岩市| 阜宁县| 南涧| 望谟县| 江津市| 济源市| 长治县| 合作市| 湖口县| 朝阳区| 新野县| 甘泉县| 铁岭县| 云浮市| 白河县| 海淀区| 兴和县| 慈溪市| 长宁县| 麻江县| 江达县| 吉隆县| 白水县| 五华县| 北海市| 林州市| 江门市| 东阳市| 广灵县| 武定县| 许昌县| 石城县| 黄陵县| 德化县| 镶黄旗| 琼海市| 饶阳县| 田东县| 承德县| 宜昌市|