cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
1345
Views
0
Helpful
3
Replies
Highlighted
Cisco Employee

can not ping between router IOS and ubuntu host in GNS3

is it must to setup NAT in router similar with ASA ?

before using DHCP in ubuntu host i set static ip, but can not ping between router and ubuntu , ubuntu can not ping gateway which directly connected with router

error is destination unreachable

if it must need to setup NAT in router, then it must need to setup DHCP in ubuntu

then after i setup DHCP, i use 192.168.56.101, which is different network from router, i do not know whether it get this ip

now error is network is unreachable

in virtual box i set host-only adapter

 

R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#interface fastEthernet 0/1
R1(config-if)#ip nat inside
% NBAR ERROR: parsing stopped
% NBAR Error : Activation failed due to insufficient dynamic memory
% NBAR Error: Stile could not add protocol node
%NAT: Error activating CNBAR on the interface FastEthernet0/1
R1(config-if)#ip nat pool MYPOOL 192.168.5.1 192.168.5.10 prefix-length 24
NAT: Pool address chunk creation failed
NAT: Addr pool init failed
R1(config)#ip nat inside source list 7 pool MYPOOL

R1(config)#access-list 7 permit 192.168.5.0 0.0.0.255
R1(config)#end
R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip nat inside
% NBAR ERROR: due to memory problem, parsing stopped
% NBAR Error : Activation failed due to insufficient dynamic memory
% NBAR Error: Stile could not add protocol node
%NAT: Error activating CNBAR on the interface FastEthernet0/0
R1(config-if)#end
R1#
*Mar  1 00:00:30.967: %SYS-2-MALLOCFAIL: Memory allocation of 10260 bytes failed from 0x628F2DA8, alignment 0
Pool: Processor  Free: 22528  Cause: Memory fragmentation
Alternate Pool: None  Free: 0  Cause: No Alternate pool
 -Process= "Exec", ipl= 0, pid= 196,  -Traceback= 0x61477188 0x60016604 0x6001C4CC 0x6001CB24 0x63645A68 0x628F2DB0 0x628D4AFC 0x628D4BD4 0x628D4C3C 0x628D4C3C 0x628D4C3C 0x628D4C3C 0x628D4C3C 0x628D4C5C 0x628D4C5C 0x628D54F4
*Mar  1 00:00:30.975: %NBAR-2-NOMEMORY: No memory available for StILE lmalloc,  -Traceback= 0x61477188 0x628F2DCC 0x628D4AFC 0x628D4BD4 0x628D4C3C 0x628D4C3C 0x628D4C3C 0x628D4C3C 0x628D4C3C 0x628D4C5C 0x628D4C5C 0x628D54F4 0x628D2A50 0x628D2C14 0x62905E30 0x62910894
*Mar  1 00:00:31.091: %SYS-2-CHUNKINVALIDHDR: Invalid chunk header type 3341 for chunk 674D5794, data D0D0D0D -Process= "Exec", ipl= 0, pid= 196,  -Traceback= 0x61477188 0x60027B98 0x61C8B440 0x61C5849C 0x61C5DFE8 0x614C3364 0x614E70BC 0x62AFA750 0x62AFA734
*Mar  1 00:00:31.219: %SYS-5-CONFIG_I: Configured from console by console
*Mar  1 00:00:31.363: %SYS-5-CONFIG_I: Configured from console by console
*Mar  1 00:00:31.711: %LINEPROTO-5-UPDOWN: Line protocol on Interface NVI0, changed state to upconf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#interface fastEthernet 1/0
R1(config-if)#ip nat outside
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR ERROR: symbol addition
% NBAR Error : Activation failed due to insufficient dynamic memory
% NBAR Error: Stile could not add protocol node
%NAT: Error activating CNBAR on the interface FastEthernet1/0
R1(config-if)#end
R1#


R1#ping
*Mar  1 01:02:40.595: %SYS-5-CONFIG_I: Configured from console by console


                                        inside                                    outside
192.168.1.2 router -----  192.168.1.5-0/0--switch-0/1--192.168.2.3 ------192.168.2.1  ASA 192.168.3.4 ---switch---- 192.168.3.3 router 
                                         |
                                         1/0
                                     192.168.5.7
                                        ubuntu

conf t
interface fastEthernet 0/1
ip nat inside
ip nat pool MYPOOL 192.168.5.1 192.168.5.10 prefix-length 24
ip nat inside source list 7 pool MYPOOL
access-list 7 permit 192.168.5.0 0.0.0.255
end
conf t
interface fastEthernet 0/0
ip nat inside
end
conf t
interface fastEthernet 1/0
ip nat outside
end

ubuntu host
auto lo
iface lo inet loopback

iface eth0 inet dhcp

Everyone's tags (1)
3 REPLIES 3
Participant

You don't need NAT.  You can

You don't need NAT.  You can bridge the connection to the outside world (i.e. same subnet.)  There are articles on the web that describe how to do this, but basically you drop the cloud icon on your GNS3 map.  You then configure the cloud and tell it which physical interface on your box to use.  Then you connect a link between your GNS3 router and the cloud.  There are compatibility issues so you want to look into that.  Also, if you're running GNS3 in a VM I believe you have to set the security on your NIC Ports to be promiscuous.

Cisco Employee

https://community.gns3.com

https://community.gns3.com/thread/5776

i attach some screen capture about this problem,

i configure static ip result in no route , link detection = no

without configure static ip, it has route, but the network is not  192.168.5.0, it is the virtual box's network 192.168.56.0

Cisco Employee

succeed after using switch

succeed after using switch port and configure vlan ip address

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards