본문 바로가기

GNS3

How to use a nat node in gns3

 How to use a nat node in gns3 ?

 Concept

 

 Topology

 

 

 Configure

The NAT node will use the VMware vmnet adapter instead of the libvirt NAT feature of the GNS3 VM provided VMware is installed on Windows or MAC. This allows to connect a Dynamips topology to the Internet without having to boot a GNS3 VM.

It’s usefull when you need to download stuff from internet (package, licence check…). And it’s easier to use than the Cloud node.

The NAT node require the GNS3 VM or a Linux computer with libvirt installed.

By default the NAT node run a DHCP server that will give you an ip in the range 192.168.122.0/24.

 

The result of test can not operate on IOU Switch but IOU Router can use this.

 IOU8

 interface Ethernet0/0
 ip address dhcp
 ip nat outside
 no shut 

!
interface Ethernet0/1
 ip address 10.1.18.8 255.255.255.0
 ip nat inside
 no shut
 exit

ip nat inside source list 1 interface Ethernet0/0 overload
ip route 10.1.0.0 255.255.0.0 Ethernet0/1 10.1.18.1

!
access-list 1 permit 10.1.0.0 0.0.255.255

 IOU1

interface Ethernet1/0
 no switchport
 ip address 10.1.18.1 255.255.255.0
 exit

 

ip route 0.0.0.0 0.0.0.0 Ethernet1/0 10.1.18.8

 

router ospf 1

 network 10.1.12.1 0.0.0.0 area 0
 default-information originate

 IOU2

 router ospf 1

   network 10.1.12.2 0.0.0.0 area 0