華為交換機(jī)配置命令大全 華為交換機(jī)命令(3)

作者: usfmg  2019-11-06 10:58 [查查吧]:uabf.cn

  華為路由器交換機(jī)配置命令:地址轉(zhuǎn)換配置舉例

  [Quidway]firewallenable

  [Quidway]firewalldefaultpermit

  [Quidway]acl101;內(nèi)部指定主機(jī)可以進(jìn)入e0

  [Quidway-acl-101]ruledenyipsourceanydestinationany

  [Quidway-acl-101]rulepermitipsource129.38.1.10destinationany

  [Quidway-acl-101]rulepermitipsource129.38.1.20destinationany

  [Quidway-acl-101]rulepermitipsource129.38.1.30destinationany

  [Quidway-acl-101]rulepermitipsource129.38.1.40destinationany

  [Quidway-acl-101]quit

  [Quidway]inte0

  [Quidway-Ethernet0]firewallpacket-filter101inbound

  [Quidway]acl102;外部特定主機(jī)和大于1024端口的數(shù)據(jù)包允許進(jìn)入S0

  [Quidway-acl-102]ruledenyipsourceanydestinationany

  [Quidway-acl-102]rulepermittcpsource202.39.2.30destination202.38.160.10

  [Quidway-acl-102]rulepermittcpsourceanydestination202.38.160.10destination-portgreat-than

  1024

  [Quidway-acl-102]quit

  [Quidway]ints0

  [Quidway-Serial0]firewallpacket-filter102inbound;設(shè)202.38.160.1是路由器出口IP。

  [Quidway-Serial0]natoutbound101interface;是Easyip,將acl101允許的IP從本接口出時(shí)變換源地址。

  華為路由器交換機(jī)配置命令:內(nèi)部服務(wù)器地址轉(zhuǎn)換配置命令(靜態(tài)nat):

  natserverglobal[port]insideport[protocol];global_port不寫(xiě)時(shí)使用inside_port

  [Quidway-Serial0]natserverglobal202.38.160.1inside129.38.1.1ftptcp

  [Quidway-Serial0]natserverglobal202.38.160.1inside129.38.1.2telnettcp

  [Quidway-Serial0]natserverglobal202.38.160.1inside129.38.1.3wwwtcp

  設(shè)有公網(wǎng)IP:202.38.160.101~202.38.160.103可以使用。;對(duì)外訪問(wèn)(原例題)

  [Quidway]nataddress-group202.38.160.101202.38.160.103pool1;建立地址池

  [Quidway]acl1

  [Quidway-acl-1]rulepermitsource10.110.10.00.0.0.255;指定允許的內(nèi)部網(wǎng)絡(luò)

  [Quidway-acl-1]ruledenysourceany

  [Quidway-acl-1]intserial0

  [Quidway-Serial0]natoutbound1address-grouppool1;在s0口從地址池取出IP對(duì)外訪問(wèn)

  [Quidway-Serial0]natserverglobal202.38.160.101inside10.110.10.1ftptcp

  [Quidway-Serial0]natserverglobal202.38.160.102inside10.110.10.2wwwtcp

  [Quidway-Serial0]natserverglobal202.38.160.1028080inside10.110.10.3wwwtcp

  [Quidway-Serial0]natserverglobal202.38.160.103inside10.110.10.4smtpudp

  華為路由器交換機(jī)配置命令:PPP設(shè)置:

  [Quidway-s0]link-protocolppp;默認(rèn)的協(xié)議

  華為路由器交換機(jī)配置命令:PPP驗(yàn)證

  主驗(yàn)方:pap|chap

  [Quidway]local-userq2password{simple|cipher}hello;路由器1

  [Quidway]interfaceserial0

  [Quidway-serial0]pppauthentication-mode{pap|chap}

  [Quidway-serial0]pppchapuserq1;pap時(shí),沒(méi)有此句

  華為路由交換機(jī)配置命令:pap被驗(yàn)方:

  [Quidway]interfaceserial0;路由器2

  [Quidway-serial0]ppppaplocal-userq2password{simple|cipher}hello

  華為路由器交換機(jī)配置命令:chap被驗(yàn)方:

  [Quidway]interfaceserial0;路由器2

  [Quidway-serial0]pppchapuserq2;自己路由器名

  [Quidway-serial0]local-userq1password{simple|cipher}hello;對(duì)方路由器名

  幀中繼frame-relay(二分冊(cè)6-61)

  [q1]frswitching

  [q1]ints1

  [q1-Serial1]ipaddress192.168.34.51255.255.255.0

  [q1-Serial1]link-protocolfr;封裝幀中繼協(xié)議

  [q1-Serial1]frinterface-typedce

  [q1-Serial1]frdlci100

  [q1-Serial1]frinarp

  [q1-Serial1]frmapip192.168.34.52dlci100

  [q2]ints1

  [q2-Serial1]ipaddress192.168.34.52255.255.255.0

  [q2-Serial1]link-protocolfr

  [q2-Serial1]frinterface-typedte

  [q2-Serial1]frdlci100

  [q2-Serial1]frinarp

  [q2-Serial1]frmapip192.168.34.51dlci100

  華為路由器交換機(jī)配置命令:幀中繼監(jiān)測(cè)

  [q1]displayfrlmi-info[]interfacetypenumber]

  [q1]displayfrmap

  [q1]displayfrpvc-info[serialinterface-number][dlcidlci-number]

  [q1]displayfrdlci-switch

  [q1]displayfrinterface

  [q1]resetfrinarp-info

  [q1]debuggingfrall[interfacetypenumber]

  [q1]debuggingfrarp[interfacetypenumber]

  [q1]debuggingfrevent[interfacetypenumber]

  [q1]debuggingfrlmi[interfacetypenumber]

  華為路由器交換機(jī)配置命令:?jiǎn)?dòng)ftp服務(wù):

  [Quidway]local-userftppassword{simple|cipher}aaaservice-typeftp

  [Quidway]ftpserverenable

  以上就是“華為交換機(jī)配置命令大全 華為交換機(jī)命令”的全部?jī)?nèi)容,希望能幫助到大家!

?
發(fā)表評(píng)論

熱門(mén)關(guān)注

醫(yī)療健康