Archive for July 2015
Configure Terminal Server
1. Configure an IP address on the ethernet interface
cisco(config)# int fa0/0
cisco(config-if)# ip add 192.168.1.50 255.255.255.0
cisco(config-if)# no shut
2. Create a loopback interface
cisco(config)# int lo0
cisco(config-if)# ip add 188.8.131.52 255.0.0.0
3. Configure the line based on the “show line” output.
* If enabled, the port will be accessible through the network on TCP port 20xx where xx is the TTY of the port on the router
cisco(config)# line 1 16
cisco(config-line)# no exec //unwanted signals from the attached device do not launch.
cisco(config-line)# exec-timeout 0 0 //disable the line timeout period
cisco(config-line)# logging synchronous
cisco(config-line)# transport input all
4. Configure default route
cisco(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.1
cisco(config)# ip default-gateway 192.168.1.1
// ip default-gateway is configured as well in case routing is not enabled. E.g. the terminal server is in ROMMON mode as a result of a bad reboot after power outage.
5. Enable telnet line
cisco(config)# line vty 0 4
cisco(config-line)# password cisco
6. Configure host and line mapping
*e.g. Router A is connected to line 1
cisco(config)# ip host RouterA 2001 184.108.40.206
How to use VPCS with GNS3 in Ubuntu
1.Download vpcs from here VPCS 0.20a
2.Extract and look for vpcs32.linux(for 32-bit systems) and vpcs64.linux (for 64-bit systems)
3.Fire up the Terminal and issue following command
chmod +x vpcs32.linux
4.Then we'll open and configure startup.vpc in gedit
5.Now configure startup.vpc according to your requirement. For example I'll add just two hosts for this tutorial.
Host 1 (VPCS1) with Ip 192.168.1.10/24 and 192.168.1.99 as its gateway.
Host 2 (VPCS2) with Ip 192.168.1.11/24 and 192.168.1.99 as its gateway.
** add # to the rest of the lines.
6.Now lets start VPCS by issuing the following command within the terminal.
7.Use show command to see all the configured ip addresses.
8. We are done with VPCS configuration part, minimize the vpcs window, and lets configure port settings for VPCS on GNS3.
Fire up GNS3 (run gns3 as a root).
9.This is a optional step where I'll be adding symbols to PC hosts.
10.Add computer symbol from 'available symbol' to 'customized nodes'
on name = anyname ie, PC1
on type = Cloud
Do the same for PC2
11.Drag and Drop PC1 and PC2 into the GNS3 Workboard.
Double click on PC1
click on 'C1'
go to tab 'NIO UDP'
go back to Step 7
Check the LPORT and RPORT
12.On Local port add rport value
on Remote port add lport value
on Remote host add 127.0.0.1
Do the same for PC2 (again check the respective ports)
13. Lets add a Ethernet switch to the GNS3 workboard and check the connectivity between the two hosts.
14. Maximize vpcs window and lets ping to each host to check the connectivity between them.
To navigate from 1 pc to another, simply type the number
As you see, a successful connectivity has been established between the two hosts.