我正在尝试在 GNS3 中制作一个路由器以连接到主机设备(Debian 8),但没有成功。我错过了什么吗?
DHCP 按预期工作:
!
interface FastEthernet0/0
ip address dhcp
duplex auto
speed auto
!
IP分配给路由器:
%DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 192.168.56.104, mask 255.255.255.0, hostname R1
当我从主机 ping 到路由器时,我看到 (tcpdump) ARP 回复:
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
但它没有填充到主机 ARP 表中:
$ sudo arp -a
? (192.168.56.104) at <incomplete> on eth1
但它在路由器上:
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
当我从路由器 ping 主机时,主机不会回复。主机上的 tcpdump 捕获:
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
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
