Pages

Monday, March 10, 2014

My Cisco IOU Racks - from flyxj IOUv3

My Cisco IOU Racks:
- from flyxj

Vmware configuration:



I have modified Interface IP to match my local configuration:
Root password is flyxj.cn
Change IOUv3 interface ip command:
root@flyxj:~/LAB# ifconfig eth0 192.168.80.160




This is topology looks like. Totally there are six routers and four switches. Good enough to finish most routing / switching lab.

Enabled R1 and R2. Now it shows green in the topology.

root@flyxj:~/LAB# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:29:df:93:07
          inet addr:192.168.80.159  Bcast:192.168.80.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fedf:9307/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:52 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5397 (5.2 KiB)  TX bytes:908 (908.0 B)
          Interrupt:19 Base address:0x2000

eth1      Link encap:Ethernet  HWaddr 00:0c:29:df:93:11
          inet addr:10.10.10.160  Bcast:10.10.10.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fedf:9311/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:141 errors:0 dropped:0 overruns:0 frame:0
          TX packets:95 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13924 (13.5 KiB)  TX bytes:12882 (12.5 KiB)
          Interrupt:16 Base address:0x2080

eth2      Link encap:Ethernet  HWaddr 00:0c:29:df:93:1b
          inet addr:192.168.20.160  Bcast:192.168.20.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fedf:931b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:44 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4843 (4.7 KiB)  TX bytes:468 (468.0 B)
          Interrupt:17 Base address:0x2400

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2014 (1.9 KiB)  TX bytes:2014 (1.9 KiB)


Using Telnet access 10 devices with port from 2001 to 2010. Also IOU3 itself support ssh access.

Enjoying.....

File Copy Between Two Juniper SRX Cluster Members

I have two SRX Cluster Members and managed from remotely. Each time when transferring package file remotely it will take several hours for 140M new junos file.

File copy command can copy file between routing engines but looks does not work well on SRX Cluster.

I tried to login into routing engine re0 or re1 on SRX. It is always in same routing engine. But with node 0 and node 1, it works well.


root@fw-1% cli
{primary:node0}
root@fw-1> 



root@fw-1% request routing-engine login re0  
root@fw-1%

root@fw-1% request routing-engine login re1
root@fw-1%


root@fw-1> request routing-engine login node 1 

--- JUNOS 11.4R7.5 built 2013-03-01 11:40:03 UTC



root@fw-2> file copy /var/tmp/junos10.3.tgz re1:/var/tmp/junos10.3.tgz
re1: No route to host
re1: No route to host
error: put-file failed
error: could not send local copy of file

root@fw-2> file copy /var/tmp/junos10.3.tgz node0:/var/tmp/junos10.3.tgz
ssh: Could not resolve hostname node0: hostname nor servname provided, or not known
lost connection
error: put-file failed
error: could not send local copy of file

After a couple of times try, I found a way to use fxp0.0 interface ip to do file transferring:
  file copy /var/tmp/junos10.3.tgz 10.2.8.4:/var/tmp/junos10.3.tgz


and the speed is 2.2MB/s. pretty nice. And file transferring can be done in 1 minutes.

Thursday, March 6, 2014

Juniper NSM Schema Upgrade Failed


My Juniper NSM version is 2012.1R6.
Tried to upgrade Juniper NSM Schema online from current 280 to latest 293, but got following failed message:
Error Code: 

Error Text:
   Schema Download Failed.

Error Details:
   No such file or directory
svn: Can't open file '/usr/netscreen/GuiSvr/var/dmi-schema-stage/nsm/dmi/junos-es/releases/12.1R5.5/.svn/text-base/config.xsd.svn-base': No such file or directory

Basically this NSM will have to manually upgrade schema, online is not working. Here are steps for how to do it:


Note: Technote ID:TN86 -NSM & Junos Compatibility Matrix, will be needed to download latest Schema from Schema Offline Download Links.


Thursday, February 27, 2014

Excel Formula : Convert a text to Number

Got a Excel file from other resource witch Column A is set as text. At the tail and start of number there are some spaces filled in, for example cell A1 is '  4 '.

My challenge is to convert whole column to numbers which can be used to do sum or other math calculation.


With some research, I constructed this formula for a new column :
=VALUE(TRIM(CLEAN(SUBSTITUTE(A1,CHAR(160)," "))))

it perfectly resolved this challenge as you can see from following screen shot.

Note: trim will not work with the only space cell. Thanks reply from Hari Krishna.

Friday, February 21, 2014

Checkpoint SmartDashboard Error - No Rule Bases Exist for the Policy Package


Got this issue in the morning. Searched the Checkpoint Support Site and found sk72440


CAUSE
$FWDIR/conf/applications.C* and $FWDIR/conf/CPMILinks* files have become corrupted on Management Server / Multi-Domain CMA.
SOLUTION
To resolve this issue, remove the $FWDIR/conf/applications.C* and $FWDIR/conf/CPMILinksMgr.* files from the Management Server.


On Management Server: 
  1. Stop Check Point services:

    [Expert@HostName]# cpstop
  2. Go to $FWDIR/conf/ directory and remove applications.C* and CPMILinks* files:

    [Expert@HostName]# cd $FWDIR/conf/
    [Expert@HostName]# mkdir backup_cache
    [Expert@HostName]# mv $FWDIR/conf/applications.C* $FWDIR/conf/backup_cache/
    [Expert@HostName]# mv $FWDIR/conf/CPMILinks* $FWDIR/conf/backup_cache/
  3. Start Check Point services:

    [Expert@HostName]# cpstart
  4. Connect with SmartDashboard to Management Server.

Notes:
  • $FWDIR/conf/applications.C and $FWDIR/conf/CPMILinksMgr.db will be created again automatically.
  • The '$FWDIR/conf/backup_cache' directory can be removed after the solution is verified.