cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
756
Views
0
Helpful
5
Replies

GNS 3 to Internet connectivity

I'm trying my lab on GNS

 

Please advise how to connect to internet via cloud01

 

I have configured:

 

1. ip nat inside and outside

2. ip to inside interface and DHCP on outside inside

3. ip nat for private --> public

4. ping 8.8.8.8 is giving me encapsulation error

 

Kindly advise.

5 Replies 5

Julio E. Moisa
VIP Alumni
VIP Alumni

Hi

Unfortunately I have not used GNS3 deeply but the following link could be useful:

https://docs.gns3.com/1vFs-KENh2uUFfb47Q2oeSersmEK4WahzWX-HrMIMd00/index.html

 

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Which VM are you using ?

Hello

Can you post your configuration please.

 

A basic setup would be:

Int x/x
description WAN
ip address dhcp
ip nat outside

int x/x
description LAN
ip addresss 10.1.1.1 255.255.255.0
ip nat inside

ip dhcp pool LAN
network 10.1.1.0 /24
default-router 10.1.1.1
import all
lease 0.8
ip dhcp excluded-address 10.1.1.1

access-list 10 permit 10.1.1.0 0.0.0.255
ip nat inside source list 10 interface <wan> overload

ip route 0.0.0.0 0.0.0.0 dhcp

 

res
Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

My lab is almost similar to your config but instead I'm using of static IP and not DHCP.

 

Here is my config:

 

Sh ip route output:

---------------
C 192.168.1.0/24 is directly connected, FastEthernet0/1
C 192.168.2.0/24 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 is directly connected, FastEthernet0/0

 

Internet_Router#sh ip nat statistics
------------------------------
Total active translations: 0 (0 static, 0 dynamic; 0 extended)
Outside interfaces:
FastEthernet0/0
Inside interfaces:
FastEthernet0/1
Hits: 23 Misses: 0
CEF Translated packets: 0, CEF Punted packets: 0
Expired translations: 5
Dynamic mappings:
-- Inside Source
[Id: 1] access-list 1 interface FastEthernet0/0 refcount 0
Appl doors: 0
Normal doors: 0
Queued Packets: 0
Internet_Router#

 


Internet_Router#sh run

----------------------
Building configuration...

Current configuration : 1025 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Internet_Router
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
memory-size iomem 5
ip cef
!
!
!
!
ip name-server 8.8.8.8
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
archive
log config
hidekeys
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.2.1 255.255.255.0
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
ip forward-protocol nd
ip route profile
ip route 0.0.0.0 0.0.0.0 192.168.119.2
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
!
!
ip http server
no ip http secure-server
ip nat inside source list 1 interface FastEthernet0/0 overload
!
access-list 1 permit any log
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

Internet_Router#

 

 

Error:

------------------


*Mar 1 00:19:41.775: IP: tableid=0, s=192.168.2.1 (local), d=8.8.8.8 (FastEthernet0/0), routed via RIB
*Mar 1 00:19:41.779: IP: s=192.168.2.1 (local), d=8.8.8.8 (FastEthernet0/0), len 100, sending
*Mar 1 00:19:41.779: IP: s=192.168.2.1 (local), d=8.8.8.8 (FastEthernet0/0), len 100, encapsulation failed.

Hello

I am not sure what you trying to accomplish, This just a lab setup correct? -  anyway given the information you have provided try the following changes.

 

conf t

no ip route profile
no ip route 0.0.0.0 0.0.0.0 192.168.119.2
no ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
no access-list 1 permit any log

ip route 0.0.0.0 0.0.0.0 FastEthernet0/0 192.168.2.x  <---- this will be the neighboring rtr attached ip address
access-list 1 permit 192.168.1.0

res
Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul