Jaycee's Networking

November 19, 2008

Reset BGP connections

Filed under: BGP, IOS — Tags: , — Jaycee @ 12:17 am

1. Reset BGP connections:

# clear ip bgp *
It impacts all other links as BGP will re-create routing table from scratch as like rebooting the router.

# clear ip bgp A.B.C.D soft out
It makes changes in outbound policy

# clear ip bgp A.B.C.D soft in
It makes changes in inbound policy

http://www.cisco.com/en/US/docs/ios/12_2/iproute/command/reference/1rfbgp1.html#wp1249715

2. Displays neighbor information for all address display BGP and TCP connection information for neighbor sessions:

# show ip bgp neighbors
For BGP, this includes detailed neighbor attribute, capability, path, and prefix information. For TCP, this includes statistics related to BGP neighbor session establishment and maintenance.

# show ip bgp neighbors A.B.C.D advertised-routes
Displays all routes that have been advertised to neighbors.

http://www.cisco.com/en/US/docs/ios/12_2/iproute/command/reference/1rfbgp2.html#wp1174920

3. Display the status of all BGP connections:

# show ip bgp summary

http://www.cisco.com/en/US/docs/ios/12_2/iproute/command/reference/1rfbgp2.html#wp1023214

4. Disable or enable fast external fallover for BGP peering sessions with directly connected external peers. The session is immediately reset if link goes down. Only directly connected peering sessions are supported.

bgp fast-external-fallover

no bgp fast-external-fallover

If BGP fast external fallover is disabled, the BGP routing process will wait until the default hold timer expires (3 keepalives) to reset the peering session.

In the following example, the BGP fast external fallover feature is disabled. If the link through which this session is carried flaps, the connection will not be reset.

Router(config)# router bgp 50000

Router(config-router)# no bgp fast-external-fallover

http://www.cisco.com/en/US/docs/ios/12_2/iproute/command/reference/1rfbgp1.html#wp1018146

Advertisements

November 16, 2008

3750 Stacking Switch

Filed under: Information, IOS, Routing Design — Jaycee @ 5:52 pm
*Stacking – the ability to link together multiple switches to form a single logical switch with a signal management IP.
GBIC (Gigabit Interface Converter)
SFP (Small Form-factor Pluggable)

1. Stacking switches:

a. 3550 requires stacking GBIC to be used in one of the gigabit GBIC slots. It limits the stacking backplane speed to 1 Gbps.

b. 3560 uses a special SFP interconnect cable which occupies one of the fiber uplink ports.

3560 series

c. 3750 incorporates special stacking cables that connect to the back of the switch chassis. This backplane connection is 32 Gbps, so it won’t tie up any of the ports on the front of the switch.

3750 series3750 series

d. interface-type stack-memeber#/module#/port#

Gi3/0/12

stack-member# = 1 for stadalone switch.
module# on 3750 is always 0.

November 5, 2008

Force 10 S50 Basic Configuration

Filed under: Force 10 — Jaycee @ 8:32 am

1. default username/password: admin/[blank]

2. default enable password: [blank]

3. Password recovery:

a. reboot the switch, the following text appears at the console:

Reloading all switches.
Force10 Boot Code…
Version 01.00.26 06/03/2005
Select an option. If no selection in 2 seconds then operational code will start.
1 – Start operational code.
2 – Start Boot Menu.Select (1, 2):2

b. u have 2 seconds to enter 2 at the above text menu. The following menu appears:

Boot Menu Version: 30 Aug 2006
Options available
1 – Start operational code
2 – Change baud rate
3 – Retrieve event log using XMODEM (64KB).
4 – Load new operational code using XMODEM
5 – Display operational code vital product data
6 – Run flash diagnostics
7 – Update boot code
8 – Delete operational code
9 – Reset the system
10 – Restore configuration to factory defaults (delete config files)
11 – Activate Backup Image
[Boot Menu]

c. Select 9 to delete the current configuration, including any admin and enable password.

d. Select 8 to restart the system. When S50 finishes rebooting, you can configure the router
from scratch.

4. set enable password:

a.
Force10(config) #enable passwd
Enter new password:*******
Confirm new password:*******
Password Changed!

or b.
Force10(config)#enable passwd [new password]

5. Create a user and password:

Force10 (Config)#username [new username] passwd [new password]
User login name and password are set.
Force10 (Config)#no username [username]

6. Enable remote access:

a. telnet access:

Force10(config)#ip telnet server enable

b. ssh access:

Force10(config)# ip ssh server enable
Force10(config)# ip ssh timeout 30

7. Create the management ip address:

Force10 (Config)#management route default [gateway]
Force10 (Config)#interface managementethernet
Force10 (Config-if-ma)#ip address [ip address] [subnet]

Force10 #show interface managementethernet
IP Address………………………………. 10.10.1.151
Subnet Mask……………………………… 255.255.255.0
Default Gateway………………………….. 10.10.1.254
Burned In MAC Address…………………….. 00:01:E8:D5:A0:39
Locally Administered MAC Address…………… 00:00:00:00:00:00
MAC Address Type…………………………. Burned In
Network Configuration Protocol Current……… None
Management VLAN ID……………………….. 1
Web Mode………………………………… Disable
Java Mode……………………………….. Disable

8. Create and name a VLAN, then designate the VLAN as management VLAN:

Force10 (Config)#interface vlan 5
Force10 (conf-if-vl-5)#name management_vlan
Force10 (conf-if-vl-5)#tagged 1/0/43
Force10 (conf-if-vl-5)#exit
Force10 (Config)#interface managementethernet
Force10 (Config-if-ma)#vlan participation 5
Force10 (Config-if-ma)#exit
Force10 (Config)#

8. access the range of interfaces:

Force10(Config)#interface range ethernet 1/0/1-1/0/50

9. Connecting to a PC by console cable: a straight-through cable + DB-9 connector.

10. To add an interface to the VLAN, use either the tagged or untagged command.

DVLAN Example Topology

a. Configure switch R4:

R4 (Config)#dvlan-tunnel ethertype vman
!———Access port:———–!
R4 (Config)#interface 1/0/2
R4 (Interface 1/0/2)#no shutdown
R4 (Interface 1/0/2)#mode dvlan-tunnel
R4 (Interface 1/0/2)#exit
!———Trunk port:———-!
R4 (Config)#interface 1/0/3
R4 (Interface 1/0/3)#no shutdown
R4 (Interface 1/0/3)#exit
!——–Participating VLANs———-!
R4 (Config)#interface vlan 2
R4 (Conf-if-vl-2)#untagged 1/0/2
R4 (Conf-if-vl-2)#tagged 1/0/3
R4 (Conf-if-vl-2)#exit
R4 (Config)#interface vlan 3
R4 (Conf-if-vl-3)#tagged 1/0/3
R4 (Conf-if-vl-3)#exit

b. Configure switch R5:

R5 (Config)#dvlan-tunnel ethertype vman
!———Access port:———–!
R5 (Config)#interface 1/0/2
R5 (Interface 1/0/2)#no shutdown
R5 (Interface 1/0/2)#mode dvlan-tunnel
R5 (Interface 1/0/2)#exit
!———Trunk port:———-!
R5 (Config)#interface 1/0/3
R5 (Interface 1/0/3)#no shutdown
R5 (Interface 1/0/3)#exit
!——–Participating VLANs———-!
R5 (Config)#interface vlan 2
R5 (Conf-if-vl-2)#untagged 1/0/2
R5 (Conf-if-vl-2)#tagged 1/0/3
R5 (Conf-if-vl-2)#exit
R5 (Config)#interface vlan 3
R5 (Conf-if-vl-3)#tagged 1/0/3
R5 (Conf-if-vl-3)#exit

c. Configure switch R7:

!———Trunk ports:———-!
R7 (Config)#interface 1/0/2
R7 (Interface 1/0/2)#no shutdown
R7 (Interface 1/0/2)#exit
R7 (Config)#interface 1/0/3
R7 (Interface 1/0/3)#no shutdown
R7 (Interface 1/0/3)#exit
!——–Participating VLAN———-!
R7 (Config)#interface vlan 3
R7 (Conf-if-vl-3)#tagged 1/0/2
R7 (Conf-if-vl-3)#tagged 1/0/3
R7 (Conf-if-vl-3)#exit

11. Configure an SNTP server (max of 3):

Force10 (Config)# sntp server [ip address]

12. Spanning tree:

a. Enable spanning tree globally:

Force10 (Config)# spanning-tree

b. Enable spanning tree on all the ports:

Force10 (Config)# spanning-tree port mode enable all

c. Show spanning tree  summary:

Force10 # show spanning-tree summary
Spanning Tree Adminmode……….. Enabled
Spanning Tree Version…………. IEEE 802.1s
Configuration Name……………. 00-01-E8-D5-A0-F7
Configuration Revision Level…… 0
Configuration Digest Key……….
0xac36177f50283cd4b83821d8ab26de62
Configuration Format Selector….. 0
No MST instances to display.
Force10 #show spanning-tree interface 1/0/1
Hello Time………………………………. 0
Port Mode……………………………….. Enabled
Port Up Time Since Counters Last Cleared……. 0 day 0 hr 19 min 38 sec
STP BPDUs Transmitted…………………….. 2
STP BPDUs Received……………………….. 593

d. Enable spanning tree on an interface:

Force10 (Interface 1/0/1)#spanning-tree port mode enable

13.

Create a free website or blog at WordPress.com.