06-Commands For Layer 3 Interface and ARP, ND - Word
06-Commands For Layer 3 Interface and ARP, ND - Word
06-Commands For Layer 3 Interface and ARP, ND - Word
Content
.....................................................................................................2-1
1
Commands for Layer 3
Forward and ARP, ND Content
SPOOFING..................................................................................3-1
CONFIGURATION.......................................................................5-1
5.1 IP GRATUITOUS-ARP............................................................................5-1
5.2 SHOW IP GRATUITOUS-ARP..................................................................5-1
2
Commands for Layer 3
Forward and ARP, ND Content
3
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
1.1.1 shutdown
Command: shutdown
no shutdown
Function: Shut down the specified VLAN interface of the switch. The no operation of the
command will enable the VLAN interface.
Command Mode: VLAN Interface Configuration Mode.
Default: The VLAN interface is enabled by default.
Usage Guide: While shutting down the VLAN interface of the switch, it will not send data
frames. If this interface needs to obtain an IP address via BOOTP/DHCP protocol, it
should be enabled.
Example: Enable the VLAN1 interface of the switch.
Switch(Config-if-Vlan1)#no shutdown
1
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
2
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
3
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
1.2.6 ip address
Command: ip address <ip-address> <mask> [secondary]
no ip address [<ip-address> <mask>] [secondary]
Function: Set IP address and net mask of switch; the “no ip address [<ip-address>
<mask>] [secondary]” command deletes the IP address configuration.
Parameter: <ip-address> is IP address, dotted decimal notation; <mask> is subnet
mask, dotted decimal notation; [secondary] indicates that the IP address is configured
as secondary IP address.
Command Mode: VLAN interface configuration mode
Default: The system default is no IP address configuration.
Usage Guide: This command configures IP address on VLAN interface manually. If
optional parameter secondary is not configured, then it is configured as the primary IP
address of VLAN interface; if optional parameter secondary is configured, then that
means the IP address is the secondary IP address of VLAN. One VLAN interface can
only have one primary IP address and more than one secondary IP addresses. Primary
IP and Secondary IP all can be used on SNMP/Web/Telnet management. Furthermore,
the switch also provides BOOTP/DHCP manner to get IP address.
Example: The IP address of switch VLAN1 interface is set to 192.168.1.10/24.
Switch(Config-if-Vlan1)#ip address 192.168.1.10 255.255.255.0
4
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
5
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
6
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
7
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
replies
Sent: 0 total 0 errors 0 time exceeded Statistics of total ICMP packets sent
0 redirects, 0 unreachable, 0 echo, 0 and classified information
echo replies
0 mask requests, 0 mask replies, 0
quench
0 parameter, 0 timestamp, 0 timestamp
replies
TCP statistics: TCP packet statistics.
UDP statistics: UDP packet statistics.
8
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
ND managed_config_flag is unset
ND other_config_flag is unset
ND NS interval is 1 second(s)
ND router advertisements is disabled
ND RA min-interval is 200 second(s)
ND RA max-interval is 600 second(s)
ND RA hoplimit is 64
ND RA lifetime is 1800 second(s)
ND RA MTU is 0
ND advertised reachable time is 0 millisecond(s)
ND advertised retransmit time is 0 millisecond(s)
9
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
10
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
Usage Guide:
Example:
Switch#show ipv6 neighbors
IPv6 neighbour unicast items: 14, valid: 11, matched: 11, incomplete: 0, delayed: 0,
manage items 5
IPv6 Address Hardware Addr Interface Port State
2002:ca60:c801:1:250:baff:fef2:a4f4 00-50-ba-f2-a4-f4 Vlan1 Ethernet0/0/2
reachable
3ffe:3240:800d:1::100 00-03-0f-01-27-86 Vlan1 Ethernet 0/0/3
reachable
3ffe:3240:800d:1::8888 00-02-01-00-00-00 Vlan1 Ethernet 0/0/1
permanent
3ffe:3240:800d:1:250:baff:fef2:a4f4 00-50-ba-f2-a4-f4 Vlan1 Ethernet0/0/4
reachable
3ffe:3240:800d:2::8888 00-02-01-00-01-01 Vlan2 Ethernet 0/0/16
permanent
3ffe:3240:800d:2:203:fff:fefe:3045 00-03-0f-fe-30-45 Vlan2 Ethernet0/0/15
reachable
fe80::203:fff:fe01:2786 00-03-0f-01-27-86 Vlan1 Ethernet 0/0/5
reachable
fe80::203:fff:fefe:3045 00-03-0f-fe-30-45 Vlan2 Ethernet 0/0/17
reachable
fe80::20c:ceff:fe13:eac1 00-0c-ce-13-ea-c1 Vlan12 Ethernet 0/0/20
reachable
fe80::250:baff:fef2:a4f4 00-50-ba-f2-a4-f4 Vlan1 Ethernet 0/0/6
reachable
11
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
Default: None
Command Mode: Admin and Configuration Mode
Example:
Switch#show ipv6 traffic
IP statistics:
Rcvd: 90 total, 17 local destination
0 header errors, 0 address errors
0 unknown protocol, 13 discards
Frags: 0 reassembled, 0 timeouts
0 fragment rcvd, 0 fragment dropped
0 fragmented, 0 couldn't fragment, 0 fragment sent
Sent: 110 generated, 0 forwarded
0 dropped, 0 no route
ICMP statistics:
Rcvd: 0 total 0 errors 0 time exceeded
0 redirects, 0 unreachable, 0 echo, 0 echo replies
12
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
1.3.1 arp
Command: arp <ip_address> <mac_address> {interface [ethernet] <portName>}
no arp <ip_address>
Function: Configures a static ARP entry; the “no arp <ip_address>” command deletes a
ARP entry of the specified IP address.
Parameters: <ip_address> is the IP address; <mac_address> is the MAC address;
ethernet stands for Ethernet port; <portName> for the name of layer2 port.
Default: No static ARP entry is set by default.
Command mode: VLAN Interface Mode
Usage Guide: Static ARP entries can be configured in the switch.
Example: Configuring static ARP for interface VLAN1.
Switch(Config-if-Vlan1)#arp 1.1.1.1 00-03-0f-f0-12-34 eth 0/0/2
13
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
14
Commands for Layer 3
Forward and ARP, ND Chapter 1 Commands for Layer 3 Management
15
Commands for Layer 3 Chapter 2 Commands for ARP
Forward and ARP, ND Scanning Prevention
1
Commands for Layer 3 Chapter 2 Commands for ARP
Forward and ARP, ND Scanning Prevention
2
Commands for Layer 3 Chapter 2 Commands for ARP
Forward and ARP, ND Scanning Prevention
3
Commands for Layer 3 Chapter 2 Commands for ARP
Forward and ARP, ND Scanning Prevention
4
Commands for Layer 3 Chapter 2 Commands for ARP
Forward and ARP, ND Scanning Prevention
closed. If the port is closed, then display how long it has been closed. Display all the
trusted IP and disabled IP.
Command Mode: Admin Mode
User Guide: Use “show anti-arpscan trust port” if users only want to check trusted
ports. The reset follow the same rule.
Example: Check the operating state of ARP scanning prevention function after enabling
it.
Switch(config)#show anti-arpscan
Total port: 28
Name Port-property beShut shutTime(seconds)
Ethernet0/0/1 untrust N 0
Ethernet0/0/2 untrust N 0
Ethernet0/0/3 untrust N 0
Ethernet0/0/4 untrust N 0
Ethernet0/0/5 untrust N 0
Ethernet0/0/6 untrust N 0
Ethernet0/0/7 untrust N 0
Ethernet0/0/8 untrust N 0
Ethernet0/0/9 untrust N 0
Ethernet0/0/10 untrust N 0
Ethernet0/0/11 untrust N 0
Ethernet0/0/12 untrust N 0
Ethernet0/0/13 untrust N 0
Ethernet0/0/14 untrust N 0
Ethernet0/0/15 untrust N 0
Ethernet0/0/16 trust N 0
Ethernet0/0/17 untrust N 0
Ethernet0/0/18 supertrust N 0
Ethernet0/0/19 untrust Y 30
Ethernet0/0/20 trust N 0
Ethernet0/0/21 untrust N 0
Ethernet0/0/22 untrust N 0
Ethernet0/0/23 untrust N 0
Ethernet0/0/24 untrust N 0
Ethernet0/0/25 untrust N 0
Ethernet0/0/26 untrust N 0
Ethernet0/0/27 untrust N 0
Ethernet0/0/28 untrust N 0
Prohibited IP:
IP shutTime(seconds)
1.1.1.2 132
Trust IP:
5
Commands for Layer 3 Chapter 2 Commands for ARP
Forward and ARP, ND Scanning Prevention
192.168.99.5 255.255.255.255
192.168.99.6 255.255.255.255
6
Commands for Layer 3 Chapter 3 Commands for Preventing
Forward and ARP, ND ARP, ND Spoofing
1
Commands for Layer 3 Chapter 3 Commands for Preventing
Forward and ARP, ND ARP, ND Spoofing
2
Commands for Layer 3 Chapter 3 Commands for Preventing
Forward and ARP, ND ARP, ND Spoofing
in combination with disabling automatic learning, can prevent ARP binding. Once
implemented, this command will lose its effect.
Example:
Switch(Config-if-Vlan1)#ip arp -security convert
Switch(config)#ip arp -security convert
3
Commands for Layer 3 Chapter 3 Commands for Preventing
Forward and ARP, ND ARP, ND Spoofing
Example:
Switch(Config-if-Vlan1)#clear ipv6 nd dynamic
4
Commands for Layer 3
Forward and ARP, ND Chapter 4 Command for ARP GUARD
4.1 arp-guard ip
1
Commands for Layer 3
Forward and ARP, ND Chapter 5 Commands for Gratuitous ARP Configuration
5.1 ip gratuitous-arp
1
Commands for Layer 3
Forward and ARP, ND Chapter 5 Commands for Gratuitous ARP Configuration
2
Commands for Layer 3
Forward and ARP, ND Chapter 6 Commands for ND Snooping
1
Commands for Layer 3
Forward and ARP, ND Chapter 6 Commands for ND Snooping
2
Commands for Layer 3
Forward and ARP, ND Chapter 6 Commands for ND Snooping
3
Commands for Layer 3
Forward and ARP, ND Chapter 6 Commands for ND Snooping
4
Commands for Layer 3
Forward and ARP, ND Chapter 6 Commands for ND Snooping
5
Commands for Layer 3
Forward and ARP, ND Chapter 6 Commands for ND Snooping
6
Commands for Layer 3
Forward and ARP, ND Chapter 6 Commands for ND Snooping