Showing posts with label Cisco. Show all posts
Showing posts with label Cisco. Show all posts

Tuesday, October 30, 2012

How to reset Cisco configuration



Cat2950# write erase
Erasing the nvram filesystem will remove all files! Continue? [confirm]y[OK]
Erase of nvram: complete
Cat2950#
Cat2950# reload

System configuration has been modified. Save? [yes/no]: n    

!--- Do not save the configuration at this prompt. Otherwise, the switch
!--- reloads with the current running configuration and does not reset to default.

Proceed with reload? [confirm]y                              

2w0d: %SYS-5-RELOAD: Reload requested

C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 18:57 by antonino
WS-C2950G-12-EI starting...

source: http://www.cisco.com/en/US/products/hw/switches/ps607/products_tech_note09186a00800c4546.shtml

Thursday, April 8, 2010

Linux to Cisco console via USB

I've been moving to Ubuntu linux for a while on my daily work. Therefore I have to find a way of using my Ubuntu to do whatever I used to do with Vista.
Today I've just managed to connect my Ubuntu to Cisco console via USB. (note: I'm using USB-to-serial converter).

Here are the steps of make it works:
1. check what is the name of the USB tty
$ dmesg | grep ttyUSB
[ 4272.667300] usb 2-1: pl2303 converter now attached to ttyUSB0

2. Configure the mincom to connect to the port
$ minicom -s

3. Configure the setting below
speed = 9600
parity = none
stop bit = 1
serial = ttyUSB0

4. save setup as dfl
5. exit from mincom
5. start minicom
$ minicom

you should be able to see the Cisco console right now.

Sunday, December 28, 2008

MPLS VPN

MPLS VPN is a solution to solve duplicate customer address range in the provider routing table. By having this solution, a service provider will be able to provide a connectivity for several customers which are connected each other with privete IP(s).

Data plane on this solution is a bit different with MPLS unicast. The PE (provider edge) has another table called VRF (Virtual Routing and Forwarding). The PE also add two labels (instead of one label) into the header. The outer label is being used to deliver the packet to the next router, while the inner label is being used to identify which VRF is related to the packet.

One of the challange to implement VPN is overlapping IP address. This problem is solved by using RD (route distinguisher) by taking advantage of MP-BGP. The RD will add 64-bit RD to the 32-bit IP-v4  prefix. Then MPLS will your RT (route target) to decide which packet is correlated to which VRF.

Thursday, December 25, 2008

MPLS Unicast IP

MPLS is a protocol that forward packet based on Label instead of IP address. There are several MPLS application, and one of them is MPLS Unicast IP. A router with MPLS Unicast IP is actually forwarding a packet to the same path as a router with IP routing. The difference is only that the MPLS router forwards the packet based on Label. Then why it is important to know what MPLS Unicast IP is? It is important since many of the application is using MPLS unicast IP forwarding as part of the MPLS network.

MPLS has something called Control Plane and Data Plane. The Data Plane are the data structured used by the MPLS in operation.  FIB, LFIB, LIB are the tables that we are talking about. FIB contains information to map IP address and network interface of where a packet destined to an IP address will be forwarded. LFIB contains information to map label and network interface of where a packet with a label will be forwarded. And the LIB is actualy a library of LFIB, which map all labels and ports including the ones which are not currently being used to forward packet. LIB contains only the best map, so that there is only network interface mapped to a label on it. 

Now, how the LIB feeds the LFIB and FIB? 
In simple words, the MPLS routers distribute routing information using EIGRP, OSPF or other routing procotol. From this protocol, the MPLS router will know where is the best route to delivere a packet. The router will pick up the best route, find the related label on the LIB and then update the LFIB.


Friday, October 24, 2008

Line is up, Protocol is Down

I've got several questions from some friends of what it means by the status when it shows "Line is up, Protocol is Down". From google, I found two websites explaining about the meaning of the statis, i,e:

Basically, this status will be appear when one of the conditions below met:
  • Local or remote router misconfigured
  • Keep-alives not being sent by remote router
  • Leased-line or other carrier service problems, such as noisy lines or faulty switch
  • Timing problem on cable, possibly caused by the CSU/DSU not being set correctly.
  • Failed local or remote CSU/DSU.
  • Router failure.

Sunday, September 16, 2007

First post while testing

This is my first post. I'm trying to see if it is possible to create posting categories on this blog.