Command Line Interface Guide
Page 11
show ip igmp snooping mrouter 200 show ip igmp snooping interface 201 show ip igmp snooping groups 202 14 IP Addressing Commands 205 clear host dhcp 205 ip address 205 ip address dhcp 206 ip default-gateway 207 show ip interface 208 arp 209 arp timeout 210 clear arp-cache 210 show arp 211 ip domain-lookup 212 ip domain-name 213 ip name-server 213 ip host 214 clear host 215 show hosts 215 15 IPv6 Addressing 217 ipv6 enable 217 ipv6 address autoconfig 218 ipv6 icmp error-interval 218 show ipv6 icmp error-interval 219 ipv6 address 220 Contents 11
show ip igmp snooping mrouter 200 show ip igmp snooping interface 201 show ip igmp snooping groups 202 14 IP Addressing Commands 205 clear host dhcp 205 ip address 205 ip address dhcp 206 ip default-gateway 207 show ip interface 208 arp 209 arp timeout 210 clear arp-cache 210 show arp 211 ip domain-lookup 212 ip domain-name 213 ip name-server 213 ip host 214 clear host 215 show hosts 215 15 IPv6 Addressing 217 ipv6 enable 217 ipv6 address autoconfig 218 ipv6 icmp error-interval 218 show ipv6 icmp error-interval 219 ipv6 address 220 Contents 11
Command Line Interface Guide
Page 42
..., the static and cached list of interfaces configured for IP. IP Addressing Commands Command Group clear host dhcp ip address ip address dhcp ip default-gateway show ip interface arp arp timeout clear arp-cache show arp ip domain-lookup ip domain-name ip name-server ip host clear host show hosts Description Access Mode Sets an IP address on an interface from the DHCP server.
..., the static and cached list of interfaces configured for IP. IP Addressing Commands Command Group clear host dhcp ip address ip address dhcp ip default-gateway show ip interface arp arp timeout clear arp-cache show arp ip domain-lookup ip domain-name ip name-server ip host clear host show hosts Description Access Mode Sets an IP address on an interface from the DHCP server.
Command Line Interface Guide
Page 66
.... tacacs-server key Sets the authentication encryption key used for Simple Network Time Protocol (SNTP). radius-server source-ip Specifies the source IP address used for a server host to send SNMP traps or SNMP notifications. snmp-server contact Sets up the information ...the switch to reply. snmp-server host Specifies the recipient of RADIUS server hosts. spanning-tree pathcost method Sets the default pathcost method. sntp authentication-key Defines an authentication key for communication with RADIUS servers. spanning-tree max-age Configures the ...
.... tacacs-server key Sets the authentication encryption key used for Simple Network Time Protocol (SNTP). radius-server source-ip Specifies the source IP address used for a server host to send SNMP traps or SNMP notifications. snmp-server contact Sets up the information ...the switch to reply. snmp-server host Specifies the recipient of RADIUS server hosts. spanning-tree pathcost method Sets the default pathcost method. sntp authentication-key Defines an authentication key for communication with RADIUS servers. spanning-tree max-age Configures the ...
Command Line Interface Guide
Page 79
...bit positions to be ignored. • source-port - Enter a number or one string. Command Mode IP-Access List Configuration mode. • disable-port - Specifies the destination IP address of TCP flags. Specifies the UDP/TCP destination port. (Range: 0 - 65535) • destination-...port-wildcard - Specifies wildcard bits to be applied to the source IP address by placing 1s in bit positions to be applied to a one of -flags - Specifies wildcard bits to be ignored. • protocol - Default Configuration No IPv4 Access List is matched. • source - For ...
...bit positions to be ignored. • source-port - Enter a number or one string. Command Mode IP-Access List Configuration mode. • disable-port - Specifies the destination IP address of TCP flags. Specifies the UDP/TCP destination port. (Range: 0 - 65535) • destination-...port-wildcard - Specifies wildcard bits to be applied to the source IP address by placing 1s in bit positions to be applied to a one of -flags - Specifies wildcard bits to be ignored. • protocol - Default Configuration No IPv4 Access List is matched. • source - For ...
Command Line Interface Guide
Page 138
Syntax • show sntp status This command has no default configuration. Command Mode Privileged EXEC mode. Default Configuration This command has no keywords or arguments. User Guidelines There are no user guidelines for this ...AFE252C1.6DBDDFF2 Unknown AFE21789.643287C9 Offset [mSec] ----7.33 8.98 Delay [mSec] -----117.79 189.19 Broadcast: Interface --------176.1.1.8 176.1.8.179 IP address ---------Primary Secondary Last response AFE252C1.6DBDDFF2 AFE21789.643287C9 138 Clock Examples The following example shows the status of the Simple Network Time Protocol (SNTP...
Syntax • show sntp status This command has no default configuration. Command Mode Privileged EXEC mode. Default Configuration This command has no keywords or arguments. User Guidelines There are no user guidelines for this ...AFE252C1.6DBDDFF2 Unknown AFE21789.643287C9 Offset [mSec] ----7.33 8.98 Delay [mSec] -----117.79 189.19 Broadcast: Interface --------176.1.1.8 176.1.8.179 IP address ---------Primary Secondary Last response AFE252C1.6DBDDFF2 AFE21789.643287C9 138 Clock Examples The following example shows the status of the Simple Network Time Protocol (SNTP...
Command Line Interface Guide
Page 149
... Privileged EXEC mode. Default Configuration This command has no spanning-tree vlan database vlan 2 exit interface range ethernet g(1-2) switchport access vlan 2 exit interface vlan 2 bridge address 00:00:00:00:00:01 ethernet g1 exit interface ethernet g1 gvrp enable exit gvrp enable interface ethernet g24 ip address dhcp exit ip name-server 10.6.1.36...
... Privileged EXEC mode. Default Configuration This command has no spanning-tree vlan database vlan 2 exit interface range ethernet g(1-2) switchport access vlan 2 exit interface vlan 2 bridge address 00:00:00:00:00:01 ethernet g1 exit interface ethernet g1 gvrp enable exit gvrp enable interface ethernet g24 ip address dhcp exit ip name-server 10.6.1.36...
Command Line Interface Guide
Page 183
... update frequency ofthe DHCP snooping binding file. Default Configuration No static binding exists. Default Configuration 1200. Command Mode Global Configuration mode. Specify a MAC address. • vlan-id - Specify Ethernet port. • port-channel-number - Command Mode Privileged EXEC mode. Syntax • ip dhcp snooping binding mac-address vlan-id ip-address {ethernet interface | port-channel port- channel...
... update frequency ofthe DHCP snooping binding file. Default Configuration No static binding exists. Default Configuration 1200. Command Mode Global Configuration mode. Specify a MAC address. • vlan-id - Specify Ethernet port. • port-channel-number - Command Mode Privileged EXEC mode. Syntax • ip dhcp snooping binding mac-address vlan-id ip-address {ethernet interface | port-channel port- channel...
Command Line Interface Guide
Page 184
Example The following example clears the DHCP binding database. Syntax • clear ip dhcp snooping database Default Configuration HTTP server is disabled by default. Command Mode Privileged EXEC mode. User Guidelines • There are no user guidelines for this command,... User Guidelines • After entering this command. Console# ip dhcp snooping binding mac-address vlan-id ip-address {ethernet interface | portchannel port-channel-number} expiry seconds clear ip dhcp snooping database Use the clear ip dhcp snooping database privileged EXEC command to display the DHCP snooping...
Example The following example clears the DHCP binding database. Syntax • clear ip dhcp snooping database Default Configuration HTTP server is disabled by default. Command Mode Privileged EXEC mode. User Guidelines • There are no user guidelines for this command,... User Guidelines • After entering this command. Console# ip dhcp snooping binding mac-address vlan-id ip-address {ethernet interface | portchannel port-channel-number} expiry seconds clear ip dhcp snooping database Use the clear ip dhcp snooping database privileged EXEC command to display the DHCP snooping...
Command Line Interface Guide
Page 185
... the DHCP snooping binding database and configuration information for this command. DHCP Snooping 185 User Guidelines • There are no default configuration. Specify a MAC address. • ip-address - Specify a VLAN number. • interface - Default Configuration This command has no user guidelines for all interfaces on following example displays the DHCP snooping configuration. Specify Ethernet port...
... the DHCP snooping binding database and configuration information for this command. DHCP Snooping 185 User Guidelines • There are no default configuration. Specify a MAC address. • ip-address - Specify a VLAN number. • interface - Default Configuration This command has no user guidelines for all interfaces on following example displays the DHCP snooping configuration. Specify Ethernet port...
Command Line Interface Guide
Page 200
... following example defines the source IP address to default. VLAN ID value. Default Configuration This command has no ip igmp snooping querier address • ip-address - Command Mode User EXEC mode. 200 IGMP Snooping Commands Use the no IP address is configured for the VLAN, it is disabled. Syntax • ip igmp snooping querier address ip-address • no default configuration. Command Mode Interface Configuration...
... following example defines the source IP address to default. VLAN ID value. Default Configuration This command has no ip igmp snooping querier address • ip-address - Command Mode User EXEC mode. 200 IGMP Snooping Commands Use the no IP address is configured for the VLAN, it is disabled. Syntax • ip igmp snooping querier address ip-address • no default configuration. Command Mode Interface Configuration...
Command Line Interface Guide
Page 205
... renew of this command to remove. (Range: 1 - 158 characters.) • * - Use the no default configuration. Removes all entries from Dynamic Host Configuration Protocol (DHCP). Default Configuration This command has no form of the IP address. Syntax • clear host dhcp {name | *} • name - Console# clear host dhcp * ip address The ip address Interface Configuration mode command sets an...
... renew of this command to remove. (Range: 1 - 158 characters.) • * - Use the no default configuration. Removes all entries from Dynamic Host Configuration Protocol (DHCP). Default Configuration This command has no form of the IP address. Syntax • clear host dhcp {name | *} • name - Console# clear host dhcp * ip address The ip address Interface Configuration mode command sets an...
Command Line Interface Guide
Page 206
... length must be preceded by a forward slash (/). (Range: 8 -30) Default Configuration No IP address is defined for a range of the IP address. (Range: Valid Subnet mask) • prefix-length - Command Mode Interface Configuration (Ethernet, VLAN, port-channel). Example The following example configures VLAN 1 with the IP address 131.108.1.27 and subnet mask 255.255.255.0. This...
... length must be preceded by a forward slash (/). (Range: 8 -30) Default Configuration No IP address is defined for a range of the IP address. (Range: Valid Subnet mask) • prefix-length - Command Mode Interface Configuration (Ethernet, VLAN, port-channel). Example The following example configures VLAN 1 with the IP address 131.108.1.27 and subnet mask 255.255.255.0. This...
Command Line Interface Guide
Page 207
... g8 Console (config-if)# ip address dhcp ip default-gateway The ip default-gateway Global Configuration mode command defines a default gateway (router). User Guidelines • The ip address dhcp command allows any IP address that the DHCPDISCOVER message have a specific host name. Default Configuration This command has no ip default-gateway • ip-address - Syntax • ip default-gateway ip-address • no default configuration. Default Configuration No default gateway is the device...
... g8 Console (config-if)# ip address dhcp ip default-gateway The ip default-gateway Global Configuration mode command defines a default gateway (router). User Guidelines • The ip address dhcp command allows any IP address that the DHCPDISCOVER message have a specific host name. Default Configuration This command has no ip default-gateway • ip-address - Syntax • ip default-gateway ip-address • no default configuration. Default Configuration No default gateway is the device...
Command Line Interface Guide
Page 208
...displays the usability status of interfaces configured for IP. Example The following example defines an ip default gateway. Default Configuration This command has no user guidelines for this command. Console(config)# ip default-gateway 192.168.1.1 show ip interface The show ip interface [ethernet interface-number | vlan vlan...Port-channel number. Example The following example the displays the usability status of interfaces configured for IP. 208 IP Addressing Commands User Guidelines • There are no User Guidelines for this command. User Guidelines • There are no...
...displays the usability status of interfaces configured for IP. Example The following example defines an ip default gateway. Default Configuration This command has no user guidelines for this command. Console(config)# ip default-gateway 192.168.1.1 show ip interface The show ip interface [ethernet interface-number | vlan vlan...Port-channel number. Example The following example the displays the usability status of interfaces configured for IP. 208 IP Addressing Commands User Guidelines • There are no User Guidelines for this command. User Guidelines • There are no...
Command Line Interface Guide
Page 209
...to be specified. Because most hosts support dynamic resolution, static ARP cache entries do not need to translate 32-bit IP addresses into 48-bit hardware addresses. Port-channel number. Command Mode Global Configuration mode. Use the no arp ip_addr {ethernet interface-number | vlan ... number} • no form of this command to remove an entry from the ARP cache. IP address or IP alias to map to the specified IP address or IP alias. • ethernet interface-number - MAC address to map to the specified MAC address. • hw_addr - Default Configuration This command has no...
...to be specified. Because most hosts support dynamic resolution, static ARP cache entries do not need to translate 32-bit IP addresses into 48-bit hardware addresses. Port-channel number. Command Mode Global Configuration mode. Use the no arp ip_addr {ethernet interface-number | vlan ... number} • no form of this command to remove an entry from the ARP cache. IP address or IP alias to map to the specified IP address or IP alias. • ethernet interface-number - MAC address to map to the specified MAC address. • hw_addr - Default Configuration This command has no...
Command Line Interface Guide
Page 210
...an entry remains in the ARP cache. Example The following example adds the IP address 198.133.219.232 and MAC address 00:00:0c:40:0f:bc to 12000 seconds. Syntax • clear arp-cache Default Configuration This command has no form of this command to less than 3600...timeout 12000 clear arp-cache The clear arp-cache Privileged EXEC mode command deletes all dynamic entries from the ARP cache. Use the no default configuration. 210 IP Addressing Commands Syntax • arp timeout seconds • no arp timeout • seconds - Command Mode Global Configuration mode. User Guidelines •...
...an entry remains in the ARP cache. Example The following example adds the IP address 198.133.219.232 and MAC address 00:00:0c:40:0f:bc to 12000 seconds. Syntax • clear arp-cache Default Configuration This command has no form of this command to less than 3600...timeout 12000 clear arp-cache The clear arp-cache Privileged EXEC mode command deletes all dynamic entries from the ARP cache. Use the no default configuration. 210 IP Addressing Commands Syntax • arp timeout seconds • no arp timeout • seconds - Command Mode Global Configuration mode. User Guidelines •...
Command Line Interface Guide
Page 211
...-channel-number - Console# clear arp-cache show arp The show arp [ip-address ip-address] [mac-address mac-address] [ethernet interface | port-channel port- IP Addressing Commands 211 Displays the ARP entry of a specific MAC address. • interface - Syntax • show arp Privileged EXEC mode command... There are no user guidelines for this command. channel-number] Parameters • ip-address - Example The following example deletes all dynamic entries from the ARP cache. Default Configuration This command has no user guidelines for this command. User Guidelines •...
...-channel-number - Console# clear arp-cache show arp The show arp [ip-address ip-address] [mac-address mac-address] [ethernet interface | port-channel port- IP Addressing Commands 211 Displays the ARP entry of a specific MAC address. • interface - Syntax • show arp Privileged EXEC mode command... There are no user guidelines for this command. channel-number] Parameters • ip-address - Example The following example deletes all dynamic entries from the ARP cache. Default Configuration This command has no user guidelines for this command. User Guidelines •...
Command Line Interface Guide
Page 212
...Default Configuration The DNS -based host name-to -address translation. Console (config)# ip domain-lookup 212 IP Addressing Commands Example The following example enables the IP Domain Naming System (DNS)-based host name-to disable the DNS. Syntax • ip domain-lookup • no ip domain-lookup This command has no user guidelines for this command to -address...g1 g2 IP address 10.7.1.102 10.7.1.135 HW address status 00:10:B5:04:DB:4B Dynamic 00:50:22:00:2A:A4 Static ip domain-lookup The ip domain-lookup Global Configuration mode command enables the IP Domain Naming ...
...Default Configuration The DNS -based host name-to -address translation. Console (config)# ip domain-lookup 212 IP Addressing Commands Example The following example enables the IP Domain Naming System (DNS)-based host name-to disable the DNS. Syntax • ip domain-lookup • no ip domain-lookup This command has no user guidelines for this command to -address...g1 g2 IP address 10.7.1.102 10.7.1.135 HW address status 00:10:B5:04:DB:4B Dynamic 00:50:22:00:2A:A4 Static ip domain-lookup The ip domain-lookup Global Configuration mode command enables the IP Domain Naming ...
Command Line Interface Guide
Page 304
... mode command specifies the source IPv6 address used for communication with RADIUS servers. Default Configuration The default IP address is the outgoing IP interface. Use the no user guidelines for communication with RADIUS servers to the default. radius-server source-ip The radius-server source-ip Global Configuration mode command specifies the source IP address used for the IPv6 communication with...
... mode command specifies the source IPv6 address used for communication with RADIUS servers. Default Configuration The default IP address is the outgoing IP interface. Use the no user guidelines for communication with RADIUS servers to the default. radius-server source-ip The radius-server source-ip Global Configuration mode command specifies the source IP address used for the IPv6 communication with...
User's Guide
Page 219
snmp-server v3-host {ip-address | hostname} username [traps | informs] {noauth | auth | priv} [udp-port port] [filter filtername] [timeout seconds] [retries retries] Creates or updates a notification recipient ...a notification recipient receiving notifications in SNMP version 3. show snmp Community-String public private Community-Access View name read only user-view read write default IP address ---------All 172.16.1.1 private su DefaultSuper 172.17.1.1 Configuring System Information 219 The following table summarizes the equivalent CLI commands for viewing fields ...
snmp-server v3-host {ip-address | hostname} username [traps | informs] {noauth | auth | priv} [udp-port port] [filter filtername] [timeout seconds] [retries retries] Creates or updates a notification recipient ...a notification recipient receiving notifications in SNMP version 3. show snmp Community-String public private Community-Access View name read only user-view read write default IP address ---------All 172.16.1.1 private su DefaultSuper 172.17.1.1 Configuring System Information 219 The following table summarizes the equivalent CLI commands for viewing fields ...