You are currently viewing archive for November 2013
Posted By Kepler Lam

Once again, if for some reason you cannot bring up the LITO GUI (like my new laptop running Windows 8 – another garb**** after vista!!!), or if you don’t want to use the GUI. There is another way to connect the H3C simulator to the VPC.
What you need to do is to use the UBridge tools to bridge the LITO and the VPC as shown in the diagram below:


You need 2 pairs of UDP port #, 1 pair between LITO and UBridge, the other between VPC and UBridge.
H3C configuration under the “hardcfg.tcl”:

AddEthNew -speed 1000 Level3 -canswitch -slot 0 -subslot 0 -local -lport 19002 -dest -dport 30001

VPC configuration:

VPCS[1]> set lport 20000
VPCS[1]> set rport 30000

While for the UBridge, you need to create 2 legs and put into one group (e.g. use group # 1),

VPC leg: 1#C:E@30000:
H3C Leg: 1#H:E@30001:

so execute:

C:\iptools>ubdg.bat 1#H:E@30001: 1#C:E@30000:

Now your H3C router should be able to reach the VPC.

- Kepler



Posted By Kepler Lam

As discussed in my other Blog entry that the H3C simulator LITO/CEN is not compatible with Winpcap 4.0 (though LITO actually can run without Winpcap, yet it cannot bridge to physical interface). Now with the new release of my open source tool UBridge, you can bridge LITO’s Ethernet interface with the Windows local interface (you still need Winpcap 4.x). Like the following diagram:


Please refer to the iptools project page for free download.

Posted By Kepler Lam

With the new release of my open source tool UBridge (inside the iptools 0.3.0 package), it supports a new feature Ethernet over UDP (EoUDP). What’s the usage of it? There can be many applications, one of them is to use it as a light weight VPN tunnel to bridge the loopback interfaces of your Windows PC to form layer 2 adjacency.
For example. if you have two Windows machine in 2 different subnet, but for some recent, you need to put them into same subnet to do some testing. However, you are not able to change your network setting. Then the UBridge program can help you. You can bridge the MS loopback interfaces of the 2 PCs and put them in same subnet, as shown in the diagram below.


If you are using VMware workstation, another usage is to bridge the VMs inside your Windows PC to the VMs of another PC, like the diagram below:VMBdg
Please visit the project website for detail configuration and download information.

Posted By Kepler Lam

Lito is just the GUI front end generating the configuration files for the CEN simulator. If you have difficulty to use it, why bother about it? You can just directly create the router configuration files. Believe me, you can do it in few minutes.
Under your installation folder, you should able to find a folder “TOP”, where you place the configuration files. You need to create subfolders inside, one for each router you want to create. To make it simple, just illustrate how to create 2 routers with a serial link between them. 


Create 2 folders with name RT1 and RT2 respectively. Actually you just need 2 files inside each folder.
In subfolder RT1, you need to create a batch file with name “setup.bat” which is used to execute the simulator. Just need one line inside:

After that, create another file “hardcfg.tcl” with the content below (which is the router’s physical setting):

SetSelfSlot 0
SetMainSlot 0
SetConsoleCom 2001
SetSimwareInstanceName RT1
SetMemorySize 196
SetWinSockOffset 50
SetMac 00 01
SetBrdType 0 8 -slot 4
AddEthNew -speed 1000 Level3 -canswitch -slot 0 -subslot 0 -local -lport 19001 -dest -dport 0
AddEthNew -speed 1000 Level3 -canswitch -slot 0 -subslot 0 -local -lport 19002 -dest -dport 0
AddEthNew -speed 1000 Level3 -canswitch -slot 0 -subslot 0 -local -lport 19003 -dest -dport 0
AddEthNew -speed 1000 Level3 -canswitch -slot 0 -subslot 0 -local -lport 19004 -dest -dport 0
AddSerial  -slot 1 -local -lport 19005 -dest -dport 19013
AddSerial  -slot 1 -local -lport 19006 -dest -dport 0
AddSerial  -slot 1 -local -lport 19007 -dest -dport 0
AddSerial  -slot 1 -local -lport 19008 -dest -dport 0

Some parameters should be unique per router:
SetConsoleCom <telnet port # for console access>
SetSimwareInstanceName <Router name>
SetMac <byte1> <byte2> - I believe for the generation of the pseudo mac address of Ethernet port.
Now you have 4 serial and 4 Ethernet interface to tailor. As in this example, only the first “AddSerial” entry need to be configured. To emulate connection between routers, it just uses an UDP session (like GNS3). What you need are the local UDP port # (this case 19005) and the remote port # (which is 19013).
After that, go to subfolder RT2. Just copy the setup.bat from folder RT1. Create the hardcfg.tcl as below:
SetSelfSlot 0
SetMainSlot 0
SetConsoleCom 2002
SetSimwareInstanceName RT2
SetMemorySize 196
SetWinSockOffset 100
SetMac 00 02
SetBrdType 0 8 -slot 4
AddEthNew -speed 1000 Level3 -canswitch -slot 0 -subslot 0 -local -lport 19009 -dest -dport 0
AddEthNew -speed 1000 Level3 -canswitch -slot 0 -subslot 0 -local -lport 19010 -dest -dport 0
AddEthNew -speed 1000 Level3 -canswitch -slot 0 -subslot 0 -local -lport 19011 -dest -dport 0
AddEthNew -speed 1000 Level3 -canswitch -slot 0 -subslot 0 -local -lport 19012 -dest -dport 0
AddSerial  -slot 1 -local -lport 19013 -dest -dport 19005
AddSerial  -slot 1 -local -lport 19014 -dest -dport 0
AddSerial  -slot 1 -local -lport 19015 -dest -dport 0
AddSerial  -slot 1 -local -lport 19016 -dest -dport 0

Click the setup.bat to start the routers, telnet to port 2001 and 2002 respectively. That’s it. Simple enough?

Posted By Kepler Lam

Here are some short notes on the using of Lito simulator. Especially for those that can't read Chinese.

As unfortunately, the Lito GUI is developed by some Chinese developer. Honestly speaking, even I can read Chinese, as my Windows code page is using the Chinese of Hong Kong, so I still can't read the options of the UI.

Yet, following is the way that I use this simulator (you may have a better way)

After download and unpack the files, in your installation directory, just click the "lito.exe" to enter the GUI. Highlight the arrow icon on the upper menu, then drag a router on the top icon to the work space as shown below:

You can add 2 routers. Now connect their serial ports: first select the "connect" icon on top, then right click the first router, you should see a list of interfaces below:



Select e.g. s0/1/0, then drag it across to RT2. Right click RT2 and select e.g. S0/1/0 to complete the connection:


After that, power on the router: first select back the arrow on the top menu, then right click the router, you will see pull down menu, the first one is the "power on" option.


Wait for a while, you will see a green dot showing that  the router is running. At the same time, it will generate the configuration of the router. Also power on RT2. Now open a windows explorer to find a folder 'top' under your installation directory. Inside there, 2 folders RT1 and RT2 have been created. Just make a copy of the 'top' folder. (as the UI will delete the folders inside upon exit).


Now, you are safe to power off both routers, by right click them, select the first option in the pull down menu:


Exit the GUI, copy back the subfolders under the "TOP - Copy" back to the "TOP" folder. Then go to the RT1 subfolder inside the top folder. You will find the router configuration filename "hardcfg.tcl", you can open it and explorer some options (will explain in other blog entry).

Finally click the "setup.bat" file to start the router (similar for RT2). Fire a telnet session to port # 2001 to access the RT1 console. Here you go. You don't need the GUI anymore.(Obvious on the top menu, there is a save option and a re-open icon. Unfortunately, I never able to make it work, that's why after generate the configuration of first 2 routers, I just copy the router's folder and change the configuration file to create some more routers)


Hope the above help.



Enlightened by Jesus Christ

Posted By Kepler Lam

歡迎參閱本人在信 仰上的分享

Welcome to visit my page of Christian Life


Posted By Kepler Lam


If you want to test the Cisco router, a well known simulator GNS3 is available. While for the H3C router, another simulator CEN (GUI version is LITO) is available.

However, the CEN requires Winzip 3.0, its not compatible with Winpcap 4.0 (though Lito improve to be able to run without Winpcap 3.0, yet it cannot bridge to physical interface without winpcap 3.0). But dynamips use Winpcap 4.0. i.e. it means you can't connect both together using the physical interface.


So I've created a program that can connect the Router Interface (either serial or Ethernet) of GNS and CEN together.



It’s under the iptools package, click here for detail.




Author: Kepler Lam


 Certified Cisco System Instructor

 Certified H3C Instructor

 Certified Juniper Instructor

 Certified F5 Instructor

 Certified EC-council Instructor

 Servant of the Lord





User Profile
Kepler Lam
Hong Kong


You have 357648 hits.

Latest Comments