天天看點

CCIE 350-401-實驗全實驗

實驗

CCIE 350-401-實驗全實驗

VRRP(hello packet=times advertise)

CCIE 350-401-實驗全實驗

This is a lab item in which tasks will be performed on virtual devices.

  • Refer to the Tasks tab to view the tasks for this lab item.
  • Refer to the Topology tab to access the device console(s) and perform the tasks.
  • console access is available for all required devices by clicking the device iconor using the tab(s) above the console window.
  • All necessary preconfigurations have been applied.
  • Do not change the enable password or hostname for any device.Save your configurations to NVRAM before moving to the next item.
  • Click Next at the bottom of the screen to submit this lab and move to the next question.
  • when Next is clicked, the lab closes and cannot be reopened.

這是一個實驗項目,任務将在虛拟裝置上執行。

  • 參考任務頁籤檢視這個實驗項目的任務。
  • 通過“拓撲”頁簽進入裝置控制台執行任務。
  • 通過單擊裝置圖示或使用控制台視窗上方的頁籤,所有必需的裝置都可以通路控制台。
  • 已應用所有必要的預配置。
  • 禁止修改任何裝置的啟用密碼和主機名。在進入下一項之前,将配置儲存到NVRAM。
  • 單擊螢幕底部的“下一步”送出該實驗并移動到下一個問題。
  • 當單擊Next時,實驗室關閉且不能重新打開。

Tasks:

lmplement VRRP between DISTRO-SW1 and DISTRO-SW2 on VLAN100 for hosts connected to ACCESS SW1 to achieve these goals:

  1. Configure group number 1 using the vitual lP address of 192.168.1.1 1/24.
  2. Configure DISTRO-SW1 as the active router using a priority value of 110 and DISTRO-SW2 as the standby router.
  3. DISTRO-SW1 and DISTRO-SW2 should exchange VRRP hello packets every 15 seconds.

任務:

為ACCESS SW1連接配接的主機,在VLAN100的DISTRO-SW1和DISTRO-SW2之間實作VRRP備份,實作以下目的:

  1. 使用虛拟lP位址192.168.1.1 /24配置組号1。
  2. 将DISTRO-SW1配置為主用路由器,優先級為110将DISTRO-SW2配置為備用路由器。
  3. DISTRO-SW1和DISTRO-SW2應該每隔15秒交換一次VRRP hello封包。
    CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

看題和圖,可得:

第一步:“VRRP”=vrrp,“SW1…SW2…on VLAN 100”=interface vlan 100;

第二步:要求1中“group number 1”=vrrp 1,“vritual ip of 192.168.1.1”=ip 192.168.1.1,合并=vrrp 1 ip 192.168.1.1;

第三步:要求2中“SW1… priority value of 110”=SW1:vrrp 1 priority 110;

第四步:要求3中“SW1…SW2…VRRP hello packets every 15 seconds”=SW1,SW2:vrrp 1 hello adver 15;

最後,不要忘記end,wr

驗證,show vrrp,SW1是master,SW2是backup,還有個15s。

看題和圖,可得:

第一步:題目第一句表明需要解決的問題:在int vlan 100裡配置HSRP/VRRP;

第二步:要求1,字面意思表明:HSRP/VRRP的組名為1,vip為192.168.1.1;可得指令:SW1&2:standby/vrrp 1 ip 192.168.1.1;

第三步:要求2, 字面意思表明:SW1權限是110,作為active,SW2作為standby,可得指令:SW1:standby/vrrp 1 priority 110

第四步:要求3,HSRP題的字面意思表明:SW1挂,SW2上,即要搶占,可得指令:SW1&2:standby 1 preempt;VRRP題的字面意思表明:SW1&2每隔15秒交換一次VRRP hello封包,可得指令:SW1&SW2:vrrp 1 times advertise 15

第五步:看圖,有涉及“interface VLAN100”,不會無緣故注明,看圖可得:VLAN 100是ACCESS-SW1和DISTRO-SW1&2互聯,是以指令一步,是在int vlan 100内配置HSRP/VRRP相關指令;

最後不要忘記,end,wr

驗證,由要求3可得,VRRP的SW1&SW2:show vrrp,可看到SW1是master,SW2是backup,廣告間隔是15s。

Answer:

DISTRO-Sw2:

enable

conf t

int vlan 100

vrrp 1 ip 192.168.1.1

vrrp 1 times advertise 15

end

wr

DISTRO-SW1:

enable

conf t

int vlan 100

vrrp 1 ip 192.168.1.1

vrrp 1 priority 110

vrrp 1 times advertise 15

end

wr

檢查結果:

DISTRO-SW1 and DISTRO-sW2: Verify

show vrrp

check State DISTRO-SW1 is Master, DISTRO-SW2 is Backup.and Advertisement interval is 15 sec

DISTRO-SW1和DISTRO-SW2:校驗

顯示vrrp

check State DISTRO-SW1為Master, DISTRO-SW2為Backup。廣告間隔為15秒

CCIE 350-401-實驗全實驗

VRRP(hello packet=times advertise)

CCIE 350-401-實驗全實驗

看題和圖,可得:

第一步:“VRRP”=vrrp,“SW1…SW2…on VLAN 100”=interface vlan 100;

第二步:要求1中“group number 200”=vrrp 200,“vritual ip of 192.168.1.200”=ip 192.168.1.200,合并=vrrp 200 ip 192.168.1.200;

第三步:要求2中“SW1… priority value of 200”=SW1:vrrp 200 priority 200;

第四步:要求3中“SW1…SW2…VRRP hello packets every 20 seconds”=SW1,SW2:vrrp 1 hello adver 20;

最後,不要忘記end,wr

驗證,show vrrp,SW1是master,SW2是backup,還有個20s。

看題和圖,可得:

第一步:題目第一句表明需要解決的問題:在int vlan 100裡配置HSRP/VRRP;

第二步:要求1,字面意思表明:HSRP/VRRP的組名為200,vip為192.168.1.200;可得指令:SW1&2:standby/vrrp 200 ip 192.168.1.200;

第三步:要求2, 字面意思表明:SW1權限是200,作為active,SW2作為standby,可得指令:SW1:standby/vrrp 200 priority 200

第四步:要求3,HSRP題的字面意思表明:SW1挂,SW2上,即要搶占,可得指令:SW1&2:standby 200 preempt;VRRP題的字面意思表明:SW1&2每隔15秒交換一次VRRP hello封包,可得指令:SW1&SW2:vrrp 200 times advertise 15

第五步:看圖,有涉及“interface VLAN100”,不會無緣故注明,看圖可得:VLAN 100是ACCESS-SW1和DISTRO-SW1&2互聯,是以指令一步,是在int vlan 100内配置HSRP/VRRP相關指令;

最後不要忘記,end,wr

驗證,由要求3可得,VRRP的SW1&SW2:show vrrp,可看到SW1是master,SW2是backup,廣告間隔是15s。

CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

HSRP(preempt)

This is a lab item in which tasks will be performed on virtual devices.

  • Refer to the Tasks tab to view the tasks for this lab item.
  • Refer to the Topology tab to access the device console(s) and perform the tasks.
  • console access is available for all required devices by clicking the device icon or using the tab(s) above the console window.
  • All necessary preconfigurations have been applied.
  • Do not change the enable password or hostname for any device.Save your configurations to NVRAM before moving to the next item.
  • Click Next at the bottom of the screen to submit this lab and move to the next question.
  • When Next is clicked, the lab closes and cannot be reopened.

這是一個實驗項目,任務将在虛拟裝置上執行。

  • 參考任務頁籤檢視這個實驗項目的任務。
  • 通過“拓撲”頁簽進入裝置控制台執行任務。
  • 通過單擊裝置圖示或使用控制台視窗上方的頁籤,所有必需的裝置都可以通路控制台。
  • 已應用所有必要的預配置。
  • 禁止修改任何裝置的啟用密碼和主機名。在進入下一項之前,将配置儲存到NVRAM。
  • 單擊螢幕底部的“下一步”送出該實驗并移動到下一個問題。
  • 單擊“下一步”,實驗室關閉,不能重新打開。
    CCIE 350-401-實驗全實驗
    CCIE 350-401-實驗全實驗

    看題和圖,可得:

    第一步:“HSRP”=standby,“SW1…SW2…on VLAN 100”=interface vlan 100;

    第二步:要求1中“group number 1”=standby 1,“vritual ip of 192.168.1.”=ip 192.168.1.1,合并=standby 1 ip 192.168.1.1;

    第三步:要求2中“SW1… priority value of 110”=SW1:standby 1 priority 110;

    第四步:要求3中“SW2 active when SW1 down,SW1 recover,SW1 active”=SW1,SW2:standby 1 preempt;

    最後,不要忘記end,wr

    驗證,show standby,SW1是active,SW2是standby。

    CCIE 350-401-實驗全實驗

看題和圖,可得:

第一步:題目第一句表明需要解決的問題:在int vlan 100配置HSRP/VRRP;

第二步:要求1,字面意思表明:HSRP/VRRP的組名為1,vip為192.168.1.1;可得指令:SW1&2:standby/vrrp 1 ip 192.168.1.1;

第三步:要求2, 字面意思表明:SW1權限是110,作為active,SW2作為standby,可得指令:SW1:standby/vrrp 1 priority 110

第四步:要求3,HSRP題的字面意思表明:SW1挂,SW2上,即要搶占,可得指令:SW1&2:standby 1 preempt;VRRP題的字面意思表明:SW1&2每隔15秒交換一次VRRP hello封包,可得指令:SW1&SW2:vrrp 1 times advertise 15

最後不要忘記,end,wr

驗證,由要求3可得,HSRP的SW1&SW2:show standby,可看到SW1是active,SW2是standby,當SW1的E0/1關閉時,show standby可看到SW1是standby,SW2是active;VRRP的SW1&SW2:show vrrp,可看到SW1是master,SW2是backup,廣告間隔是15s。

Tasks:

Configure HSRP between DISTRO-SW1 and DISTRO-SW2 on VLAN100 for hosts connected to ACCESS SW1 to achieve these goals:

  1. Configure group number 1 using the virtual lP address of 192.168.1.1/24.
  2. Configure DISTRO-SW1 as the active router using a priority value of 110 and DISTRO-SW2 as the standby router.
  3. Ensure that DISTRO-SW2 will take over the active role when DISTRO-SW1 goes down, and when DISTRO-SW1 recovers, it automatically resumes the active role.

任務:

為ACCESS SW1連接配接的主機在VLAN100的DISTRO-SW1和DISTRO-SW2之間配置HSRP,實作以下目的:

  1. 使用192.168.1.1/24的虛拟lP位址配置組号1。
  2. 将DISTRO-SW1配置為主用路由器,優先級為110,将DISTRO-SW2配置為備用路由器。
  3. 確定當DISTRO-SW1當機時,DISTRO-SW2将接管主用角色,當DISTRO-SW1恢複時,它将自動恢複為主用角色
    CCIE 350-401-實驗全實驗
    CCIE 350-401-實驗全實驗

Answer:

DISTRO-SW1:

enable

conf t

int vlan 100

standby 1 ip 192.168.1.1

standby 1 priority 110

standby 1 preempt

end

wr

DISTRO-Sw2:

enable

conf t

int vlan 100

standby 1 ip 192.168.1.1

standby 1 preempt

end

wr

HSRP(preempt)

CCIE 350-401-實驗全實驗

看題和圖,可得:

第一步:“HSRP”=standby,“SW1…SW2…on VLAN 100”=interface vlan 100;

第二步:要求1中“group number 5”=standby 5,“vritual ip of 192.168.1.75”=ip 192.168.1.75,合并=standby 5 ip 192.168.1.75;

第三步:要求2中“SW1… priority value of 105”=SW1:standby 5 priority 105;

第四步:要求3中“SW2 active when SW1 down,SW1 recover,SW1 active”=SW1,SW2:standby 5 preempt;

最後,不要忘記end,wr

驗證,show standby,SW1是active,SW2是standby。

看題和圖,可得:

第一步:題目第一句表明需要解決的問題:在int vlan 100配置HSRP;

第二步:要求1,字面意思表明:HSRP的組名為1/5,vip為192.168.1.1/75;可得指令:SW1&2:standby 1/5 ip 192.168.1.1/75;

第三步:要求2, 字面意思表明:SW1權限是110/105,作為active,SW2作為standby,可得指令:SW1:standby 1/5 priority 110/105;

第四步:要求3,HSRP題的字面意思表明:SW1挂,SW2上,即要搶占,可得指令:SW1&2:standby 1/5 preempt;

最後不要忘記,end,wr

驗證,由要求3可得,HSRP的SW1&SW2:show standby,可看到SW1是active,SW2是standby,當SW1的E0/1關閉時,show standby可看到SW1是standby,SW2是active。

CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

GLBP(delay mimimum)

Tasks:

Implement GLBP between DISTRO-SW1 and DISTRO-SW2 on VLAN I00 for hosts connected to ACCESS SW1 to achieve these goals:

  1. Configure group mumber 30 using the vitual IP address of 192.168.1.254
  2. Configure DISTRO-SW1 as the AVG using a priority of 130
  3. if DISTRO-SW1 suffers a failure and recovers,ensure that is autimatically resumes the AVG role after waiting for a minimm of 35 seconds

    任務:

    為連接配接ACCESS SW1的主機在VLAN I00上實作distribuo -SW1和distribuo - sw2之間的GLBP,以實作以下目标:

  4. 使用虛拟IP位址192.168.1.254配置組号30
  5. 配置DISTRO-SW1為AVG,優先級為130
  6. 如果DISTRO-SW1發生故障并恢複,請確定它至少等待35秒後自動恢複AVG角色
CCIE 350-401-實驗全實驗

看題和圖,可得:

第一步:“GLBP”=glbp,“SW1…SW2…on VLAN 100”=interface vlan 100;

第二步:要求1中“group number 30”=glbp 30,“vritual ip of 192.168.1.254”=ip 192.168.1.254,合并=glbp 30 ip 192.168.1.254;

第三步:要求2中“SW1… priority value of 130”=SW1:glbp 30 priority 130;

第四步:要求3中“SW1…autima resumes”=SW1,SW2:glbp 30 preempt;“wait for a minimum of 35s”=preempt delay minimum 35;【要點:waiting for minimum=delay mimimum】

最後,不要忘記end,wr

驗證,show standby,SW1是active,SW2是standby。

CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

BGP;(多個address-family,隻需neighbor直連不需要掩碼,中間as-override,旁邊allow-in)

CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

看題和圖,可得:

第一步:要求1中“R1,R3…BGP process…site 1 ,site 2”=R1:router bgp 123,address-family ipv4 unicast,neighbor 10.0.0.2 allows-in;R2:router bgp 123,address-family ipv4 unicast,neighbor 192.168.1.2 allows-in【allows-in允許進入,避免環路】

第二步:要求2中“site1 /32 ping 通 site 2的”=驗證,R1的1.1.1.1擴充pingR3的3.3.3.3通

看題和圖,可得:

第一步:題目第一句,表明了問題所在,“R1通路不通R2”

第二步:要求1,表明了隻配置R2,不要配置R1,R3【愛了愛了】,結合第一步,得R2需配置neighbor指令與R1和R3,neighbor 10.0.0.1 as-over,neighbor 192.168.1.3 as-over;要求1,表明了隻配置R1,R3,不要配置R2,R1:neighbor 10.0.0.2 allows-in;R2:neighbor 192.168.1.2 allow-in;

第三步:要求2,表明實驗要達到的目的:R1的1.1.1.1/32可ping通R3的3.3.3.3/32,提示驗證步驟:R3使用擴充ping測試,1.1.1.1 ping通loop 0

第四步:看圖,提示bgp的配置,第一條指令衆所周知是"router bgp 456",要想配置neighbor,需要進到ipv4位址族,即“address-family ipv4 unicast”【容易忘記,更容易忘記unicast】,最後接上,兩條neigbor

最後,不要忘記end,wr

驗證,R3使用擴充ping,1.1.1.1,lo0

CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

Allow in作用官方說明

CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

思科更多指令說明

BGP;(多個address-family,隻需neighbor直連不需要掩碼,中間as-override,旁邊allow-in)

CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

實驗題BGP

This is a lab item in which tasks will be performed on virtual devices.

  • Refer to the Tasks tab to view the tasks for this lab item.
  • Refer to the Topology tab to access the device console(s) and perform the tasks.
  • Console access is available for all required devices by clicking the device iconor using the tab(s) above

    the console window.

  • All necessary preconfigurations have been applied.
  • Do not change the enable password or hostname for any device.
  • Save your configurations to NVRAM before moving to the next item.
  • Click Next at the bottom of the screen to submit this lab and move to the next question.
  • When Next is clicked, the lab closes and cannot be reopened.

這是一個實驗項目,任務将在虛拟裝置上執行。

  • 參考任務頁籤檢視這個實驗項目的任務。
  • 通過“拓撲”頁簽進入裝置控制台執行任務。
  • 通過單擊裝置圖示或使用上面的頁籤,所有必需的裝置都可以通路控制台控制台視窗。
  • 已應用所有必要的預配置。
  • 禁止修改任何裝置的啟用密碼和主機名。
  • 在進入下一項之前,将您的配置儲存到NVRAM。
  • 單擊螢幕底部的“下一步”送出該實驗并移動到下一個問題。
  • 單擊“下一步”,實驗室關閉,不能重新打開。
CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

看題和圖,可得:

第一步:要求1中“R2…BGP process…site 1 site 2”=R2:router bgp 456,address-family ipv4 unicast,neighbor 10.0.0.1 as-override,neighbor 192.168.1.3 as-override;【難點:先有address,才能neighbor,不需要lo1,隻需要as-override】

第二步:要求2中“no…R1 or R3”=0

第三步:要求3中“site 1 /32 ping 通 site 2的”=驗證,R1的1.1.1.1拓展pingR2的3.3.3.3.

看題和圖,可得:

第一步:題目第一句,表明了問題所在,“R1通路不通R2”

第二步:要求1,表明了隻配置R2,不要配置R1,R3【愛了愛了】,結合第一步,得R2需配置neighbor指令與R1和R3,neighbor 10.0.0.1 as-over,neighbor 192.168.1.3 as-over

第三步:要求2,表明實驗要達到的目的:R1的1.1.1.1/32可ping通R3的3.3.3.3/32,提示驗證步驟:R1使用擴充ping測試,3.3.3.3ping通1.1.1.1

第四步:看圖,提示bgp的配置,第一條指令衆所周知是"router bgp 456",要想配置neighbor,需要進到ipv4位址族,即“address-family ipv4 unicast”【容易忘記,更容易忘記unicast】,最後接上,兩條neigbor

最後,不要忘記end,wr

驗證,R3使用擴充ping,1.1.1.1,lo0

Tasks:

BGP connectivity exists between Headquarters and both remote sites, however Remote Site 1 cannot communicate with Remote Site 2.

Configure BGP according to the topology to achieve these goals:

  1. Configure R2 under the BGP process to provide reachability between Remote Site 1 and Remote Site 2.

    No configuration changes are permitted on R1 or R3.

  2. Ensure that the /32 networks at Remote Site 1 and Remote Site 2 can ping each other.

任務:

總部和遠端站點之間存在BGP連接配接,遠端站點1不存在BGP連接配接與遠端站點2通信。

根據拓撲配置BGP,實作以下目的:

  1. 在BGP程序下配置R2,使遠端站點1和遠端站點2之間可達。

    R1或R3上不允許任何配置更改。

  2. 確定“遠端站點1”和“遠端站點2”的“/32”網絡互通。
    CCIE 350-401-實驗全實驗
    CCIE 350-401-實驗全實驗

路由器 BGP < ASnumber>:BGP 自治系統。< ASnumber>是必填參數。可能的值:1 到 4,294,967,295

Address-family ipv4:進入位址族配置模式

Neighbor as-override:為指定的鄰居啟用 BGP 作為覆寫。(邊界網關協定中的 As-Override 支援,作為 BGP 環路防護功能的一部分,如果路由器在自治系統 (AS) 路徑中收到包含路由器的自治系統編号 (ASN) 的 BGP 資料包,則路由器會丢棄該資料包。假設資料包來自路由器,并且已經到達了它的發源地。)

少配置address-family ipv4 unicast,由于預設情況下,不存在BGP ipv4單點傳播位址族,是以也就配置不了neighbor 10.0.0.1

CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

指令解讀參考資料:https://docs.citrix.com/zh-cn/citrix-adc/current-release/networking/ip-routing/configuring-dynamic-routes/configuring-bgp.html

實驗相似解讀參考資料:https://blog.csdn.net/chiyuwei1766/article/details/47659625

Anwer:R2

enable

conf t

router bgp 456

address-family ipv4 unicast

neighbor 10.0.0.1 as-override

neighbor 192.168.1.3 as-override

R3:使用擴充ping測試

Router#ping

Protocol [ip]:

Target lP address: 1.1.1.1

Repeat count [5]:

Datagram size [100]:

Timeout in seconds [2]:

Extended commands [n]: y

Source address or interface; loop 0

!!! -------- is good

答案:R2

啟用

參看t

路由器BGP 456

位址族ipv4單點傳播

鄰居10.0.0.1 as-override

鄰居192.168.1.3 as-override

R3:使用擴充ping測試

路由器#平

協定(ip):

目标lP位址:1.1.1.1

重複計數[5]:

資料報大小[100]:

逾時時間(秒)[2]:

擴充指令[n]: y

源位址或接口;循環0

! !--------很好

OSPF(ip ospf network point-to-point)因為在接口,不需要跟全局那樣

CCIE 350-401-實驗全實驗

看題和圖,可得:

第一步:要求1中“without using network…router ospf”=不要用router ospf 1,network xx,不是不要用到network,還是要有network=ip ospf network;【注意跟area 0不同,沒有ospf 1】

第二步:要求2中“not DR/BDR”=point-to-point

第三步:要求3中“no extra OSPF”=不需要network其他網絡,隻需要point-to-point

第四步:圖中上半部分出現的資訊都跟指令有關,“OSPF Process ID 1”=router ospf 1;“1.1.1.1”=router-ide 1.1.1.1;“Area 0”=int lo 0,ip ospf 1 area 0;“E0/0”=int e0/0,ip ospf 1 area 0,ip ospf network point-to-point。

看題目和圖,【題目給的資訊少,重點看圖,上半圖每個資訊都是指令】

第一步:題目要求1,字面意思是“不要使用router ospf中的network指令”,根據圖,看出是直連,可得涉及point-to-point,

第二步:題目要求2,字面意思是“隻用到一條指令,不進行選舉,沒其他主機路由”:綜合可得“ip osfp network point-to-point”指令;

第三步:看圖,從上到下依次配置,圖中上半部分,都是一句提示一句指令。

上:“OSPF Process IP 1”,得:第一條指令"router ospf 1"和每個接口的“ip ospf 1 xx”;“Area 0”,得:每個接口的“ip ospf 1 area 0”

中:“lo0:1.1.1.1”,得:router-id 1.1.1.1,int lo0,ip ospf 1 area 0

下:“E0/0”,得:int e0/0,ip ospf 1 area 0,ip ospf network point-to-point

最後,不要忘記end,wr

驗證,show ip ospf neighbor,看到neighbor是ok,R1可以ping 2.2.2.2 so lo0通。

Tasks.

Configure OSPF on both routers according to the topology to achieve these goals.

1.Ensure that all networks are advertised between the routers without using the “network” statement under the"router ospf" configuration section.

2.Configure a single command on both routers to ensure.

  • The DR/BDR election does not occur on the link betveen the OSPF neighbors.
  • No extra OSPF host routes are generated.

任務。

在兩台路由器上根據拓撲配置OSPF,實作上述目的。

1.確定所有網絡都在路由器之間釋出,而不使用“router ospf”配置部分下的“network”語句。

2.在兩台路由器上配置一個指令來確定。

  • 在OSPF鄰居之間的鍊路上不進行DR/BDR選舉。
  • 沒有多餘的OSPF主機路由。
    CCIE 350-401-實驗全實驗

    Answer:

    R1:

    enable

    conf t

    router ospf 1router-id 1.1.1.1

    ! int lo o

    ip ospf 1 area 0

    ! interface e0/o

    ip ospf1 area 0

    ip ospf network point-to-point

    !

    end

    wr

    R2:

    enable

    conf t

    !

    router ospf 1

    router-id 2.2.2.2

    ! int lo o

    ip ospf 1 area 0

    ! interface e0/0

    ip ospf 1 area 0

    ip ospf network point-to-point

    !

    end

    wr

    檢查

    R1 and R2: Verify

    show ip ospf neighbor

    see neighbor is FULLI-is ok

    R1:

    ping 2.2.2.2 so lo0

    CCIE 350-401-實驗全實驗

OSPF(ip ospf network point-to-point)因為在接口,不需要跟全局那樣

Configure OSPF on all three routers according to the topology to achieve these goals:

  1. Configure OSPF without using the “network” statement under the "router ospf” configuration section.
  2. Ensure that all networks are advertised between the routers.
  3. Corfigure a single command under each Ethernet interface to prevent OSPF neighbors from participating in a DR/RDR election and ensure that no extra host routes are generated.

    在三台路由器上根據拓撲配置OSPF,實作以下目的:

  4. 在“router OSPF”配置部分中不使用“network”語句配置OSPF。
  5. 確定所有網絡都在路由器之間釋出。
  6. 在每個以太網接口下配置一條指令,防止OSPF鄰居參與DR/RDR選舉,避免産生額外的主機路由。
    CCIE 350-401-實驗全實驗
    CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

看題目和圖,【題目給的資訊少,重點看圖,上半圖每個資訊都是指令】

第一步:題目要求1,字面意思是“不要使用router ospf中的network指令”,根據圖,看出是直連,可得涉及point-to-point,

第二步:題目要求2,字面意思是“隻用到一條指令,不進行選舉,沒其他主機路由”:綜合可得“ip osfp network point-to-point”指令;

第三步:看圖,從上到下依次配置,圖中上半部分,都是一句提示一句指令。

上:“OSPF Process IP 1”,得:第一條指令"router ospf 1"和每個接口的“ip ospf 1 xx”;“Area 0”,得:每個接口的“ip ospf 1 area 0”

中:“lo0:1.1.1.1”,得:router-id 1.1.1.1,int lo0,ip ospf 1 area 0

下:“E0/0”,得:int e0/0,ip ospf 1 area 0,ip ospf network point-to-point

最後,不要忘記end,wr

驗證,show ip ospf neighbor,看到neighbor是ok,R1可以ping 2.2.2.2 so lo0通。

OSPF*(ip ospf message-digest-key 1 md5 ccnp321)

Configure OSPF on all three routers according to the topology diagram to achieve these goals.

  1. Enable OSPF on all interfaces using the network statement and match the network mask of each interface.
  2. Ensure that all networks are advertised between the routers.
  3. Ensure that all routers use OSPF process ID 1 and that the Lo0 interface is used for the router lD.
  4. Configure OSPF MD5 authentication on every physical interface running OSPF using key 1 and the password ccnp321.

在三台路由器上根據拓撲圖配置OSPF,實作上述目的。

  1. 在所有接口上使用network語句使能OSPF,并比對每個接口的網絡掩碼。
  2. 確定所有網絡都在路由器之間釋出。
  3. 確定所有路由器都使用OSPF程序号1,路由器的路由辨別使用Lo0接口。
  4. 在每個運作OSPF的實體接口上配置OSPF MD5認證,密鑰為1,密碼為ccnp321。
CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

看題目和圖,

第一步:要求1中“all interface using the network”=network x.x.x.x area x,“match … mask”=“nework x.x.x.x 0.0.0.0/255 area 1/0/2”

第二步:要求2中“all network are advertised”=R1有2個network,R2有3個network,R3有2個network;

第三步:要求3中“OSPF process ID 1”=router ospf 1;“lo0 is …router ID”=router-id 1.1.1.1/2.2.2.2/3.3.3.3【全局是“router ospf”】

第四步:“on every physical interface”=e0/0-1,“OSPF MD5 authentication"=ip ospf authentication message-digest,“OSPF using key 1 and password ccnp321”=ip ospf message-digest-key 1 md5 ccnp321【MD=message-digest,key和password都是MD的,是以是message-digest-key 1 md5 ccnp321】【在接口中是“ip ospf”,不需要ospf x,因為在接口,不需要跟全局那樣】

最後,不要忘記end,wr

驗證,

看題目和圖,【題目給的資訊少,重點看圖,上半圖每個資訊都是指令】

第一步:題目要求1,字面意思是“不要使用router ospf中的network指令”,根據圖,看出是直連,可得涉及point-to-point;題目要求1,字面意思是“要使用network指令和反掩碼比對每個接口”,得:network 1.1.1.1 0.0.0.0 area 1;network 10.0.0.0 0.0.0.255 area 0;

第二步:題目要求2,字面意思是“隻用到一條指令,不進行選舉,沒其他主機路由”:綜合可得“ip osfp network point-to-point”指令;題目要求2,字面意思是“釋出所有網絡”,仍是提示“network”要全,即:R1有2個“network”,R2有3個“network”,R3有2個“network”;

第三步:看圖,從上到下依次配置,圖中上半部分,都是一句提示一句指令;

上:“OSPF Process IP 1”,得:第一條指令"router ospf 1"和每個接口的“ip ospf 1 xx”;“Area 0”,得:每個接口的“ip ospf 1 area 0”

中:“lo0:1.1.1.1”,得:router-id 1.1.1.1,int lo0,ip ospf 1 area 0

下:“E0/0”,得:int e0/0,ip ospf 1 area 0,ip ospf network point-to-point

/題目要求3,字面意思是“ospf程序号是1,路由辨別是lo0”,得:第一二指令為:router ospf 1,router-id 1.1.1.1;

第四步:

最後,不要忘記end,wr

驗證,show ip ospf neighbor,看到neighbor是ok,R1可以ping 2.2.2.2 so lo0通。

STP

Tasks:

The operations team started configuring network devices for a new site.Complete the configurations to achieve these goals.

  1. Ensure that port channel Po1 between DISTRO-SW01 and DISTRO-SW02 is operational using the LACP protocol.Configuration changes for this task must be made on DISTRO-SW01
  2. Ensure that taffi on VLAN 10 is carried as untagged taffic between DISTRO-SW01 and DISTRO-SW02
  3. Complete the Rapid-PVST+ configuration on DISTRO-sW2 by ensuring it is the secondary root switch for all VLANs in the range of 1 to 1005.

任務:

操作團隊開始為一個新的站點配置網絡裝置。完成配置以實作這些目标。

  1. 確定DISTRO-SW01和DISTRO-SW02之間的端口通道Po1通過LACP協定正常工作。必須在DISTRO-SW01上更改此任務的配置。
  2. 確定VLAN 10上的taffi在DISTRO-SW01和DISTRO-SW02之間作為無标記的流量進行傳輸。
  3. 在DISTRO-SW2上完成Rapid-PVST+配置,確定它是1到1005範圍内所有vlan的備用根交換機。
CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

看題和圖,可得:

第一步:要求1結和圖,表明在DISTRO-SW01的Po1上配置LACP,即SW01:int range e0/2-3(先實體接口),channel-group 1 mode active;【channel-group難想到】

第二步:要求2,表明在DISTRO-SW01&SW02上配置vlan 10為untaggled,即SW01&SW02:int po1(後虛拟接口),switchport trunk native vlan 10;【switchport trunk難想到】

第三步:要求3,表明在DISTRO-SW02上配置ST(spanning-tree)1-1005vlan的secondary root sw,即SW02:spanning-tree vlan 1-1005 root secondary

最後,不要忘記end,wr

驗證,兩個重要名額,要求2的vlan10為native,使用show interface trunk,可得po1為trunk,natvie vlan是10;要求3的secondary root,使用show spanning-tree vlan 1,可看到SW01是root,SW02是secondary。

CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

Answer:

DISTRO-SW01:

enable

conf t

interface range e0/2-3

channel-group 1 mode active

! interface po 1

switchport trunk native vlan 10

end

wr

DISTRO-Sw02:

enable

conf t

interface po 1

switchport trunk native vlan 10

!

spanning-tree vlan 1-1005 root secondary

!

end

wr

DISTRO-SW1 and DISTRO-SW2 : verify

show interface trunk

check po1 is a trunk, and native vlanis 10

DISTRO-SW1 and DISTRO-sw2: Verify

show spanning-tree vlan 1

check DISTRO-sw01 is root, and DISTROSW02 is secondary

DISTRO-SW1和DISTRO-SW2:校驗

顯示接口中繼

檢查po1為trunk,本地vlan為10

DISTRO-SW1和DISTRO-sw2:校驗

顯示生成樹vlan 1

check DISTRO-sw01是根目錄,DISTROSW02是副目錄

CCIE 350-401-實驗全實驗

EEM(出現過)

This is a lab item in which tasks will be performed on virtual devices.

  • Refer to the Tasks tab to view the tasks for this lab item.
  • Refer to the Topology tab to access the device console(s) and perform the tasks.
  • console access is available for all required devices by clicking the device iconor using the tab(s) above the console window.
  • All necessary preconfigurations have been applied.
  • Do not change the enable password or hostname for any device.Save your configurations to NVRAM before moving to the next item.
  • Click Next at the bottom of the screen to submit this lab and move to the next question.
  • When Next is clicked, the lab closes and cannot be reopened.

這是一個實驗項目,任務将在虛拟裝置上執行。

  • 參考任務頁籤檢視這個實驗項目的任務。
  • 通過“拓撲”頁簽進入裝置控制台執行任務。
  • 通過單擊裝置圖示或使用控制台視窗上方的頁籤,所有必需的裝置都可以通路控制台。
  • 已應用所有必要的預配置。
  • 禁止修改任何裝置的啟用密碼和主機名。在進入下一項之前,将配置儲存到NVRAM。
  • 單擊螢幕底部的“下一步”送出該實驗并移動到下一個問題。
  • 單擊“下一步”,實驗室關閉,不能重新打開。
CCIE 350-401-實驗全實驗

Tasks:

Configure an EEM applet on LAB-RTR-01 that will automatically re-enable interface Loopback0 if it is administratively shut down.

在LAB-RTR-01上配置一個EEM小程式,如果接口Loopback0被管理者關閉,它将自動重新啟用。

CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

看題目,

第一步:“EEM applet”提示指令event manager applet xx,xx題目也有提示“re-enable interface loopback0”,是以得關鍵指令:event manage applet ReEanbleLoopback0;

第二步:“atumatically re-enable int lo0 if it is adminstratively shutdown”,即當lo0人為關閉時,自動重新開機,可以根據人為關閉端口時的日志進行輸入指令的啟動步,得關鍵指令:event syslog pattern “複制手動關閉接口時的日志”

第三步:定義自動輸入的指令,無非就是開啟接口的指令,從enable模式開始輸入:enable;conf t;int lo0;no shutdown;就是需要加字首,讓他自動輸入,action x.0 cli command "xx"可以幫助。【action動作,x.0第x個,cli指令行界面,command指令,即第x個動作是指令行界面輸入指令】

驗證,debug event manger cli【重點是指令cli,是以是debug eem的cli】

CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

ANSWERS:

LAB-RTR-01>enable (如果有密碼預設cisco)

LAB-RTR-O1#config t

LAB-RTR-O1(config)#interface loopback 0

LAB-RTR-O1(config-if)#shutdown

(此處會出現syslog: Interface Loopback0, changed state to administrativelydown。複制備用)

LAB-RTR-O1(config-if)#no shut

LAB-RTR-O1(config-if)#exit

LAB-RTR-O1(config)#event manager applet ReEnableLoopback0【事件管理器小程式 ReEnableLoopback0】

LAB-RTR-O1(config-applet)#event syslog pattern “Interface Loopback0,changed state to administratively down”(黏貼syslog)【事件syslog模式為“複制日志内容”】

LAB-RTR-O1(config-applet)#action 1.0 cli command “enable”

LAB-RTR-O1(config-applet)#action 2.0 cli command “conf t”

LAB-RTR-O1(config-applet)#action 3.0 cli command “interface loopback 0”

LAB-RTR-O1(config-applet)#action 4.0 cli command “no shutdown”

LAB-RTR-O1(config-applet)#end

LAB-RTR-O11#wr

驗證:

debug event manger cli

CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

CISCO官方資料:https://www.cisco.com/c/zh_cn/support/docs/ios-nx-os-software/ios-embedded-event-manager-eem/116176-technote-eemscripts-00.html

CCIE 350-401-實驗全實驗
CCIE 350-401-實驗全實驗

考題類似分析:https://blog.csdn.net/qinshangwy/article/details/104823830

CCIE 350-401-實驗全實驗

繼續閱讀