Search This Blog

Thursday, May 5, 2011

GNS3 with Qemu Hosts

1] Add ip address
$ sudo ifconfig eth0 192.168.1.11 netmask 255.255.255.0

2] Add gateway
$ sudo route add 192.168.1.0 default gw 192.168.1.254

3] Routing table
$ show

4] Saving settings
$ vi /opt/bootlocal.sh
$ /usr/bin/filetool.sh backup


5] Set client for DHCP
# vi /etc/sysconfig/network-scripts/ifcfg-eth0


DEVICE=eth0
BOOTPROTO=static
HWADDR=00:19:D1:2A:BA:A8
IPADDR=10.10.29.66
NETMASK=255.255.255.192
ONBOOT=yes

Replace static configuration with DHCP:

DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:19:D1:2A:BA:A8
ONBOOT=yes

Save and close the file. Just restart network service:
# /etc/init.d/network restart












Advance Features

$ iptables -L

No comments:

Post a Comment