12-03-2017 11:45 AM - edited 03-08-2019 12:58 PM
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.
12-03-2017 11:55 AM
Hi
Unfortunately I have not used GNS3 deeply but the following link could be useful:
https://docs.gns3.com/1vFs-KENh2uUFfb47Q2oeSersmEK4WahzWX-HrMIMd00/index.html
:-)
12-03-2017 12:37 PM
Which VM are you using ?
12-03-2017 01:06 PM - edited 12-03-2017 01:10 PM
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
12-03-2017 11:13 PM
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.
12-04-2017 05:13 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide