Monday, July 30, 2012

working with interfaces in Linux

Just a few commands if you are using Linux based hosts for GNS3:


Add interface:

sudo ifconfig eth0 192.168.10.12 netmask 255.255.255.0 broadcast 192.168.10.255

Show routing table:

route -e

Access ISP network identified by the network address and netmask using network interface card eth0:

sudo route add -net 10.13.21.0 netmask 255.255.255.0 gw 192.168.10.254 eth0

Specify default gateway to use to access remote network via network interface card eth0:

sudo route add default gw 201.51.31.1 eth0

No comments:

Post a Comment