Menu Configuration in IOS for SP CCIE Lab

最近在看Workbook,真的覺得CCIE Lab走在時代潮流的尖端(因為大部份人都沒有使用這些技巧..),其中有一個很特別的題目,不但要考Menu的設定方式,同時也考到了考生對於這些指令的熟悉程度(每一個option都要執行一個command),個人覺得是一個很適合CCIE Lab的考題方向,設定本身不難但是如果沒有設定過就不容易在考試中靠DocumentCD找到solution,所以我在這邊把sample config列出來供各位參考。

假設ISP ABC要開放VPN帳號連線至PE Router的權限,提供XYZ Site進行遠端troubleshooting。為了方便控管並指導XYZ網管執行相關指令,ABC要在PE Router上設定一個Menu供VPN帳號登入之後會自然呼叫此Menu提供客戶使用。

此Menu提供功能如下:
  • Option 1 should display the IP routing table for VRF XYZ
  • Option 2 should display the BGP table for VRF XYZ
  • Option 3 should display the MPLS forward-table for VRF XYZ
  • Option 4 should display the BGP learned labels for VRF XYZ
  • Option 5 should display exit item out of the command line



username VPN privilege 15 password 0 CISCO
username VPN autocommand menu VPNMENU
!
menu VPNMENU titile #
Menu for MPLS VPN Customer - XYZ Remote Administration
#
menu VPNMENU text 1. View VPN Routing Table
menu VPNMENU command 1. show ip route vrf XYZ
menu VPNMENU text 2. View VPN BGP Table
menu VPNMENU command 2. show ip bgp vpn vrf XYZ
menu VPNMENU text 3. View MPLS Forwarding Table
menu VPNMENU command 3. show mpls forwarding-table vrf XYZ
menu VPNMENU text 4. View BGP MPLS Label Forwarding Table
menu VPNMENU command 4. show ip bgp vpn vrf XYZ labels
menu VPNMENU text 5. Exit
menu VPNMENU command 5. exit
menu VPNMENU single-space
menu VPNMENU prompt #Choose your selection: #
!
line vty 0 4
login local


設定完成之後,從遠端telnet利用VPN帳號登入PE Router,就會自動啟用Menu如下:

Menu for MPLS VPN Remote Administration

1. View VPN Routing Table
2. View VPN BGP Table
3. View MPLS Forwarding Table
4. View BGP MPLS Label Forwarding Table
5. Exit

Choose your selection:

Comments

Popular posts from this blog

L2TPv3 Enables Layer 2 Services for IP Networks

TCP/IP 明確擁塞通知 (ECN)

Q-in-Q(Dot1Q Tunnel) Sample Configuration