Monday, August 18, 2014

Working GNS3 1.0beta2.dev1 on Linux Mint 17 Qiana 64 bit

I have updated my GNS3 installation procedure note located on my other post
http://castroaa.blogspot.com/2014_04_01_archive.html
GNS3 1.0 installation on Ubuntu and other Ubuntu based Linux like Xubuntu, Lubuntu GNS3 installation.

I have tried it today on Linux Mint 17, Qiana 64 bit.

So far I'm not encountering any issues yet, the latest beta release of GNS3 also works fine with Linux Mint 17 64 bit.

Sunday, July 27, 2014

Section 2: IPv4 IGP Protocols (24 Points) of CCIE V5 Routing and Switching Configuration Lab




 Section 2.1: OSPF  No loopback networks should be advertised as host routes. (1 point)


Router1
Router1(config)#router ospf 1
Router1(config-router)#network 1.1.1.0 0.0.0.255 area 0
!--- configures interface serial 1/0 under OSPF area 0.

Router2
Router2(config)#router ospf 1
Router2(config-router)#network 1.1.1.0 0.0.0.255 area 0
!--- configures interface serial 1/0 under OSPF area 0.


Router1(config)#int loopback 0
Router1(config-if)#ip ospf 1 area 0
 !--- configures interface loopback0  under OSPF process id 1 area 0.
Router2(config)#int loopback 0
Router2(config-if)#ip ospf 1 area 0
!--- configures interface loopback 0 under OSPF process id 1 area 0.



Commands  output:
After adding the loopback interface results:

Router1#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, + - replicated route

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        1.1.1.0/24 is directly connected, Serial1/0
L        1.1.1.2/32 is directly connected, Serial1/0
      2.0.0.0/32 is subnetted, 1 subnets
O        2.2.2.2 [110/65] via 1.1.1.1, 00:02:06, Serial1/0
      3.0.0.0/32 is subnetted, 1 subnets
C        3.3.3.3 is directly connected, Loopback0

Router1#show ip ospf interface loopback 0
Loopback0 is up, line protocol is up
  Internet Address 3.3.3.3/32, Area 0
  Process ID 1, Router ID 3.3.3.3, Network Type LOOPBACK, Cost: 1
  Topology-MTID    Cost    Disabled    Shutdown      Topology Name
        0           1         no          no            Base
  Enabled by interface config, including secondary ip addresses
  Loopback interface is treated as a stub Host ----------- interface loopback 0 is advertised as a hosts.

with the ip ospf network point-to-point command result under loopback 0:

Router1#config t
Router1(config)#int loopback 0
Router1(config-if)#ip ospf network point-to-point

Router1#show ip ospf interface loopback 0
Loopback0 is up, line protocol is up
  Internet Address 3.3.3.3/32, Area 0
  Process ID 1, Router ID 3.3.3.3, Network Type POINT_TO_POINT, Cost: 1
  Topology-MTID    Cost    Disabled    Shutdown      Topology Name
        0           1         no          no            Base
  Enabled by interface config, including secondary ip addresses
  Transmit Delay is 1 sec, State POINT_TO_POINT
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    oob-resync timeout 40
  Supports Link-local Signaling (LLS)
  Cisco NSF helper support enabled
  IETF NSF helper support enabled
  Index 2/2, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 0, maximum is 0
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 0, Adjacent neighbor count is 0
  Suppress hello for 0 neighbor(s)

Friday, July 18, 2014

CCIE V5 Configuration Practice Labs 3rd Edition Topology

Here's how the ccie v5 configuration practice lab topology looks on my GNS3 Project. I'm using C7200 IOS image, 3 Quad NICs and 4X3560 physical switches.
And here is the physical topology:

on the switches side:


Friday, June 20, 2014

Configuring Cisco 2509 as an Access Server

Requirements: 2500 Series router with ASYNC 1-8 port and Octal Cable

-Configure a loopback IP Address
-Configure each host mapping: example SW1 is connected to the first cable #1 of 8 using port 2001
-Configure line 1 - 8 ( no exec, transport input telnet)
---------------------------------------------------------------------------------

 Access-2509#show run
Building configuration...
!
interface Loopback0
 ip address 9.9.9.1 255.255.255.255
!
ip host SW1 2001 9.9.9.1
ip host SW2 2002 9.9.9.1
ip host SW4 2004 9.9.9.1
ip host SW3 2003 9.9.9.1
ip classless
!
line 1 8
 no exec
 transport input telnet
!
end
--------------------------------------------------------------------------------

Use the escape sequence Ctrl-Shift-6 then x to exit the current session.

Monday, May 5, 2014

Installing loopback interfaces in Ubuntu

Note: Run all commands as root

apt-get install uml-utilities
modprobe tun


Running this command will install tap0, tap1 and so on..


tunctl 

To configure the loopback ip address/mask:

for tap0:
ifconfig tap0 (ip-address) netmask (mask) up

to test run ifconfig












To remove the configured ip addresses:

ip addr flush tap0


To remove the loopback interfaces:

tunctl -d tap#





Saturday, May 3, 2014

How to setup a PDF Printer in Xubuntu

 
From Ubuntu Software Center, search for preferred PDF printer application. 
I have installed Master PDF Editor (free) Ubuntu.com user login required.
Install Cups PDF package: 
apt-get install cups-pdf
Go to System-----> Administration ----> Printing.
A pdf printer should be available. Try to print any documents and check 
the print out under /home/login-name/PDF/

Monday, April 21, 2014

GNS3 1.0-Alpha2 installation in Ubuntu 14.04 and Lubuntu 13.10 -64 bit editions

Installation guide is available in GNS3.net forum, available on the link below:

http://forum.gns3.net/topic9030.html
http://forum.gns3.net/topic9106.html


The following commands were run while logged in as root#

1. As Ubuntu and Lubuntu latest version default python version is 2.7.6. and GNS3 1.0-Alpha2 required      Python 3.3 or higher. I have searched and found one which works fine, but it is not recommended as other package might not function properly.

 alias python=python3

 type python and hit enter to see the result:
 Python3.4.0 will shown as default.

2. Run and install the following requirements:

apt-get install build-essential libelf-dev uuid-dev libpcap-dev python3-dev python3-pyqt4 python3-setuptools python3-ws4py python3-pip python3-zmq python3-tornado python-netifaces cmake

3.Download, extract and make install the latest dynamips.
    https://github.com/GNS3/dynamips/archive/master.zip

 Downloads # cd dynamips-master/stable
 stable # cmake ..
 stable # make install


     To test dynamips:

     dynamips -H 7200

4.Download and install:

wget -O get-pip.py https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python3 get-pip.py



5.Download, extract and install gns3-server.

https://github.com/GNS3/gns3-server/archive/1.0-alpha2.zip
python3 setup.py install


6. Download, extract and install gns3-gui.

https://github.com/GNS3/gns3-gui/archive/v1.0-alpha2.zip
python3 setup.py install


7.Download and install the following:

apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
apt-get install libssl1.0.0:i386
apt-get install libtinfo5:i386
ln -s /lib/i386-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.4


check the following link for other procedures:
http://forum.gns3.net/topic9106.html



8. Configure GNS3 1.0-Alpha2 preferences, create a basic topology and save the project to keep the settings.


To Uninstall GN3-GUI and Server:

pip3 uninstall gns3-gui
pip3 uninstall gns3-server

Monday, March 24, 2014

GNS3 installation in Debian 7.40


Run the following command after running su and enter password from the terminal.


apt-get install glib-2.0 pkg-config libglib2.0 build-essential libsdl1.2-dev libsdl-image1.2-dev

Download and install Qemu:

wget http://wiki.qemu-project.org/download/qemu-1.6.1.tar.bz2
tar jxvf qemu-1.6.1.tar.bz2
cd qemu-1.6.1

./configure --target-list=i386-softmmu,x86_64-softmmu
make
make install

Note:

There are several errors I have encountered when I run “make”command to prepare qemu's package. Solved by running apt-get install to install the missing applications like flex, lex and bison.

KVM Installation:

apt-get install qemu-kvm

Virtualbox installation:

To install Virtualbox, go to Applications, click Add/Remove software type virtualbox and click find. Check the OracleVM Virtualbox and click apply.

Install dependencies:

apt-get install libelf-dev uuid-dev libpcap-dev
apt-get install python-qt4 xdotool

Instead of downloading the latest GNS3 8.6 package I have downloaded and install the available Debian package repository. You can find it here: http://gns3.serverb.co.uk/

To install the packages:

dpkg -i package-name.deb

Automatically GNS3 icon will be available under the Application. Just double click and configure the necessary settings, preferences and it's ready to simulate.

Thursday, February 20, 2014

GNS3 Installation on Fedora

Install dependencies: 

yum install python python-devel xorg-x11-proto-devel libXext-devel

yum install gcc-c++ 



sudo yum install libpcap elfutils-libelf  elfutils-libelf-devel  libuuid libuuid-devel gcc libpcap libpcap-devel

Download and extract gns3 and dynamips source 

Make a symbolic link:
cd dynamips-0.2.8-RC7-community

sudo ln -s /usr/lib64/libelf.so /usr/lib64/libelf.a

edit and save the dynamips Makefile:

# Makefile for Dynamips 0.2.8

# Host CPU selection
#   - Use "x86" for a build on x86 (32-bits)
#   - Use "amd64" for a build on x86_64 (64-bits)
#   - Use "ppc32" for a build on powerpc (32-bits)
#   - Use "nojit" for unsupported architectures.
export DYNAMIPS_ARCH?=x86

# Do you want to use lib (for 32 bit compiling) or lib64
#export DYNAMIPS_LIB?=lib
export DYNAMIPS_LIB?=lib64



Build dynamips:

[ariel@P5Q dynamips-0.2.8-RC7-community]$ make DYNAMIPS_ARCH=amd64

note: in case of bash make command not found:
sudo yum install make



Compiling Qemu:

[ariel@P5Q Downloads]$ sudo yum install ncurses-libs ncurses-devel zlib-devel SDL-devel libpcap-devel glib2-devel

download and extract qemu-1.6.0
./configure --target-list=i386-softmmu,sparc-softmmu,x86_64-softmmu
make
sudo make install

Virtual Box installation:

[ariel@P5Q Downloads]$ sudo yum install gcc kernel-devel kernel-headers dkms.noarch xdotool

Download and install Virtual Box

http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html



CentOS 6 x64 Notes

CentOS 6 x64 Notes

Error mounting: mount: unknown filesystem type 'ntfs'

Solution:
Download and Install:


http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

Procedures were available here:

http://wiki.centos.org/TipsAndTricks/NTFS

Install the following packages

yum install fuse fuse-ntfs-3g