TCP/IP 详解 卷1 ch4 ARP

本文通过实际案例展示了ARP协议的工作原理及其在网络中的应用。详细记录了ARP请求与响应过程,并利用tcpdump工具验证ARP机制的有效性。此外,还介绍了如何使用ARP代理来支持路由器之间的通信。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. ARP : if you are the owner of this IP address, please respond to me with your hardware address (48 bits).

2. ARP cache

/home/a/j/nomad2:arp -a Net to Media Table: IPv4 Device IP Address Mask Flags Phys Addr ------ -------------------- --------------- ----- --------------- e1000g0 192.168.1.1 255.255.255.255 00:14:f6:44:2a:27 e1000g0 x4100.unix-center.net 255.255.255.255 SP 00:14:4f:45:f1:96 e1000g0 BASE-ADDRESS.MCAST.NET 240.0.0.0 SM 01:00:5e:00:00:00

arp for IP address that are not reachable

/home/a/j/nomad2:telnet 192.168.1.13 Trying 192.168.1.13... telnet: Unable to connect to remote host: Connection refused /home/a/j/nomad2:arp -a Net to Media Table: IPv4 Device IP Address Mask Flags Phys Addr ------ -------------------- --------------- ----- --------------- e1000g0 192.168.1.11 255.255.255.255 00:14:4f:1e:3f:9c e1000g0 192.168.1.13 255.255.255.255 00:18:8b:f8:15:31 e1000g0 192.168.1.1 255.255.255.255 00:14:f6:44:2a:27 e1000g0 192.168.1.40 255.255.255.255 00:1d:09:f1:d2:d6 e1000g0 192.168.2.8 255.255.255.255 00:1d:09:0c:3d:94 e1000g0 x4100.unix-center.net 255.255.255.255 SP 00:14:4f:45:f1:96 e1000g0 192.168.1.12 255.255.255.255 00:18:8b:f8:14:4d e1000g0 192.168.2.6 255.255.255.255 00:1d:09:0c:37:d4 e1000g0 192.168.2.7 255.255.255.255 00:1d:09:0c:3a:ef e1000g0 192.168.2.199 255.255.255.255 00:0c:29:8e:e7:0f e1000g0 192.168.2.219 255.255.255.255 08:00:27:84:d3:ca e1000g0 192.168.2.221 255.255.255.255 08:00:27:8e:79:0a e1000g0 BASE-ADDRESS.MCAST.NET 240.0.0.0 SM 01:00:5e:00:00:00

3. using tcpdump (in another machine) to check the ARP machanism

4. ARP proxy for routers

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值