Syntax SET TRAce [[IPaddress=]ipadd|domain-name]
[ADDROnly={No|OFf|ON|Yes}] [MAXTtl=number]
[MINTtl=number] [NUMber=number]
[POrt=1..65535] [SCReenoutput={No|OFf|ON|Yes}]
[SOurce=ipadd] [TIMEOut=number] [TOS=0..25]
where:
■ ipadd is an IPv4 address in dotted decimal notation, a valid IPv6 address or a host name from the host name table.
■ domain-name is a valid network domain name.
■ number is a decimal number.
Description This command sets default options for the trace route command.
If there is no default destination and a destination is not specified with the trace command on page 13-185, then a trace is not performed and an error message is displayed.
The ipaddress parameter specifies the destination IP address. The command traces the route to this IP address. To configure a DNS for the switch to use to resolve domain names, use the add ip dns command on page 13-57.
The addronly parameter specifies whether trace output is presented as IP addresses only, as opposed to IP addresses and their DNS name equivalent. If on, output is presented as IP addresses. The default is yes.
The maxttl parameter specifies the maximum value for the TTL (Time To Live) field in the IP packet, and is used to limit the trace route to a maximum number of hops. The default is 30.
The minttl parameter specifies the initial value of the TTL (Time To Live) field in the IP packet, and can be used to skip hops at the start of the route. The default is 1.
The number parameter specifies the number of packets to send to each hop. A maximum of 100 packets may be transmitted. The default is 3.
The port parameter specifies the UDP destination port number that trace uses to transmit the packet to the first hop destination. The destination UDP port number is incremented by one for each subsequent hop so that trace can match reply packets to transmitted packets. You should set port to a value such that all devices along the trace route will be listening on the appropriate UDP port.
The default is 33434.
The screenoutput parameter specifies whether the output is sent to the terminal. The default is yes.
The source parameter specifies the IP address to use as a source address in the packets. If this parameter is not set, the default IPv4 address of the interface is set as the source address. Because this IPv4 address causes a conflict when an IPv6 address is specified in the ipaddress parameter, this parameter is required when tracing a route to an IPv6 address.
The timeout parameter specifies how long to wait for a response before sending packets to the next hop. If ICMP “unreachable” messages are received within the timeout period, packets are transmitted to the next hop
immediately. The default is 3.
The tos parameter specifies the value of the TOS (Type Of Service) field in the IP header of the packets being transmitted. The default is 0.
Related Commands add ip host show trace stop trace trace
show ip
Syntax SHow IP
Description This command displays general configuration information regarding the switch (Figure 13-12, Table 13-12 on page 13-138).
Software Version 2.9.1/3.2.1
Figure 13-12: Example output from the show ip command
IP Module Configuration
---Module Status ... ENABLED
IP Packet Forwarding ... ENABLED IP Echo Reply ... ENABLED IP Spoof Check ... ENABLED Debugging ... DISABLED IP Fragment Offset Filtering ... ENABLED Default Name Servers
Primary Name Server ... 192.168.1.1 (ppp0) Secondary Name Server ... Not Set
Name Server ... 192.168.1.1 (ppp0) Secondary Name Server ... Not Set
Source-Routed Packets ... Discarded Remote IP address assignment ... DISABLED DNS Relay ... DISABLED IP ARP LOG ... ENABLED IP ARP refresh by hit ... ENABLED IP/MAC address disparity... DISABLED IP ARP agepoll ... DISABLED Routing Protocols
RIP Neighbours ... 1 Autonomous System Number ... Not Set
ARP aging timer multiplier... 4 (1024-2048 secs) Arp wait timeout ... 1 secs
OSPF Status ... DISABLED IGMP Status ... ENABLED DVMRP Status ... ENABLED PIM Status ... DISABLED IP Multicast HW switching ... ENABLED BGP Status ... ENABLED Active Routes
Static ... 0 Interface ... 1 RIP ... 4 OSPF ... 0 BGP ... 0 Other ... 0 Multicast ... 5 IP Filter Configuration
Filter 200 ... 1 pattern Total filters ... 0
Dynamic Interfaces ... 0
Table 13-12: Parameters in output of the show ip command
Parameter Meaning
Module Status Whether the IP module is enabled.
IP Packet Forwarding Whether the IP forwarding function is enabled and forwarding or disabled and in server mode.
IP Echo Reply Whether replies to echo request messages are enabled.
IP Spoof Check Whether IP checks for spoofed packets. When enabled, IP drops any packets received where the source address matches the IP address of a local interface.
Debugging Whether the IP debugging facility is enabled.
IP Fragment Offset Filter Whether the IP fragment offset filtering is enabled.
Default Name Servers Configuration of default name servers. More detailed information about the default and domain specific name servers can be displayed with the show ip dns command.
Primary Name Server IP address of the default primary name server if assigned. If the address was learned using IPCP negotiation, the name of the interface used for the IPCP negotiation is also displayed.
Secondary Name Server IP address of the default secondary name server if assigned. If the address was learned using IPCP negotiation, the name of the interface used for the IPCP negotiation is also displayed.
Source-Routed Packets Whether source-routed packets are forwarded or discarded.
Remote IP address assignment Whether remote IP address assignment is enabled.
DNS Relay Whether the DNS relay agent is enabled.
IP ARP LOG Whether ARP logging is enabled.
IP ARP refresh by hit Whether ARP entry refreshing is enabled
IP/MAC address disparity Whether the switch accepts packets with conflicting IP and MAC addresses, and allows ARP entries with multicast MAC addresses. One of “enabled” or
“disabled”.
IP ARP agepoll How the switch treats dynamic ARP entries once they have timed out. When enabled, the switch checks whether devices are still attached to the network before deleting their dynamic ARP entries.
RIP Neighbours Number of RIP neighbours defined.
Autonomous System Number The autonomous system number used by the BGP module, or “Not Set” if an autonomous system number is not assigned.
ARP aging timer multiplier The multiplier value applied to ARP aging timers, and the resulting current range of ARP aging timer values.
Arp wait timeout The amount of time the switch waits for a response after it sends an ARP request message, in seconds.
OSPF Status Whether the OSPF routing module is enabled.
IGMP Status Whether the IGMP protocol module is enabled.
DVMRP Status Whether the DVMRP routing module is enabled.
Software Version 2.9.1/3.2.1
Related Commands disable ip disable ip debug disable ip dnsrelay disable ip forwarding disable ip srcroute disable snmp enable ip enable ip debug enable ip dnsrelay enable ip forwarding enable ip srcroute enable snmp set ip arp refresharp set ip nameserver
set ip secondarynameserver
PIM Status Whether the PIM-SM multicast routing module is enabled.
IP Multicast HW switching Whether multicast hardware switching is enabled.
Enabling IP also enables multicast switching and it remains enabled.
BGP Status Whether the BGP-4 (Border Gateway Protocol version 4) module is enabled.
Static Number of static routes in use.
Interface Number of interface-related routes in use.
RIP Number of RIP-derived routes in use.
OSPF Number of OSPF-derived routes in use.
BGP Number of BGP-derived routes in use.
Other Number of other routes in use.
Multicast Number of multicast forwarding table entries.
Filter n Number of patterns in filter n.
Total Filters Total defined IP filters.
Table 13-12: Parameters in output of the show ip command (cont.)
Parameter Meaning