GNS3 – Assign an IP Address to Linux Microcore QEMU Guest

KB ID 0000932 

Problem

The whole point of having these guest machines is for testing communications, putting an IP address on them so you can ping things, is a pretty basic step.

Solution

1. Console in, and execute the following commands, obviously change the IP addresses to the ones you require.

[box]

sudo su
ifconfig eth0 10.10.10.10 netmask 255.0.0.0 up
route add ip default gw 10.10.10.1
route add default gw 10.10.10.1

[/box]

Related Articles, References, Credits, or External Links

NA

Deploy Dual Virtual ASA Firewalls In Active/Standby Failover

KB ID 0000053

Problem

Now you have created your Virtual ASA platform you want to deploy 2 of them in failover configuration.

Solution

Notes:

Software To Download

Qemu with ASA

Dynamips

WinPcap

Sample Batch File

[box] @echo off ECHO Telnet to 127.0.0.1 on port 1234 to access ASA Console ECHO ——————————————————- ECHO * * * * * * *DO NOT CLOSE THIS WINDOWS* * * * * * * * qemupcap -L . -hda FLASH1 -hdachs 980,16,32 -kernel vmlinuz -initrd asa-nolina.gz -m 256 –no-kqemu -append “auto nousb ide1=noprobe bigphysarea=16384 console=ttyS0,9600n8 hda=980,16,32” -net nic,vlan=0,model=pcnet,macaddr=00:aa:00:00:01:01 -net pcap,vlan=0,ifname=DeviceNPF_{120662E6-8B8B-4A6D-A0B1-9159DBD283BA} -net nic,vlan=1,model=pcnet,macaddr=00:aa:00:00:01:02 -net pcap,vlan=1,ifname=DeviceNPF_{BF1F38D4-5D13-4DA2-B50B-17B1F35B1FA8} -net nic,vlan=2,model=pcnet,macaddr=00:aa:00:00:02:02 -net pcap,vlan=2,ifname=DeviceNPF_{2AA77C53-B558-4E7C-A377-E92BF9FAF1BB} -serial telnet::1234,server,nowait[/box]

MAKE SURE ALL THE MAC ADDRESSES AND Network ID’s are unique!!!!!!

Commands to enter at Telnet

modprobe e100 ifconfig eth0 up ifconfig eth1 up ifconfig eth2 up cd /mnt/disk0 ./lina_monitor

Command to save config

[box]copy run disk0:/.private/startup-config[/box]

Related Articles, References, Credits, or External Links

NA

Building a Virtual Cisco ASA

KB ID 0000051

Problem

You would like to create a virtual Cisco ASA platform in a virtualized environment for training and or testing.

Solution

Notes:

Software To Download

Qemu with ASA
Dynamips
WinPcap

Sample Batch File

[box]

@echo off
ECHO Telnet to 127.0.0.1 on port 1234 to access ASA Console
ECHO ——————————————————-
ECHO * * * * * * *DO NOT CLOSE THIS WINDOWS* * * * * * * *
qemupcap -L . -hda FLASH1 -hdachs 980,16,32 -kernel vmlinuz -initrd asa-nolina.gz -m 256 –no-kqemu -append “auto nousb ide1=noprobe bigphysarea=16384 console=ttyS0,9600n8 hda=980,16,32” -net nic,vlan=0,model=pcnet,macaddr=00:aa:00:00:01:01 -net pcap,vlan=0,ifname=DeviceNPF_{120662E6-8B8B-4A6D-A0B1-9159DBD283BA} -net nic,vlan=1,model=pcnet,macaddr=00:aa:00:00:01:02 -net pcap,vlan=1,ifname=DeviceNPF_{BF1F38D4-5D13-4DA2-B50B-17B1F35B1FA8} -net nic,vlan=2,model=pcnet,macaddr=00:aa:00:00:02:02 -net pcap,vlan=2,ifname=DeviceNPF_{2AA77C53-B558-4E7C-A377-E92BF9FAF1BB} -serial telnet::1234,server,nowait

[/box]

MAKE SURE ALL THE MAC ADDRESSES AND Network ID’s are unique!!!!!!

Commands to enter at Telnet

[box]
modprobe e100

ifconfig eth0 up

ifconfig eth1 up

ifconfig eth2 up

cd /mnt/disk0

./lina_monitor [/box]

Command to save config

[box]
copy run disk0:/.private/startup-config
[/box]

Related Articles, References, Credits, or External Links

GNS3 Cannot Connect Network Interfaces when running on VMware vSphere