Menu Configuration in IOS for SP CCIE Lab
假設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