免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
華為低端路由器配置腳本

華為低端路由器配置腳本

根據(jù)本次工程特點:路由器本端由客戶自己配置,我們只配通上行鏈路就可以了,如果這樣

的話路由器只需以下三步簡單配置就 OK 了:

1、配置路由器上行接口 IP 地址

2、配置路由器默認路由

3、保存配置

ping -c 1000 -s 5000 192.168.1.1

以下是華為 AR2811 路由器配置為例(VRP3.4 版本,版本不一樣命令有些差別)

首先用串口線通過 WIN XP 自帶的超級終端或用第三方軟件(如:SecureCRT)登錄路由器

(波特率設(shè)置為:9600)

剛登錄上路由器只在第一層使能模式,顯示為“>”

要配置地址需要進入端口模式:[Quidway]interface [端口類型] [端口號]

要配置路由之類要進入配置模式,顯示為“#”:<Quidway>system-view

1、配置路由器上行接口 IP 地址

<Quidway>system-view //進入配置模式命令

[Quidway]

[Quidway]interface Serial 0/0 //進入端口模式(2M 上行口,不同版本的 2M 口配置不一

樣,詳見后面說明)

[Quidway-Serial0/0]ip address 172.31.16.30 255.255.255.252 //配置上行接口 IP 地址,具體

地址要看工單

[Quidway-Serial0/0]disp this //配置后可以用 disp thi 或 dis int serial 0/0 或 disp cu 命令

查看配置是否成功

[Quidway-Serial0/0]quit //退出接口模式

2、配置路由器默認路由

[Quidway]ip route-static 0.0.0.0 0.0.0.0 172.31.16.29 // 配置默認路由,目的地址用

0.0.0.0 0.0.0.0 表示,網(wǎng)關(guān)要看工單

[Quidway]quit

如果上層設(shè)備已配置好數(shù)據(jù),可以在路由器上 ping 通網(wǎng)關(guān)地址了 ping 172.31.16.293、保存配置

<Quidway>save //保存配置,這樣路由器斷電重起也不會導(dǎo)致數(shù)據(jù)丟失

The configuration will be written to the device.

Are you sure?[Y/N] //選 Y 回車就可以了

以下為可選取配置,根據(jù)客戶需要選配

[Quidway]sysname LHAR2811 //給路由器命名,如羅湖 AR2811

[Quidway]super password level 3 cipher sz //設(shè)置路由器二級登錄 SUPER 密碼,需要維

護管理人員給出,如 SUPER 密碼設(shè)置為:sz,

[Quidway]local-user huawei //創(chuàng)建登錄用戶名/密碼,如用戶名為:huawei

password cipher huawei //設(shè)置登錄密碼為:huawei

service-type telnet level 0 //設(shè)置登錄訪問級別,0 級為最低,3 級為最高,一般

登錄就給 0 或 1 級就可以了

[Quidway]interface Ethernet0/0 //進入本地以太網(wǎng)端口模式

description to_LH //給端口添加描述

ip address 10.246.56.229 255.255.255.252 //配置 Ethernet0/0

如路由器接口下掛有交換機,而且交換機是要求配置 VLAN,則要進入該以太網(wǎng)的子接口

下配置,如 Ethernet 0/1.1,配置 VLAN 100

[Quidway]interface Ethernet 0/1.1

[Quidway-Ethernet0/1.1]vlan-type dot1q vid 100 //配置子接口 1.1 VLAN 100

[Quidway-Ethernet0/1.1]ip address 172.16.1.1 255.255.255.0 //配置子接口 IP 地址,用于終

結(jié) VLAN 100

以下是常見的 2M 接口配置,不同版本的路由器配置有些不一樣,配置時只要跟傳輸端一

至就可以了

interface Serial0/0 //最簡單一種,連時隙都不需要配置

description to_SZ //添加描述

clock DTECLK1 //端口默認時鐘已是 DTECLK1

link-protocol ppp //端口默認協(xié)議已是 ppp

ip address 192.168.0.1 255.255.255.252 ////配置地址interface Serial1/0 //不分時隙的 2M 配置,需要配置端口為 unframed 模式

link-protocol ppp //端口默認協(xié)議已是 ppp

fe1 unframed //配置端口為 unframed 模式,即不分 2M 時隙

description to_HZNE08 //添加描述

ip address 172.32.16.1 255.255.255.252 //配置地址

interface Serial1/1 //分 2M 時隙配置

fe1 frame-format crc4 //配置 CRC4 模式

link-protocol ppp //配置鏈路協(xié)議

fe1 timeslot-list 1-31 //配置 2M 時隙

description to GouJi_DCN_HK1 //添加描述

ip address 132.127.148.113 255.255.255.252 //配置 IP 地址

ip route-static 0.0.0.0 0.0.0.0 10.246.56.5 preference 60 ////配置默認路由

user-interface vty 0 4 進入登錄 VTY 模式,如果要遠程管理一定要配置

authentication-mode scheme //配置登錄認證為需要用戶名和密碼認證

<Quidway>save //保存配置,這樣路由器斷電重起也不會導(dǎo)致數(shù)據(jù)丟失

刪除配置命令:

華為設(shè)備的刪除命令為 undo 開頭,如刪除地址為:undo ip add,刪除路由為:undo ip

route-static 0.0.0.0 0.0.0.0 10.246.56.5

刪除子接口為:[Quidway]undo interface Ethernet 0/1.1

常用查看命令:

disp cu 查看所有配置數(shù)據(jù)

disp dev 查看硬件情況

disp int Ethernet 0/0 查看端口狀態(tài)

disp thi 查看當(dāng)前配置

disp ip route 查看 IP 路由

華為交換機配置要點

1、創(chuàng)建登錄用戶名和密碼

2、創(chuàng)建 VLAN ID3、配置 IP 地址 (注意:一般交換機都是在 VLAN 下配置 IP 地址,路由器則是在端口下配

置 IP 地址)

4、設(shè)置端口模式(trunk、access、hybrid)

5、把 VLAN 把入具體端口

6、配置缺省路由

剛登錄上交換機只在第一層使能模式,顯示為“>”

要配置地址需要進入 VLAN 模式:[Quidway]interface vlan [vlan 號]

要配置交換機要進入配置模式,顯示為“#”:<Quidway>system-view

local-user huawei //設(shè)置登錄用戶名

password cipher huawei //設(shè)置登錄密碼

service-type telnet //設(shè)置登錄服務(wù)方式

level 3 //設(shè)置訪問級別

vlan 100 //創(chuàng)建 VLAN 100

vlan 401 ////創(chuàng)建 VLAN 401

interface Vlan-interface401 //進入 VLAN 401,用于配置 IP 地址

ip address 172.16.71.35 255.255.255.0 //配置 IP 地址

interface Ethernet1/0/0 //進入以太網(wǎng)端口

port link-type access //設(shè)置該端口為 access 模式,用于接 PC 之類

port access vlan 100 //把端口加入到 VLAN 100 中

interface GigabitEthernet1/0/1 //進入以太網(wǎng)端口

port link-type trunk //設(shè)置該端口為 trunk 模式,用于透傳 VLAN,一般用于上行

口或級聯(lián)端口

undo port trunk permit vlan 1 //禁止 VLAN 1 通過該端口,為了防止環(huán)路產(chǎn)生,一般都

要禁止 VLAN 1 通過,因默認 VLAN 1 都是允許通過的

port trunk permit vlan 401 //設(shè)置允許通過的 VLAN

user-interface vty 0 4 //進入遠程登錄 VTY 模式

authentication-mode scheme //設(shè)置登錄所采用的認證方式

ip route-static 0.0.0.0 0.0.0.0 172.16.71.1 //配置缺省路由

save //保存配置以下是幾種常見組圖配置腳本

語音業(yè)務(wù):

一、路由器采用一個 2M 上行(也就是說移動提供一個 2M),路由器一個 FE 以太網(wǎng)端口連

接客戶。

配置如下:

<Quidway>system-view //進入配置模式命令

[Quidway]

1、配置端口 IP 地址

[Quidway]interface Serial 0/0 //進入端口模式(2M 上行口,連接移動端)

[Quidway-Serial0/0]fe1 timeslot-list 1-31 //配置 2M 時隙,一般端口默認是分時隙的,如果

端口已有該條命令就不用再配置了

[Quidway-Serial0/0]ip address 172.31.16.30 255.255.255.252 //配置上行接口 IP 地址,具體

地址要看工單

[Quidway-Serial0/0]disp this //配置后可以用 disp thi 或 dis int serial 0/0 或 disp cu 命令

查看配置是否成功

[Quidway-Serial0/0]quit //退出接口模式

[Quidway]interface Ethernet0/0 //進入以太網(wǎng)端口模式(該端口連接客戶端)

[Quidway]ip address 10.246.56.229 255.255.255.252 //配置客戶端口 IP 地址

[Quidway]quit

2、配置路由器默認路由

[Quidway]ip route-static 0.0.0.0 0.0.0.0 172.31.16.29 // 配置默認路由,目的地址用

0.0.0.0 0.0.0.0 表示,網(wǎng)關(guān)要看工單

[Quidway]quit

如果上層設(shè)備已配置好數(shù)據(jù),可以在路由器上 ping 通網(wǎng)關(guān)地址了 ping 172.31.16.29

3、保存配置

<Quidway>save //保存配置,這樣路由器斷電重起也不會導(dǎo)致數(shù)據(jù)丟失The configuration will be written to the device.

Are you sure?[Y/N] //選 Y 回車就可以了

二、路由器采用 2 個 2M 捆綁上行(也就是說移動提供 2 個 2M),路由器一個 FE 以太網(wǎng)端

口連接客戶。

配置如下:

<Quidway>system-view //進入配置模式命令

[Quidway]

1、配置 IP 地址

[Quidway]interface Mp-group 1 //創(chuàng)建一個 2M 組 group 組 1,還有一種方法是

通過虛模板來創(chuàng)建 2M 組的,見后面部分

ip address 172.31.16.30 255.255.255.252 //配置上行接口 IP 地址,2M 捆綁地址

是在 group 里配置

quit

[Quidway]interface Serial 0/0 //進入端口模式(2M 上行口,連接移動端)

[Quidway-Serial0/0]fe1 timeslot-list 1-31 //配置 2M 時隙,一般端口默認是分時隙的,如果

端口已有該條命令就不用再配置了

[Quidway-Serial0/0]ppp mp Mp-group 1 //把該端口加入到 group 組 1

[Quidway-Serial0/0]disp this //配置后可以用 disp thi 或 dis int serial 0/0 或 disp cu 命令

查看配置是否成功

[Quidway-Serial0/0]quit //退出接口模式

[Quidway]interface Serial 0/1 //進入端口模式(2M 上行口,連接移動端)

[Quidway-Serial0/1]fe1 timeslot-list 1-31 //配置 2M 時隙,一般端口默認是分時隙的,如果

端口已有該條命令就不用再配置了

[Quidway-Serial0/1]ppp mp Mp-group 1 //把該端口加入到 group 組 1,這樣 2 個 2M 都加

進了 group 組 1 了,加起來就是 4M 帶寬了

[Quidway-Serial0/1]disp this //配置后可以用 disp thi 或 dis int serial 0/1 或 disp cu 命令

查看配置是否成功

[Quidway-Serial0/1]quit

[Quidway]interface Ethernet0/0 //進入以太網(wǎng)端口模式(該端口連接客戶端)

[Quidway]ip address 10.246.56.229 255.255.255.252 //配置客戶端口 IP 地址

[Quidway]quit2、配置路由器默認路由

[Quidway]ip route-static 0.0.0.0 0.0.0.0 172.31.16.29 // 配置默認路由,目的地址用

0.0.0.0 0.0.0.0 表示,網(wǎng)關(guān)要看工單

[Quidway]quit

如果上層設(shè)備已配置好數(shù)據(jù),可以在路由器上 ping 通網(wǎng)關(guān)地址了 ping 172.31.16.29

3、保存配置

<Quidway>save //保存配置,這樣路由器斷電重起也不會導(dǎo)致數(shù)據(jù)丟失

The configuration will be written to the device.

Are you sure?[Y/N] //選 Y 回車就可以了

*******

下面是通過虛模板 Virtual-Template 來創(chuàng)建 2M 組,和通過組來創(chuàng)建配置一樣,只是把

Mp-group 改成 Virtual-Template 就可以了,其他配置不變

//

interface Virtual-Template 1 //創(chuàng)建 2M 虛模板 1

ip address 172.31.16.30 255.255.255.252

interface Serial0/0

link-protocol ppp

ppp mp Virtual-Template 1 //把端口加到虛模板 1 中

fe1 timeslot-list 1-31

interface Serial1/0

link-protocol ppp

ppp mp Virtual-Template 1 //把端口加到虛模板 1 中

fe1 timeslot-list 1-31

//

*******

數(shù)據(jù)業(yè)務(wù)部分

一:假設(shè)路由器采用一個 FE 端口做上行口,另一個 FE 連接客戶設(shè)備,客戶申請一個公網(wǎng)

IP 地址,要求內(nèi)部 PC 通過路由器實現(xiàn) NAT 地址轉(zhuǎn)換上網(wǎng)。 公 網(wǎng) IP 為 : 61.14.1.2/30 , 網(wǎng) 關(guān) 為 : 61.14.1.1 ; 內(nèi) 部 PC 所 在 的 網(wǎng) 段 為 :

192.168.1.0/24,內(nèi)部網(wǎng)關(guān)為:192.168.1.1。

配置如下:

<Quidway>system-view //進入配置模式命令

[Quidway]

1、配置端口 IP 地址

[Quidway]interface Ethernet0/0 //進入端口模式(FE 上行口,連接移動端)

[Quidway-Ethernet0/0]ip address 61.14.1.2 255.255.255.252 //配置上行接口 IP 地址,具體

地址要看工單

[Quidway-Ethernet0/0]disp this //配置后可以用 disp thi 或 dis int Ethernet 0/0 或 disp cu

命令查看配置是否成功

[Quidway-Ethernet0/0]quit //退出接口模式

[Quidway]interface Ethernet0/1 //進入以太網(wǎng)端口模式(該端口連接客戶端)

[Quidway]ip address 192.168.1.1 255.255.255.0 //配置客戶端口 IP 地址

[Quidway]quit

2、配置路由器默認路由

[Quidway]ip route-static 0.0.0.0 0.0.0.0 61.14.1.1 //配置默認路由,目的地址用 0.0.0.0

0.0.0.0 表示,網(wǎng)關(guān)要看工單

[Quidway]quit

如果上層設(shè)備已配置好數(shù)據(jù),可以在路由器上 ping 通網(wǎng)關(guān)地址了 ping 61.14.1.1

3、NAT 地址轉(zhuǎn)換配置

[Quidway] nat address-group 10 61.14.1.2 61.14.1.2 //配置公網(wǎng)地址池

[Quidway] acl number 2000 //配置 ACL 訪問列表,也就是允許那些地址

可以轉(zhuǎn)換出去

rule 0 permit source 192.168.1.0 0.0.0.255 //配置私網(wǎng)地址段,注意是反掩碼

[Quidway]interface Ethernet0/0 //進入上行口

nat outbound 2000 address-group 10 //配置私網(wǎng)地址段與公網(wǎng)地址相關(guān)聯(lián)

4、保存配置

<Quidway>save //保存配置,這樣路由器斷電重起也不會導(dǎo)致數(shù)據(jù)丟失

The configuration will be written to the device.

Are you sure?[Y/N] //選 Y 回車就可以了二:假設(shè)路由器采用一個 FE 端口做上行口,另一個 FE 連接客戶設(shè)備,客戶申請二個公網(wǎng)

IP 地址,一個公網(wǎng) IP 用于內(nèi)部 WWW 服務(wù)器,一個用于內(nèi)部 PC 上網(wǎng)。

要求在公網(wǎng)可以訪問到公司 WWW 服務(wù)器和內(nèi)部 PC 通過路由器實現(xiàn) NAT 地址轉(zhuǎn)換上

網(wǎng)。

公 網(wǎng) IP 為 : 61.14.1.2-3/29 , 網(wǎng) 關(guān) 為 : 61.14.1.1 ; 內(nèi) 部 PC 所 在 的 網(wǎng) 段 為 :

192.168.1.0/24,WWW 內(nèi)部服務(wù)器地址為:192.168.1.100,內(nèi)部網(wǎng)關(guān)為:192.168.1.1。

配置如下:

<Quidway>system-view //進入配置模式命令

[Quidway]

1、配置端口 IP 地址

[Quidway]interface Ethernet0/0 //進入端口模式(FE 上行口,連接移動端)

[Quidway-Ethernet0/0]ip address 61.14.1.2 255.255.255.248 //配置上行接口 IP 地址,具體

地址要看工單

[Quidway-Ethernet0/0]disp this //配置后可以用 disp thi 或 dis int Ethernet 0/0 或 disp cu

命令查看配置是否成功

[Quidway-Ethernet0/0]quit //退出接口模式

[Quidway]interface Ethernet0/1 //進入以太網(wǎng)端口模式(該端口連接客戶端)

[Quidway]ip address 192.168.1.1 255.255.255.0 //配置客戶端口 IP 地址

[Quidway]quit

2、配置路由器默認路由

[Quidway]ip route-static 0.0.0.0 0.0.0.0 61.14.1.1 //配置默認路由,目的地址用 0.0.0.0

0.0.0.0 表示,網(wǎng)關(guān)要看工單

[Quidway]quit

如果上層設(shè)備已配置好數(shù)據(jù),可以在路由器上 ping 通網(wǎng)關(guān)地址了 ping 61.14.1.1

3、NAT 地址轉(zhuǎn)換配置

[Quidway] nat address-group 10 61.14.1.2 61.14.1.3 //配置公網(wǎng)地址池,公網(wǎng)地址池要把內(nèi)

部服務(wù)器所對應(yīng)的公網(wǎng) IP 也包括在內(nèi)

[Quidway] acl number 2000 //配置 ACL 訪問列表,也就是允許那些地址

可以轉(zhuǎn)換出去rule 0 permit source 192.168.1.0 0.0.0.255 //配置私網(wǎng)地址段,注意是反掩碼

[Quidway]interface Ethernet0/0 //進入上行口

nat outbound 2000 address-group 10 //配置私網(wǎng)地址段與公網(wǎng)地址相關(guān)聯(lián)

nat server protocol tcp global 218.14.1.3 inside 192.168.1.100 www //配置公司

WWW 服務(wù)器與公網(wǎng)地址 218.14.1.3 關(guān)聯(lián)

4、保存配置

<Quidway>save //保存配置,這樣路由器斷電重起也不會導(dǎo)致數(shù)據(jù)丟失

The configuration will be written to the device.

Are you sure?[Y/N] //選 Y 回車就可以了

三:假設(shè)路由器采用一個 FE 端口做上行口,另一個 FE 連接客戶設(shè)備,客戶申請一個公網(wǎng)

IP 地址,要求內(nèi)部 PC 通過 DCHP 自動獲得 IP 地址上網(wǎng)。

公網(wǎng) IP 為:61.14.1.2/30 ,網(wǎng)關(guān)為:61.14.1.1;內(nèi)部 PC 所在的網(wǎng)段為:192.168.1.0/24。

配置如下:

<Quidway>system-view //進入配置模式命令

[Quidway]

1、配置端口 IP 地址

[Quidway]interface Ethernet0/0 //進入端口模式(FE 上行口,連接移動端)

[Quidway-Ethernet0/0]ip address 61.14.1.2 255.255.255.252 //配置上行接口 IP 地址,具體

地址要看工單

[Quidway-Ethernet0/0]disp this //配置后可以用 disp thi 或 dis int Ethernet 0/0 或 disp cu

命令查看配置是否成功

[Quidway-Ethernet0/0]quit //退出接口模式

[Quidway]interface Ethernet0/1 //進入以太網(wǎng)端口模式(該端口連接客戶端)

[Quidway]ip address 192.168.1.1 255.255.255.0 //配置客戶端口 IP 地址

[Quidway]quit

2、配置路由器默認路由

[Quidway]ip route-static 0.0.0.0 0.0.0.0 61.14.1.1 //配置默認路由,目的地址用 0.0.0.0

0.0.0.0 表示,網(wǎng)關(guān)要看工單

[Quidway]quit 如果上層設(shè)備已配置好數(shù)據(jù),可以在路由器上 ping 通網(wǎng)關(guān)地址了 ping 61.14.1.1

3、NAT 地址轉(zhuǎn)換配置

[Quidway] nat address-group 10 61.14.1.2 61.14.1.2 //配置公網(wǎng)地址池

[Quidway] acl number 2000 //配置 ACL 訪問列表,也就是允許那些地址

可以轉(zhuǎn)換出去

rule 0 permit source 192.168.1.0 0.0.0.255 //配置私網(wǎng)地址段,注意是反掩碼

[Quidway]interface Ethernet0/0 //進入上行口

nat outbound 2000 address-group 10 //配置私網(wǎng)地址段與公網(wǎng)地址相關(guān)聯(lián)

quit

4、配置 DHCP

[Quidway] dhcp server ip-pool 1 //配置 DHCP 自動分配地址池

network 192.168.1.0 mask 255.255.255.0 //配置自動分配的地址范圍

gateway-list 192.168.1.1 //配置 192.168.1.1 為網(wǎng)關(guān)地址

dns-list 211.136.192.6 211.139.163.6 //配置 DNS 地址,一般配置 2 個,以

防一個出現(xiàn)故障另一個可以備用

quit

[Quidway]dhcp select global interface Ethernet 0/0 //配置需要運行 DHCP 自動分配 IP 在端

口,一般是連接客戶的端口

[Quidway]dhcp server forbidden-ip 192.168.1.1 //配置網(wǎng)關(guān)地址不參與地址分配

5、保存配置

<Quidway>save //保存配置,這樣路由器斷電重起也不會導(dǎo)致數(shù)據(jù)丟失

The configuration will be written to the device.

Are you sure?[Y/N] //選 Y 回車就可以了

******************

移動 DNS 地址為:211.136.192.6 211.139.163.6

電信 DNS 地址為:202.96.128.86 202.96.134.133

******************四:假設(shè)路由器采用 2 個 2M 捆綁做上行口,一個 FE 連接客戶設(shè)備,客戶申請一個公網(wǎng) IP

地址,要求內(nèi)部 PC 通過路由器實現(xiàn) NAT 地址轉(zhuǎn)換上網(wǎng)。

公 網(wǎng) IP 為 : 61.14.1.2/30 , 網(wǎng) 關(guān) 為 : 61.14.1.1 ; 內(nèi) 部 PC 所 在 的 網(wǎng) 段 為 :

192.168.1.0/24,內(nèi)部網(wǎng)關(guān)為:192.168.1.1。

配置如下:

<Quidway>system-view //進入配置模式命令

[Quidway]

1、創(chuàng)建 2M 組用來配置 IP 地址

[Quidway]interface Mp-group 1 //創(chuàng)建一個 2M 組 group 組 1,還有一種方法是

通過虛模板來創(chuàng)建 2M 組的,見后面部分

ip address 61.14.1.2 255.255.255.252 //配置上行接口 IP 地址,2M 捆綁地址是

在 group 里配置

quit

2、把端口加入到 2M 組中

[Quidway]interface Serial 0/0 //進入端口模式(2M 上行口,連接移動端)

[Quidway-Serial0/0]fe1 timeslot-list 1-31 //配置 2M 時隙,一般端口默認是分時隙的,如果

端口已有該條命令就不用再配置了

[Quidway-Serial0/0]ppp mp Mp-group 1 //把該端口加入到 group 組 1

[Quidway-Serial0/0]disp this //配置后可以用 disp thi 或 dis int serial 0/0 或 disp cu 命令

查看配置是否成功

[Quidway-Serial0/0]quit //退出接口模式

[Quidway]interface Serial 0/1 //進入端口模式(2M 上行口,連接移動端)

[Quidway-Serial0/1]fe1 timeslot-list 1-31 //配置 2M 時隙,一般端口默認是分時隙的,如果

端口已有該條命令就不用再配置了

[Quidway-Serial0/1]ppp mp Mp-group 1 //把該端口加入到 group 組 1,這樣 2 個 2M 都加

進了 group 組 1 了,加起來就是 4M 帶寬了

[Quidway-Serial0/1]disp this //配置后可以用 disp thi 或 dis int serial 0/1 或 disp cu 命令

查看配置是否成功

[Quidway-Serial0/1]quit

[Quidway]interface Ethernet0/1 //進入以太網(wǎng)端口模式(該端口連接客戶端)

[Quidway]ip address 192.168.1.1 255.255.255.0 //配置客戶端口 IP 地址

[Quidway]quit3、配置路由器默認路由

[Quidway]ip route-static 0.0.0.0 0.0.0.0 61.14.1.1 //配置默認路由,目的地址用 0.0.0.0

0.0.0.0 表示,網(wǎng)關(guān)要看工單

[Quidway]quit

如果上層設(shè)備已配置好數(shù)據(jù),可以在路由器上 ping 通網(wǎng)關(guān)地址了 ping 61.14.1.1

4、NAT 地址轉(zhuǎn)換配置

[Quidway] nat address-group 10 61.14.1.2 61.14.1.2 //配置公網(wǎng)地址池

[Quidway] acl number 2000 //配置 ACL 訪問列表,也就是允許那些地址

可以轉(zhuǎn)換出去

rule 0 permit source 192.168.1.0 0.0.0.255 //配置私網(wǎng)地址段,注意是反掩碼

[Quidway]interface Mp-group 1 //進入 2M 組 1,注意 2M 捆綁 NAT 相聯(lián)是在

組下面,不是在端口下

nat outbound 2000 address-group 10 //配置私網(wǎng)地址段與公網(wǎng)地址相關(guān)聯(lián)

5、保存配置

<Quidway>save //保存配置,這樣路由器斷電重起也不會導(dǎo)致數(shù)據(jù)丟失

The configuration will be written to the device.

Are you sure?[Y/N] //選 Y 回車就可以了

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
華為配置命令 - 若昔 MySpace聚友博客
web配置手冊
H3C路由器常用基本配置命令
華為交換機路由器常用命令
路由配置基本方法
路由器在網(wǎng)絡(luò)地址轉(zhuǎn)換中的應(yīng)用簡介
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服