Friday, March 20, 2009

Password Recovery in Junos

Juniper M, T, J, EX those type of the router are in FreeBSD style. If you see the router restart from the console, you will see the same message as FreeBSD. And the account managment is the same as FreeBSD.

How to Recovery in Junos ?

When prompted to enter Loader mode hit the bar and you will be sitting at the "loader>" prompt. Enter the following command:
loader> boot -s

1, fsck -y
2, mount -a
3, rm /config/juniper*
4, exit

Thursday, March 19, 2009

200 EUD

http://www.cisco.com/web/europe/cisco-networkers/2009/cisco/index.html

for the 2009 Cisco Networker, cisco offer 200 EUD to access it until January 2010.

default route in BGP

I want to send a default route to the BGP neighbor, what would you do in IOS and Junos ?

In IOS
router bgp 10

neighbor 1.2.3.4 default-originate

In Junos
no,
By default Junos will announceBGP only, anything else will using policy-statement to accomplish. so, you need to create a static route in routing-option. and export the 0/0 route to the neighbor.

That's another different between IOS, Junos

P2MP

I got a question from a europe friend, the question is about multicast in junos "P2MP". The main topology is 4 PE adn running L3 vpn in it. and customer running multicast, so the SP needs to carrier the 2xx.x.x.x data to the remote PE, and forward to the CE. the question is, "whean 2 PE are announcing the same's source groups, if i stop one PE, all rsvp tunnel still up when i stop one source. if disconnect one mulitcast source in Lan client...all tunnels fail's"

It's diferent in IOS & Junos for MDT. The first version of the MDT is PE LSR will encap one ipv4 header with multicast address. the multicast address in ipv4 header is MDT group for the VRF. It's unlike the ipv4 unicast label switch. Years later, Juniper launch the P2MP, RSVP-TE function in Junos. And Cisco also announce the mLDP.

Tuesday, March 17, 2009

interface broadcasts counter on Cisco Serail

One of my friend ask me, what is the interface broadcasts mean on the output from show interface wilt encap fr ??

First at all, I only know it's a broadcastscounter for WAN interface. and Why will it increase ?

R8(config-if)#do sh int s1/0
Serial1/0 is up, line protocol is up
Hardware is M4T
Internet address is 1.1.88.8/24
MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation FRAME-RELAY, crc 16, loopback not set
Keepalive set (10 sec)
Restart-Delay is 0 secs
LMI enq sent 45, LMI stat recvd 46, LMI upd recvd 0, DTE LMI up
LMI enq recvd 0, LMI stat sent 0, LMI upd sent 0
LMI DLCI 1023 LMI type is CISCO frame relay DTE
Broadcast queue 0/64, broadcasts sent/dropped 0/0, interface broadcasts 0
Last input 00:00:02, output 00:00:02, output hang never
Last clearing of "show interface" counters 2w2d
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
46 packets input, 742 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

R8(config-if)#

1, I clear all counter on the interface

R8(config-if)#do clear count s1/0

2, then I repeat ping 1000 times with des ip = 1.1.88.255 (boardcast ip address)

R8(config-if)#do pi 1.1.88.255 re 1000 t 0

Type escape sequence to abort.
Sending 1000, 100-byte ICMP Echos to 1.1.88.255, timeout is 0 seconds:
......................................................................
......................................................................
......................................................................
......................................................................
......................................................................
......................................................................
......................................................................
......................................................................
......................................................................
......................................................................
......................................................................
......................................................................
......................................................................
......................................................................
....................
R8(config-if)#do sh int s1/0
Serial1/0 is up, line protocol is up
Hardware is M4T
Internet address is 1.1.88.8/24
MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation FRAME-RELAY, crc 16, loopback not set
Keepalive set (10 sec)
Restart-Delay is 0 secs
LMI enq sent 2, LMI stat recvd 2, LMI upd recvd 0, DTE LMI up
LMI enq recvd 0, LMI stat sent 0, LMI upd sent 0
LMI DLCI 1023 LMI type is CISCO frame relay DTE
Broadcast queue 0/64, broadcasts sent/dropped 0/0, interface broadcasts 1000
Last input 00:00:03, output 00:00:03, output hang never
Last clearing of "show interface" counters 00:00:18
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
2 packets input, 26 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

R8(config-if)#

that's why the interface broadcast is.

Friday, March 13, 2009

Carrier MPLS ASN in BGP as-path

If you have PE-CE routing as OSPF, you might take a look the as-path in your BGP table.

The topology is

ce1----ospf----pe1-----mp-bgp------pe2----ospf---ce2----eBGP----R3

Any type 5 LSA in ce1 learn from pe1 will be still as external in ce2, No doubt about it. When pe2 redistrbute type 5 LAS from MP-BGP routing table, pe2 will do something extra. The pe2 router add tag in the type 5 LSA, by default the tag is equal to MPLS VPN BGP ASN(RFC 1745) . The cisco.com doc indicate,
"The default value is calculated based on the BGP autonomous system number of the MPLS VPN backbone.
The four highest bits are set to 1101 according to RFC 1745.
The lowest 16 bits map the BGP autonomous system number of the MPLS VPN backbone. "

So, if you see the tag in type 5 LSA, if will apend into BGP as-path. This is because the route was
originated by some other means or IGP. The BGP process in ce2 router will watch the Tag value,
if it's start with 1101 in binary format, it will be copy to the BGP as-path.
If it's not start from 1101 it will not copy into BGP as-path. The format of the Tag is sub-fields as:

First bit as has been generated automatically by an ASBR or not.
Second 2 bits,

the combination are "1000" "1001" "1010" "1011" , The RFC 1745 indicate

OSPF routes with this tag setting SHOULD be exported with the BGP/IDRP attributes,
ORIGIN=, PATH=.

So next time if your MPLS backbone ASN is in the as-path, Watch this out.

Sunday, March 8, 2009

Island shangri-la 50F

This view is from shangri-la 50F. It's great view.