7-20
Command Sets for Command Line Interface
1. arp
Syntax:
arp add <i/f> <IP address> <MAC address>
arp delete <i/f> <IP address>
arp flush
arp [list]
arp help [all|<cmd>]
Description:
Allows display and manipulation of the ARP table: the list of IP
addresses and corresponding MAC addresses obtained by ARP on
Ethernet-like interfaces. Normally there is no need to add entries to
the table with “
arp add
”, since they should be discovered by the
ARP protocol. Displaying the table with “
arp list
” (or just “
arp
”)
is sometimes useful, and deleting an entry with “
arp delete
”, or the
whole table with “
arp flush
”, can sometimes speed up recovery
from temporary problems if something unusual has happened.
Entries added with “
arp add
” do not time out like those discovered
by use of the ARP protocol, but they are deleted by “
arp flush
” and
will not survive a restart (they are not saved by configuration saving).
Note that the ARP table is used only for destinations on directly
connected Ethernet-like networks, not for those reached through
routers (although the ARP table may be used to discover the MAC
address of the router).
Example:
DSL>
ip arp add ether 192.168.50.1 8:0:20:19:9A:D9
DSL>
ip arp
arp add flane 192.168.2.63 00:20:2b:e0:03:87 # 8m58s
arp add flane 192.168.2.109 00:20:2b:03:08:b1 # 2m24s
arp add ether 192.168.50.1 08:00:20:19:9a:d9 # forever
arp add ether 192.168.50.57 00:20:af:2e:fa:3c # 3m25s
DSL>
ip arp delete flane 192.168.2.109
DSL>
ip arp list
arp add flane 192.168.2.63 00:20:2b:e0:03:87 # 8m46s
arp add ether 192.168.50.1 08:00:20:19:9a:d9 # forever
arp add ether 192.168.50.57 00:20:af:2e:fa:3c # 3m13s
DSL>
ip arp flush
DSL>
ip arp
# flane ARP table is empty
# ether ARP table is empty
DSL>
ip arp
arp add flane 192.168.2.108 00:20:2b:03:0a:72 # 10m58s
# ether ARP table is empty
(The last example shows that the MAC address for 192.168.2.108 has
Содержание Bridge/ Heritage
Страница 1: ...Heritage Series ADSL Bridge Router Heritage Series Multi Mode xDSL Router User s Manual Dec 2003 ...
Страница 15: ...1 10 Introduction ...
Страница 31: ...2 16 Installing and Configuring your xDSL Router ...
Страница 43: ...3 12 Basic Configurations ...
Страница 58: ...Heritage Series ADSL Bridge Router 4 13 Advanced Configurations pptp bind none config save restart ...
Страница 59: ...4 14 Advanced Configurations ...
Страница 63: ...5 4 Managing the xDSL Router ...
Страница 65: ...6 2 xDSL Link Performance Statistics ...
Страница 123: ...7 58 Command Sets for Command Line Interface ...
Страница 141: ...8 18 DHCP Server Operation ...
Страница 149: ...9 8 DHCP Client Configuration ...