Archive for the ‘Generic IOS’ Category

BGP

Posted: November 26, 2013 in Generic IOS, Uncategorized

 

ScreenClip


Router1(config-router)#do sh ip int br
FastEthernet0/0 136.1.13.1
Loopback0 150.1.1.1

Router1(config)#router bgp 11
Router1(config-router)#neighbor 136.1.23.2 remote-as 22
Router1(config-router)#neighbor 136.1.23.2 ttl-security hops 2
Router1(config-router)#network 150.1.1.1 mask 255.255.255.255
Router1(config-router)#exit

router bgp 11
no synchronization
bgp log-neighbor-changes
network 150.1.1.1 mask 255.255.255.255
neighbor 136.1.23.2 remote-as 22
neighbor 136.1.23.2 ttl-security hops 2
no auto-summary
!
Router2(config)#router bgp 22
Router2(config-router)#neighbor 136.1.13.1 remote-as 11
Router2(config-router)#neighbor 136.1.13.1 ttl-security hops 2
Router2(config-router)#network 150.1.2.2 mask 255.255.255.255
Router2(config-router)#exit

router bgp 22
no synchronization
bgp log-neighbor-changes
network 150.1.2.2 mask 255.255.255.255
neighbor 136.1.13.1 remote-as 11
neighbor 136.1.13.1 ttl-security hops 2
no auto-summary

Router2#sh ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 136.1.23.2
Loopback0 150.1.2.2

Router2#sh ip bgp summary
BGP router identifier 150.1.2.2, local AS number 22
BGP table version is 2, main routing table version 2
1 network entries using 120 bytes of memory
1 path entries using 52 bytes of memory
1/1 BGP path/bestpath attribute entries using 124 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 296 total bytes of memory
BGP activity 1/0 prefixes, 1/0 paths, scan interval 60 secs

Neighbor    V   AS    MsgRcvd     MsgSent     TblVer    InQ    OutQ   Up/Down State/PfxRcd
136.1.13.1   4   11       0                   0                   1              0        0              never      Idle

Aliases:
srb – Show Running-Config | Begin
sre – Show Running-Config | Exclude
sri – Show Running-Config | Include
srint – Show Running-Config Interface
s – show running-configuration
c – configure terminal sir – show ip route
i – show ip interface brief
pvc – show frame-relay pvc
dwn – show frame-relay map | include down
b – router bgp 1234
ns – no shutdown

Created with:

Router(config)#alias exec srb show running-config | begin
Router(config)#alias exec sre show running-config | exclude
Router(config)#alias exec sri show running-config | include
Router(config)#alias exec srint show running-config interface
Router(config)#alias exec s sh run
Router(config)#alias exec c conf t
Router(config)#alias exec sir sh ip ro
Router(config)#alias exec i sh ip int brie
Router(config)#alias exec dwn sh fram map | inc down
Router(config)#alias configure b router bgp 1234
Router(config)#alias interface ns no shutdown

!- Alias is a Global Configuration command. To use it, enter the alias command and identify which privilege level you want to specify the alias for. Here are some examples:

Use “alias exec” for Privileged Mode (any command you use at the router# prompt).
Use “alias configure” for Global Configuration Mode (any command you use at the router(config)# prompt).
Use “alias interface” for Interface Configuration Mode (any command you use at the router(config-if)# prompt).

After specifying the privilege level, enter the alias you want to create and the command you want it to stand for. You can specify parameters for a command after entering the alias.

For example, to use the shortcut for the show running-config interface command —srint— you can specify the interface for which you want to view configuration information after that command. Here’s an example:

#srint fa0/0

Default Cisco IOS aliases:

p stands for ping.
h stands for help.
lo stands for logout.
u and un stand for undebug.
w stands for where.

You can view these aliases by using the “show alias” command

########################################################################