I'm trying to make a router inside GNS3 to connect to the host device (a Debian 8) with no success. Am I missing something?
DHCP works as expected:
!
interface FastEthernet0/0
ip address dhcp
duplex auto
speed auto
!
IP is assigned to the router:
%DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 192.168.56.104, mask 255.255.255.0, hostname R1
When I ping from the host to the router I see (tcpdump) the ARP reply:
13:12:08.902370 ARP, Request who-has 192.168.56.104 tell 192.168.56.101, length 28
13:12:08.905452 ARP, Reply 192.168.56.104 is-at cc:01:43:49:00:00, length 46
But it is not populated in the host ARP table:
$ sudo arp -a
? (192.168.56.104) at <incomplete> on eth1
But it is on the router:
R1#sh arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.56.101 2 xxxx.xxxx.3f96 ARPA FastEthernet0/0
Internet 192.168.56.104 - cc01.4349.0000 ARPA FastEthernet0/0
And when I ping from the router to the host, the host won't reply. A tcpdump capture on the host:
18:40:19.862855 ARP, Request who-has 192.168.56.101 tell 192.168.56.104, length 46
18:40:21.804763 ARP, Request who-has 192.168.56.101 tell 192.168.56.104, length 46
18:40:23.781876 ARP, Request who-has 192.168.56.101 tell 192.168.56.104, length 46
There is no rules in iptables:
$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
sudo arp -s 192.168.56.104 cc:01:43:49:00:00