![網(wǎng)絡(luò)自動(dòng)化運(yùn)維教程-實(shí)驗(yàn)手冊(cè)-NetDevOps 實(shí)驗(yàn)手冊(cè)匯總_第1頁](http://file4.renrendoc.com/view5/M00/2A/07/wKhkGGYE-qOAFOqOAAIl04JP0qA511.jpg)
![網(wǎng)絡(luò)自動(dòng)化運(yùn)維教程-實(shí)驗(yàn)手冊(cè)-NetDevOps 實(shí)驗(yàn)手冊(cè)匯總_第2頁](http://file4.renrendoc.com/view5/M00/2A/07/wKhkGGYE-qOAFOqOAAIl04JP0qA5112.jpg)
![網(wǎng)絡(luò)自動(dòng)化運(yùn)維教程-實(shí)驗(yàn)手冊(cè)-NetDevOps 實(shí)驗(yàn)手冊(cè)匯總_第3頁](http://file4.renrendoc.com/view5/M00/2A/07/wKhkGGYE-qOAFOqOAAIl04JP0qA5113.jpg)
![網(wǎng)絡(luò)自動(dòng)化運(yùn)維教程-實(shí)驗(yàn)手冊(cè)-NetDevOps 實(shí)驗(yàn)手冊(cè)匯總_第4頁](http://file4.renrendoc.com/view5/M00/2A/07/wKhkGGYE-qOAFOqOAAIl04JP0qA5114.jpg)
![網(wǎng)絡(luò)自動(dòng)化運(yùn)維教程-實(shí)驗(yàn)手冊(cè)-NetDevOps 實(shí)驗(yàn)手冊(cè)匯總_第5頁](http://file4.renrendoc.com/view5/M00/2A/07/wKhkGGYE-qOAFOqOAAIl04JP0qA5115.jpg)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
-Python?級(jí)編程-Python?級(jí)編程-2023深圳職業(yè)技術(shù)?學(xué)深圳職業(yè)技術(shù)?學(xué)-Python?級(jí)編程-2023Netmiko實(shí)驗(yàn)?冊(cè)Netmiko簡(jiǎn)介Paramiko實(shí)現(xiàn)了SSHv2的功能,但它并不是專門為?設(shè)備開發(fā)的模塊。在?Paramiko和?絡(luò)設(shè)備交互時(shí)并不很簡(jiǎn)單和通?。Netmiko基于Paramiko開發(fā)專門處理?絡(luò)設(shè)備的SSHSSH連接。源代碼:/ktbyers/netmiko安裝Netmiko在命令?中使?下?命令安裝最新版本的Netmiko模塊:pippipinstallnetmiko-i/pypi/simple/--trusted-host可以看到類似以下輸出:C:\Users\Administrator>pipinstallnetmikoCollectingnetmikoUsingcachednetmiko-3.3.3-py3-none-any.whl(168kB)CollectingtenacityUsingcachedtenacity-7.0.0-py2.py3-none-any.whl(23kB)Collectingntc-templatesUsingcachedntc_templates-2.0.0-py3-none-any.whl(280kB)Requirementalreadysatisfied:paramiko>=2.6.0ind:\python3_7_6\lib\site-packages(fromnetmiko)(2.7.2)Collectingscp>=0.13.2Usingcachedscp-0.13.3-py2.py3-none-any.whl(8.2kB)CollectingpyserialUsingcachedpyserial-3.5-py2.py3-none-any.whl(90kB)Requirementalreadysatisfied:setuptools>=38.4.0ind:\python3_7_6\lib\site-packages(fromnetmiko)(41.2.0)Requirementalreadysatisfied:six>=1.9.0ind:\python3_7_6\lib\site-packages(fromtenacity->netmiko)(1.14.0)Collectingtextfsm<2.0.0,>=1.1.0Usingcachedtextfsm-1.1.0-py2.py3-none-any.whl(37kB)Requirementalreadysatisfied:cryptography>=2.5ind:\python3_7_6\lib\site-packages(fromparamiko>=2.6.0->netmiko)(3.4.6)Requirementalreadysatisfied:pynacl>=1.0.1ind:\python3_7_6\lib\site-packages(fromparamiko>=2.6.0->netmiko)(1.4.0)Requirementalreadysatisfied:bcrypt>=3.1.3ind:\python3_7_6\lib\site-packages(fromparamiko>=2.6.0->netmiko)(3.2.0)深圳職業(yè)技術(shù)?學(xué)-Python深圳職業(yè)技術(shù)?學(xué)-Python?級(jí)編程-2023CollectingfutureDownloadingfuture-0.18.2.tar.gz(829kB)|████████████████████████████████|829kB5.4kB/sRequirementalreadysatisfied:cffi>=1.12ind:\python3_7_6\lib\site-packages(fromcryptography>=2.5->paramiko>=2.6.0->netmiko)(1.14.5)Requirementalreadysatisfied:pycparserind:\python3_7_6\lib\site-packages(fromcffi>=1.12->cryptography>=2.5->paramiko>=2.6.0->netmiko)(2.20)Usinglegacy'setup.pyinstall'forfuture,sincepackage'wheel'isnotinstalled.Installingcollectedpackages:tenacity,future,textfsm,ntc-templates,scp,pyserial,netmikoRunningsetup.pyinstallforfuture...doneSuccessfullyinstalledfuture-0.18.2netmiko-3.3.3ntc-templates-2.0.0pyserial-3.5scp-0.13.3tenacity-7.0.0textfsm-1.1.0查看netmiko的版本,可能有更新的版本,此處展?的是3.3.3版本importimportnetmikoprint(netmiko.version)3.3.3實(shí)驗(yàn)?:通過Netmiko獲取設(shè)備的ARP表?絡(luò)拓?fù)湓趀NSP中搭建以下?絡(luò)拓?fù)?,交換機(jī)型號(hào)為S5700,Cloud1配置與Paramiko實(shí)驗(yàn)中相同,不再贅述。配置設(shè)備的SSH功能Netmiko使?SSHv2連接設(shè)備,?先需要進(jìn)?華為交換機(jī)S5700的SSH配置。注意:?前,Netmiko中使?的設(shè)備不能是CE12800,因?yàn)榻?jīng)過測(cè)試發(fā)現(xiàn)時(shí),不能使?“system-viewimmediate”和“commit”等。為?便起見,本實(shí)驗(yàn)使?密碼登錄,不使?公鑰登錄。<Huawei>system-view[Huawei]sysnameSW1[SW1]intvlanif1[SW1-Vlanif1]ipaddress0024[SW1-Vlanif1]quit[SW1]stelnetserverenableInfo:SucceededinstartingtheStelnetserver.[SW1]user-interfacevty04[SW1-ui-vty0-4]authentication-modeaaa[SW1-ui-vty0-4]userprivilegelevel3[SW1-ui-vty0-4]protocolinboundssh[SW1-ui-vty0-4]quit[SW1][SW1]aaa[SW1-aaa]local-userpythonpasswordcipherHuawei12#$Info:Addanewuser.[SW1-aaa]local-userpythonservice-typessh[SW1-aaa]quit[SW1][SW1]sshuserpythonInfo:SucceededinaddinganewSSHuser.[SW1]sshuserpythonauthentication-typepassword[SW1]sshuserpythonservice-typestelnetsystem-viewsysnameSW1intvlanif1ipaddress0024quitstelnetserverenableuser-interfacevty04authentication-modeaaauserprivilegelevel3protocolinboundsshquitaaalocal-userpythonpasswordcipherHuawei12#$local-userpythonservice-typesshquitsshuserpythonsshuserpythonauthentication-typepasswordsshuserpythonservice-typestelnet使?Netmiko登錄SW1Python代碼#1#1、導(dǎo)?netmiko模塊importnetmiko#2、初始化netmiko.ConnectHandler類.初始化后,與?絡(luò)設(shè)備建?SSH的連接con=netmiko.ConnectHandler(device_type="huawei",ip="00",username="python",password="Huawei12#$")#3、向?備發(fā)送?個(gè)命令"displayarp".send_command?法與paramiko中的exe_command?法不?樣。out=con.send_command("displayarp")print(out)#4、關(guān)閉此SSH連接con.disconnect()I- I- Vlanif1D-0 GE0/0/11#執(zhí)?輸出<SW1>IP#執(zhí)?輸出<SW1>IPADDRESSMACADDRESSEXPIRE(M)TYPEINTERFACEVLANVPN-INSTANCE00 4c1f-cc75-80a3 0 0a00-2700-0013 19Total:2 Dynamic:1 Static:0 Interface:1實(shí)驗(yàn)?:使?Netmiko模塊配置設(shè)備本實(shí)驗(yàn)中需要通過Netmiko來配置交換機(jī)的G0/0/10端?到Vlan10與實(shí)驗(yàn)?相同
?絡(luò)拓?fù)渑c實(shí)驗(yàn)?相同
配置設(shè)備SSHPython代碼#1、導(dǎo)?模塊fromnetmikoimportConnectHandler#2、定義設(shè)備信息dev={'device_type':'huawei','ip':'00','username':'python','password':'Huawei12#$'}#3、連接設(shè)備con=ConnectHandler(**dev)#4、將需要的配置命令,放進(jìn)?個(gè)列表中config_commands=['vlan10','intg0/0/10','descriptionTHISPORTISVLAN10','portlink-typeaccess','portdefaultvlan10']#5、批量發(fā)送命令到設(shè)備ret=con.send_config_set(config_commands)print(ret)#6、關(guān)閉連接con.disconnect()運(yùn)?以上代碼得到的輸出如下:system-viewsystem-viewEntersystemview,returnuserviewwithCtrl+Z.[SW1]vlan10[SW1-vlan10]intg0/0/10[SW1-GigabitEthernet0/0/10]descriptionTHISPORTISVLAN10[SW1-GigabitEthernet0/0/10]portlink-typeaccess[SW1-GigabitEthernet0/0/10]portdefaultvlan10[SW1-GigabitEthernet0/0/10]return<SW1>實(shí)驗(yàn)三:使?Netmiko配置OSPF?絡(luò)拓?fù)浒凑障铝型負(fù)浯罱?絡(luò)環(huán)境。交換機(jī)型號(hào)為S5700,路由器型號(hào)為:AR2220。5.2.1配置SW1的SSH
配置設(shè)備的SSH功能#1、設(shè)置接?地址:<Huawei>system-viewEntersystemview,returnuserviewwithCtrl+Z.[Huawei]sysnameSW1[SW1]intvlanif1[SW1-Vlanif1]ipaddress0024[SW1-Vlanif1]quit#2、開啟stelnet,配置?戶訪問[SW1]stelnetserverenableInfo:SucceededinstartingtheStelnetserver.[SW1]user-interfacevty04[SW1-ui-vty0-4]authentication-modeaaa[SW1-ui-vty0-4]userprivilegelevel3[SW1-ui-vty0-4]protocolinboundssh[SW1-ui-vty0-4]quit[SW1]#3、添加?戶:[SW1]aaa[SW1-aaa]local-userpythonpasswordcipherHuawei12#$Info:Addanewuser.[SW1-aaa]local-userpythonservice-typessh[SW1-aaa]quit#4、添加SSH?戶,使??令認(rèn)證:[SW1]sshuserpythonInfo:SucceededinaddinganewSSHuser.[SW1]sshuserpythonauthentication-typepassword[SW1]sshuserpythonservice-typestelnet的SSH<Huawei>system-view<Huawei>system-viewEntersystemview,returnuserviewwithCtrl+Z.[Huawei]sysnameR1[R1]intg0/0/2[R1-GigabitEthernet0/0/2] ipaddress0124[R1-GigabitEthernet0/0/2] quit[R1]stelnetserverenableInfo:SucceededinstartingtheSTELNETserver.[R1]user-interfacevty04[R1-ui-vty0-4]authentication-modeaaa[R1-ui-vty0-4]userprivilegelevel3[R1-ui-vty0-4]protocolinboundssh[R1-ui-vty0-4]quit[R1]aaa[R1-aaa][R1-aaa]local-userpythonpasswordcipherHuawei12#$Info:Addanewuser.[R1-aaa]local-userpythonservice-typessh[R1-aaa]quit[R1]sshuserpythonauthentication-typepasswordAuthenticationtypesetted,andwillbeineffectnexttime[R1]的SSH<Huawei>system-viewEntersystemview,returnuserviewwithCtrl+Z.[Huawei]sysnameR2[R2]intg0/0/0[R2-GigabitEthernet0/0/0] ipaddress0224[R2-GigabitEthernet0/0/0] quit[R2]stelnetserverenableInfo:SucceededinstartingtheSTELNETserver.[R2]user-interfacevty04[R2-ui-vty0-4]authentication-modeaaa[R2-ui-vty0-4]userprivilegelevel3[R2-ui-vty0-4]protocolinboundssh[R2-ui-vty0-4]quit[R2]aaa[R2-aaa][R2-aaa]local-userpythonpasswordcipherHuawei12#$Info:Addanewuser.[R2-aaa]local-userpythonservice-typessh[R2-aaa]quit[R2]sshuserpythonauthentication-typepasswordAuthenticationtypesetted,andwillbeineffectnexttime[R2]5.3Python代碼#1、導(dǎo)?模塊fromnetmikoimportConnectHandler#2、分別定義3臺(tái)設(shè)備信息sw1={'device_type':'huawei','ip':'00','username':'python','password':'Huawei12#$'}r1={'device_type':'huawei','ip':'01','username':'python','password':'Huawei12#$'}r2={'device_type':'huawei','ip':'02','username':'python','password':'Huawei12#$'}#3、將3個(gè)設(shè)備組合為?個(gè)列表devices=[sw1,r1,r2]#4、定義每個(gè)設(shè)備上的配置sw1_conf=["ospf10","area0","network55"]r1_conf=["intloopback0","ipaddre55","ospf10","area0","network55","network"]r2_conf=["intloopback0","ipaddre55","ospf10","area0","network55","network"]#5、將3個(gè)設(shè)備配置組合為?個(gè)列表confs=[sw1_conf,r1_conf,r2_conf]6、通過循環(huán)?次性配置3臺(tái)設(shè)備foriinrange(len(devices)):con=ConnectHandler(**devices[i])out=con.send_config_set(confs[i])print(out)con.disconnect()思考:以上Python代碼有哪些可改進(jìn)的地??執(zhí)?代碼可以看到以下輸出system-viewEntersystemview,returnuserviewwithCtrl+Z.[SW1]ospf10[SW1-ospf-10]area0[SW1-ospf-10-area-]network55[SW1-ospf-10-area-]return<SW1>system-viewEntersystemview,returnuserviewwithCtrl+Z.[R1]intloopback0[R1-LoopBack0]ipaddre55[R1-LoopBack0]ospf10[R1-ospf-10]area0[R1-ospf-10-area-]network55[R1-ospf-10-area-]network[R1-ospf-10-area-]return<R1>system-viewEntersystemview,returnuserviewwithCtrl+Z.[R2]intloopback0[R2-LoopBack0]ipaddre55[R2-LoopBack0]ipaddre55[R2-LoopBack0]ospf10[R2-ospf-10]area0[R2-ospf-10-area-]network55[R2-ospf-10-area-]network[R2-ospf-10-area-]return<R2>Python?級(jí)編程Python?級(jí)編程-2023NETCONFSchema實(shí)驗(yàn)?冊(cè)1NETCONF簡(jiǎn)介NETCONF(NetworkConfigurationProtocol)?絡(luò)配置協(xié)議,提供?套管理?絡(luò)設(shè)備的機(jī)制。?戶可以使?這套機(jī)制增加、修改、刪除?絡(luò)設(shè)備的配置,獲取?絡(luò)設(shè)備的配置和狀態(tài)信息。NETCONF當(dāng)前有兩種建模語?,Schema和YANG:Schema是為了描述XML?檔?定義的?套規(guī)則。Schema?件中定義了設(shè)備所有管理對(duì)象,以及管理對(duì)象的層次關(guān)系、讀寫屬性和約束條件。是專門為NETCONF協(xié)議設(shè)計(jì)的數(shù)據(jù)建模語?,?來為NETCONF協(xié)議設(shè)計(jì)可操作的配置數(shù)據(jù)、狀態(tài)數(shù)據(jù)模型、遠(yuǎn)程調(diào)?(RPCs)模型和通知機(jī)制等。2安裝NETCONF客戶端ncclient是?個(gè)專門?于NETCONF客戶端的Python庫。它提供直觀的API,將NETCONF的XML編碼特性映射到Python構(gòu)造和習(xí)語,并使編寫?絡(luò)管理腳本更容易。使?下列命令安裝ncclientpippipinstallncclient-i/pypi/simple/--trusted-hostCollectingncclientDownloadingncclient-0.6.10.tar.gz(105kB)|████████████████████████████████|105kB3.5kB/sRequirementalreadysatisfied:setuptools>0.6ind:\python3_7_6\lib\site-packages(fromncclient)(41.2.0)Requirementalreadysatisfied:paramiko>=1.15.0ind:\python3_7_6\lib\site-packages(fromncclient)(2.7.2)Collectinglxml>=3.3.0Downloadinglxml-4.6.2-cp37-cp37m-win_amd64.whl(3.5MB)|████████████████████████████████|3.5MB5.8kB/sRequirementalreadysatisfied:sixind:\python3_7_6\lib\site-packages(fromncclient)(1.14.0)Requirementalreadysatisfied:cryptography>=2.5ind:\python3_7_6\lib\site-packages(fromparamiko>=1.15.0->ncclient)(3.4.6)Requirementalreadysatisfied:bcrypt>=3.1.3ind:\python3_7_6\lib\site-packages(fromparamiko>=1.15.0->ncclient)(3.2.0)Requirementalreadysatisfied:pynacl>=1.0.1ind:\python3_7_6\lib\site-packages(fromparamiko>=1.15.0->ncclient)(1.4.0)Requirementalreadysatisfied:cffi>=1.12ind:\python3_7_6\lib\site-packages(fromcryptography>=2.5->paramiko>=1.15.0->ncclient)(1.14.5)深圳職業(yè)技術(shù)?學(xué)-Python深圳職業(yè)技術(shù)?學(xué)-Python?級(jí)編程-2023Requirementalreadysatisfied:pycparserind:\python3_7_6\lib\site-packages(fromcffi>=1.12->cryptography>=2.5->paramiko>=1.15.0->ncclient)(2.20)Usinglegacy'setup.pyinstall'forncclient,sincepackage'wheel'isnotinstalled.Installingcollectedpackages:lxml,ncclientRunningsetup.pyinstallforncclient...doneSuccessfullyinstalledlxml-4.6.2ncclient-0.6.10WARNING:Youareusingpipversion20.2.2;however,version21.0.1isavailable.#查看ncclientC:\Users\Administrator>pythonPython3.9.6(tags/v3.9.6:db3ff76,Jun282021,15:26:21)[MSCv.192964bit(AMD64)]onwin32Type"help","copyright","credits"or"license"formoreinformation.>>>importncclient>>>ncclient.version'0.6.12'>>>>>>exit()C:\Users\Administrator>實(shí)驗(yàn)?:Schema獲取設(shè)備配置通過NETCONF協(xié)議獲取設(shè)備的running配置。?絡(luò)拓?fù)湓O(shè)置接?地址:
配置設(shè)備<Huawei>system-viewimmediately<Huawei>system-viewimmediatelyEntersystemview,returnuserviewwithCtrl+Z.[Huawei]sysnameCE1[CE1]intvlanif1[CE1-Vlanif1]ipaddress0024[CE1-Vlanif1]quit[CE1]打開stelnet,配置NETCONF[CE1]stelnetserverenable[CE1]aaa[CE1-aaa]local-usernetconfpasswordirreversible-cipherHuawei12#$[CE1-aaa]local-usernetconfservice-typessh[CE1-aaa]local-usernetconflevel3[CE1-aaa]quit[CE1]sshusernetconfauthentication-typepassword[CE1]sshusernetconfservice-typesnetconf[CE1]snetconfserverenable[CE1]netconf[CE1-netconf][CE1-netconf]protocolinboundsshport830[CE1-netconf]quit[CE1]全部配置指令如下:system-viewimmediatelysysnameCE1system-viewimmediatelysysnameCE1intvlanif1ipaddress0024quitintg1/0/0undoshutdownquitstelnetserverenableaaalocal-usernetconfpasswordirreversible-cipherHuawei12#$local-usernetconfservice-typesshlocal-usernetconflevel3quitsshusernetconfauthentication-typepasswordsshusernetconfservice-typesnetconfsnetconfserverenablenetconfprotocolinboundsshport830quit導(dǎo)?需要的python模塊Python代碼fromfromncclientimportmanagerfromncclientimportoperations定義變量,對(duì)應(yīng)CE1的參數(shù),分別為主機(jī)IP、NETCONF端?、NETCONF?戶名和NETCONF密碼ipip='00'netconf_port='830'netconf_user='netconf'netconf_password='Huawei12#$'建?NETCONF連接,此處定義了?個(gè)函數(shù)huawei_connect(hostportuserpassword)。函數(shù)輸?四個(gè)參數(shù)為NETCONF主機(jī)的IP、端?、NETCONF?戶名和密碼。defdefhuawei_connect(host,port,user,password):returnmanager.connect(host=host,port=port,username=user,password=password,hostkey_verify=False,device_params={'name':"huawei"},allow_agent=False,look_for_keys=False)建?連接mm=huawei_connect(ip,netconf_port,netconf_user,netconf_password)使?get_config(),獲取遠(yuǎn)程設(shè)備的running配置,返回的數(shù)據(jù)是xml格式。ce1_confce1_conf=m.get_config(source='running')print(ce1_conf)得到以下xml輸出<?xmlversion="1.0"encoding="UTF-8"?><rpc-replymessage-id="urn:uuid:91fa68ef-8c53-4dc2-bd56-dc1dd13bbd49"xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"set-id="26"><data><ethernetxmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><ethernetIfs><ethernetIf><ifName>GE1/0/0</ifName><ifIndex>5</ifIndex><l2Enable>enable</l2Enable><vlanAssigns/><l2Attribute><ifIndex>5</ifIndex><linkType>access</linkType><pvid>1</pvid><trunkVlans/><untagVlans/><taggedPacketDiscard>false</taggedPacketDiscard><portBridgEnable>false</portBridgEnable><portActiveVlanInfos><portActiveVlanInfo><unTagVlanList>1</unTagVlanList><tagVlanList/></portActiveVlanInfo></portActiveVlanInfos><muxVlanEna><enableVlans/></muxVlanEna></l2Attribute></ethernetIf><ethernetIf><ifName>GE1/0/1</ifName><ifIndex>6</ifIndex><l2Enable>enable</l2Enable><vlanAssigns/><l2Attribute><ifIndex>6</ifIndex><linkType>access</linkType><pvid>1</pvid><trunkVlans/><untagVlans/><taggedPacketDiscard>false</taggedPacketDiscard><portBridgEnable>false</portBridgEnable><portActiveVlanInfos><portActiveVlanInfo><unTagVlanList>1</unTagVlanList><tagVlanList/></portActiveVlanInfo></portActiveVlanInfos><muxVlanEna><enableVlans/></muxVlanEna></l2Attribute></ethernetIf><ethernetIf><ifName>GE1/0/2</ifName><ifIndex>7</ifIndex><l2Enable>enable</l2Enable><vlanAssigns/><l2Attribute><ifIndex>7</ifIndex><linkType>access</linkType><pvid>1</pvid><trunkVlans/><untagVlans/><taggedPacketDiscard>false</taggedPacketDiscard><portBridgEnable>false</portBridgEnable><portActiveVlanInfos><portActiveVlanInfo><unTagVlanList>1</unTagVlanList><tagVlanList/></portActiveVlanInfo></portActiveVlanInfos><muxVlanEna><enableVlans/></muxVlanEna></l2Attribute></ethernetIf><ethernetIf><ifName>GE1/0/3</ifName><ifIndex>8</ifIndex><l2Enable>enable</l2Enable><vlanAssigns/><l2Attribute><ifIndex>8</ifIndex><linkType>access</linkType><pvid>1</pvid><trunkVlans/><untagVlans/><taggedPacketDiscard>false</taggedPacketDiscard><portBridgEnable>false</portBridgEnable><portActiveVlanInfos><portActiveVlanInfo><unTagVlanList>1</unTagVlanList><tagVlanList/></portActiveVlanInfo></portActiveVlanInfos><muxVlanEna><enableVlans/></muxVlanEna></l2Attribute></ethernetIf><ethernetIf><ifName>GE1/0/4</ifName><ifIndex>9</ifIndex><l2Enable>enable</l2Enable><vlanAssigns/><l2Attribute><ifIndex>9</ifIndex><linkType>access</linkType><pvid>1</pvid><trunkVlans/><untagVlans/><taggedPacketDiscard>false</taggedPacketDiscard><portBridgEnable>false</portBridgEnable><portActiveVlanInfos><portActiveVlanInfo><unTagVlanList>1</unTagVlanList><tagVlanList/></portActiveVlanInfo></portActiveVlanInfos><muxVlanEna><enableVlans/></muxVlanEna></l2Attribute></ethernetIf><ethernetIf><ifName>GE1/0/5</ifName><ifIndex>10</ifIndex><l2Enable>enable</l2Enable><vlanAssigns/><l2Attribute><ifIndex>10</ifIndex><linkType>access</linkType><pvid>1</pvid><trunkVlans/><untagVlans/><taggedPacketDiscard>false</taggedPacketDiscard><portBridgEnable>false</portBridgEnable><portActiveVlanInfos><portActiveVlanInfo><unTagVlanList>1</unTagVlanList><tagVlanList/></portActiveVlanInfo></portActiveVlanInfos><muxVlanEna><enableVlans/></muxVlanEna></l2Attribute></ethernetIf><ethernetIf><ifName>GE1/0/6</ifName><ifIndex>11</ifIndex><l2Enable>enable</l2Enable><vlanAssigns/><l2Attribute><ifIndex>11</ifIndex><linkType>access</linkType><pvid>1</pvid><trunkVlans/><untagVlans/><taggedPacketDiscard>false</taggedPacketDiscard><portBridgEnable>false</portBridgEnable><portActiveVlanInfos><portActiveVlanInfo><unTagVlanList>1</unTagVlanList><tagVlanList/></portActiveVlanInfo></portActiveVlanInfos><muxVlanEna><enableVlans/></muxVlanEna></l2Attribute></ethernetIf><ethernetIf><ifName>GE1/0/7</ifName><ifIndex>12</ifIndex><l2Enable>enable</l2Enable><vlanAssigns/><l2Attribute><ifIndex>12</ifIndex><linkType>access</linkType><pvid>1</pvid><trunkVlans/><untagVlans/><taggedPacketDiscard>false</taggedPacketDiscard><portBridgEnable>false</portBridgEnable><portActiveVlanInfos><portActiveVlanInfo><unTagVlanList>1</unTagVlanList><tagVlanList/></portActiveVlanInfo></portActiveVlanInfos><muxVlanEna><enableVlans/></muxVlanEna></l2Attribute></ethernetIf><ethernetIf><ifName>GE1/0/8</ifName><ifIndex>13</ifIndex><l2Enable>enable</l2Enable><vlanAssigns/><l2Attribute><ifIndex>13</ifIndex><linkType>access</linkType><pvid>1</pvid><trunkVlans/><untagVlans/><taggedPacketDiscard>false</taggedPacketDiscard><portBridgEnable>false</portBridgEnable><portActiveVlanInfos><portActiveVlanInfo><unTagVlanList>1</unTagVlanList><tagVlanList/></portActiveVlanInfo></portActiveVlanInfos><muxVlanEna><enableVlans/></muxVlanEna></l2Attribute></ethernetIf><ethernetIf><ifName>GE1/0/9</ifName><ifIndex>14</ifIndex><l2Enable>enable</l2Enable><vlanAssigns/><l2Attribute><ifIndex>14</ifIndex><linkType>access</linkType><pvid>1</pvid><trunkVlans/><untagVlans/><taggedPacketDiscard>false</taggedPacketDiscard><portBridgEnable>false</portBridgEnable><portActiveVlanInfos><portActiveVlanInfo><unTagVlanList>1</unTagVlanList><tagVlanList/></portActiveVlanInfo></portActiveVlanInfos><muxVlanEna><enableVlans/></muxVlanEna></l2Attribute></ethernetIf></ethernetIfs></ethernet><macxmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><globalAttribute><macAgeTimeEnable>enable</macAgeTimeEnable><macAgingTime>300</macAgingTime></globalAttribute><macUsages><macUsage><slot>0</slot></macUsage><macUsage><slot>1</slot></macUsage></macUsages><macflpDetectGlbAttr><macflpDetectEnable>enable</macflpDetectEnable><macflpDetectLevel>middle</macflpDetectLevel><macflpAgingTime>300</macflpAgingTime><macflpTrapEnable>disable</macflpTrapEnable><macflpTrapInterval/></macflpDetectGlbAttr><macflpDetectExcludeVlan><vlanLists/></macflpDetectExcludeVlan><ifStormContrls><ifStormContrl><ifName>GE1/0/0</ifName><ifIndex>5</ifIndex><action>normal</action><trapEnable>disable</trapEnable><logEnable>disable</logEnable><interval>5</interval></ifStormContrl><ifStormContrl><ifName>GE1/0/1</ifName><ifIndex>6</ifIndex><action>normal</action><trapEnable>disable</trapEnable><logEnable>disable</logEnable><interval>5</interval></ifStormContrl><ifStormContrl><ifName>GE1/0/2</ifName><ifIndex>7</ifIndex><action>normal</action><trapEnable>disable</trapEnable><logEnable>disable</logEnable><interval>5</interval></ifStormContrl><ifStormContrl><ifName>GE1/0/3</ifName><ifIndex>8</ifIndex><action>normal</action><trapEnable>disable</trapEnable><logEnable>disable</logEnable><interval>5</interval></ifStormContrl><ifStormContrl><ifName>GE1/0/4</ifName><ifIndex>9</ifIndex><action>normal</action><trapEnable>disable</trapEnable><logEnable>disable</logEnable><interval>5</interval></ifStormContrl><ifStormContrl><ifName>GE1/0/5</ifName><ifIndex>10</ifIndex><action>normal</action><trapEnable>disable</trapEnable><logEnable>disable</logEnable><interval>5</interval></ifStormContrl><ifStormContrl><ifName>GE1/0/6</ifName><ifIndex>11</ifIndex><action>normal</action><trapEnable>disable</trapEnable><logEnable>disable</logEnable><interval>5</interval></ifStormContrl><ifStormContrl><ifName>GE1/0/7</ifName><ifIndex>12</ifIndex><action>normal</action><trapEnable>disable</trapEnable><logEnable>disable</logEnable><interval>5</interval></ifStormContrl><ifStormContrl><ifName>GE1/0/8</ifName><ifIndex>13</ifIndex><action>normal</action><trapEnable>disable</trapEnable><logEnable>disable</logEnable><interval>5</interval></ifStormContrl><ifStormContrl><ifName>GE1/0/9</ifName><ifIndex>14</ifIndex><action>normal</action><trapEnable>disable</trapEnable><logEnable>disable</logEnable><interval>5</interval></ifStormContrl></ifStormContrls></mac><ftpcxmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><ftpClient><sourceIpv4Address/><sourceInterfaceName/></ftpClient></ftpc><systemxmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><systemInfo><sysName>CE1</sysName><sysContact>R&DBeijing,HuaweiTechnologiesco.,Ltd.</sysContact><sysLocation>BeijingChina</sysLocation><sysDesc>HuaweiVersatileRoutingPlatformSoftware VRP(R)software,Version8.180(CE12800V200R005C10SPC607B607) Copyright(C)2012-2018HuaweiTechnologiesCo.,Ltd. HUAWEICE12800 </sysDesc><sysObjectId>.4.1.20.3</sysObjectId><sysGmtTime>1629043915</sysGmtTime><sysUpTime>506</sysUpTime><sysService>78</sysService><platformName>VRP</platformName><platformVer>V800R018C10SPC607</platformVer><productName>CE12800</productName><productVer>V200R005C10SPC607</productVer><patchVer/><esn>11212323223163164</esn><mac>707B-E8E7-3FA4</mac><lsRole>admin</lsRole><authenFlag>false</authenFlag></systemInfo></system><directrtxmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><directrtvlink><drVlinkIfTags><drVlinkIfTag><ifName>Vlanif1</ifName><addressFamily>ipv4uni</addressFamily><tag>0</tag></drVlinkIfTag></drVlinkIfTags><drVlinkSys><sysIpv4Enable>false</sysIpv4Enable><sysIpv6Enable>false</sysIpv6Enable></drVlinkSys></directrtvlink></directrt><ntpxmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><ntpSystemCfg><maxSessCount>100</maxSessCount><isAuthEnable>false</isAuthEnable><isKodEnable>false</isKodEnable><syncInterval/><minDiscardIntvl>1</minDiscardIntvl><avgDiscardIntvl>5</avgDiscardIntvl><localPort>123</localPort><maxDistance>1</maxDistance></ntpSystemCfg></ntp><opsxmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><assistant><totalAsstSwitch><suspend>false</suspend></totalAsstSwitch></assistant></ops><pp4xmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><globalCfg><udphelperEnable>false</udphelperEnable><dscpPriorityValue/><icmpRateLimitEnable>true</icmpRateLimitEnable><icmpRateLmtThreshold>1500</icmpRateLmtThreshold><icmpTtlExdDrpEnable>false</icmpTtlExdDrpEnable><icmpWithOptDropEnable>false</icmpWithOptDropEnable><icmpBroadEchoEn>true</icmpBroadEchoEn><icmpUnrchRevEn>false</icmpUnrchRevEn></globalCfg><IpOptSecuritys><IpOptSecurity><optionType>routeAlert</optionType><switchOp>enable</switchOp></IpOptSecurity><IpOptSecurity><optionType>routeRecord</optionType><switchOp>enable</switchOp></IpOptSecurity><IpOptSecurity><optionType>sourceRoute</optionType><switchOp>enable</switchOp></IpOptSecurity><IpOptSecurity><optionType>timeStamp</optionType><switchOp>enable</switchOp></IpOptSecurity></IpOptSecuritys><ReasTimeout><timeout>30</timeout></ReasTimeout></pp4><radiusxmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><rdsClient><isEnable>false</isEnable><deadCount>10</deadCount><deadInterval>5</deadInterval><deadTime>3</deadTime><failRate>100</failRate><srvRecoveryOnRspEnable>true</srvRecoveryOnRspEnable></rdsClient></radius><socketxmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><TcpGlobalCfg><tcpFinTimeout>675</tcpFinTimeout><tcpSynTimeout>75</tcpSynTimeout><tcpWindow>8</tcpWindow><tcp6FinTimeout>675</tcp6FinTimeout><tcp6SynTimeout>75</tcp6SynTimeout><tcp6Window>8</tcp6Window><tcpMaxMss/><tcp6MaxMss/></TcpGlobalCfg></socket><dhcpv6xmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><common><dhcpv6CommonCfg><dhcpv6Enable>false</dhcpv6Enable><remoteIdFormat>default</remoteIdFormat><remoteIdUserDefineText/><duidFormat>invalid</duidFormat><duidString/><dhcpv6IpsecSa/><sourceIpAdaptive>false</sourceIpAdaptive></dhcpv6CommonCfg></common><server><svrCommons><svrCommon><dataBaseEnable>false</dataBaseEnable><dataBaseRecover>false</dataBaseRecover><writeDelay>86400</writeDelay></svrCommon></svrCommons></server></dhcpv6><pp6xmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><Ipv6GlobalCfg><bucketSize>10</bucketSize><interval>100</interval><echoReply>true</echoReply><hostUnreach>true</hostUnreach><portUnreach>true</portUnreach><timeout>10</timeout><blacklistFlag>false</blacklistFlag><toobigLimitFlag>true</toobigLimitFlag></Ipv6GlobalCfg><icmp6Securitys><icmp6Security><action>send</action><icmpType>0</icmpType><icmpCode>0</icmpCode><allFlag>yes</allFlag><switchOp>enable</switchOp></icmp6Security><icmp6Security><action>receive</action><icmpType>0</icmpType><icmpCode>0</icmpCode><allFlag>yes</allFlag><switchOp>enable</switchOp></icmp6Security></icmp6Securitys></pp6><segrxmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><srSite><srEnable>false</srEnable><srPrefer>false</srPrefer></srSite></segr><vlanxmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><vlans><vlan><vlanId>1</vlanId><vlanType>common</vlanType><vlanName/><vlanDesc>VLAN0001</vlanDesc><adminStatus>up</adminStatus><subVlans/><superVlan/><vlanif><ifName>Vlanif1</ifName><cfgBand>1000</cfgBand><dampTime>0</dampTime></vlanif><muxVlan><separateVlan/><groupVlans/></muxVlan></vlan></vlans><instances><instance><instanceId>0</instanceId><vlans>7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE</vlans><instanceType>default</instanceType></instance></instances></vlan><sshcxmlns="/netconf/vrp"format-version="1.0"content-version="1.0"><sshClient><keepAliveTime>0</keepAliveTime><keepAliveCount>3</keepAliveCount><firstTimeEnable>Disable</firstTimeEnable><SrcIpv4Addr/><SrcInterface/><vpnInstanceName/><scpSrcIpv4Addr/><scpSrcInterface/><scpVpnInstanceName/><packetDscp>48</packetDscp></sshClient><reKey><rekeyMaxPacketNo>2147483648</rekeyMaxPacketNo><rekeyTime>60</rekeyTime><rekeyMaxData>1000</rekeyMaxData></reKey><sshCCipherAlg><descbc>false</descbc><des3cbc>true</des3cbc><aes128cbc>true</aes128cbc><aes256cbc>true</aes256cbc><aes128ctr>true</aes128ctr><aes192ctr>true</aes192ctr><aes256ctr>true</aes256ctr><arcfour128>false</arcfour128><arcfour256>false</arcfour256><aes128gcm>true</aes128gcm><aes256gcm>true</aes256gcm><aes192cbc>false</aes192cbc></sshCCipherAlg><sshcKexAlg><dhGroupExchangeSha256>true</dhGroupExcha
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 白酒總代理合同年
- 小學(xué)口算練習(xí)題小數(shù)300道
- 2025年呼和浩特貨運(yùn)從業(yè)考試試題及答案解析
- 2025年吉林市a2貨運(yùn)從業(yè)資格證模擬考試
- 小學(xué)四年級(jí)數(shù)學(xué)計(jì)算題大全
- 2022年新課標(biāo)八年級(jí)上冊(cè)道德與法治《8.2 堅(jiān)持國家利益至上 》聽課評(píng)課記錄
- 社區(qū)殘疾人工作計(jì)劃
- 酒店主管年度個(gè)人總結(jié)
- 車間生產(chǎn)主管年終總結(jié)
- 電子技術(shù)實(shí)習(xí)生工作總結(jié)
- 小學(xué)一年級(jí)數(shù)學(xué)思維訓(xùn)練100題(附答案)
- 蘇教版小學(xué)信息技術(shù)五年級(jí)下冊(cè)五年級(jí)下冊(cè)教案全集
- 蘇教版八年級(jí)數(shù)學(xué)上冊(cè)期末試卷及答案【完美版】
- 法院拍賣議價(jià)協(xié)議書
- 新能源充電站運(yùn)營(yíng)手冊(cè)
- 2021年人教版八年級(jí)物理上冊(cè)期末考試卷(完美版)
- TB 10009-2016 鐵路電力牽引供電設(shè)計(jì)規(guī)范
- 2024年東南亞雞蛋分級(jí)包裝設(shè)備市場(chǎng)深度研究及預(yù)測(cè)報(bào)告
- 2024年蘭州新區(qū)實(shí)正鑫熱電有限公司招聘筆試沖刺題(帶答案解析)
- 血透室護(hù)士長(zhǎng)述職
- (正式版)JTT 1218.4-2024 城市軌道交通運(yùn)營(yíng)設(shè)備維修與更新技術(shù)規(guī)范 第4部分:軌道
評(píng)論
0/150
提交評(píng)論