This document describes the Internet Protocol (IP) implementation and includes the following sections:
Internet Protocol Overview
Configuring IP
Other Configuration Tasks
IP Commands
Internet Protocol Overview
IP is a network layer protocol that provides a connectionless service for the delivery of data. The fact that it is connectionless makes IP an unreliable protocol, one that tries but does nothing to guarantee the delivery of data. As used on the Internet, IP is the package used to carry data; actual delivery of the data is assured by transport layer protocols like TCP (Transmission Control Protocol).
The Nx Networks IP implementation conforms to standards defined by the TCP/IP protocol suite.
IP Addresses
IP addresses identify where a host's interface attaches to the IP network or a particular network segment. If, for example, a host has more than one interface attached to the network, that host would have an IP address for each connection. This makes an IP address much like a postal street address, indicating where to send the data, not to whom to send the data.
An IP address is a 32-bit number in the header of an IP datagram that encodes network segment identification, as well as identification of a unique host on that network. This 32-bit number is commonly represented in dotted decimal notation. In this notation, each decimal integer represents one octet of the 32-bit address.
Thus a 32-bit IP address, in base 2
10000000 00001010 0000010 00011110
is written as the following set of decimal numbers:
Each IP address forms a pair of identifiers, the netid and the hostid.
A Class A address is used for any network having more than 65,536 hosts. Only 127 Class A network numbers exist. A host interprets a Class A address by reading bit 0 of the 32-bit address. If this bit is set to 0, the host interprets the netid as the first 8 bits and hostid as the last 24 bits.
A Class B address is used for any intermediate size network having between 256 and 65,536 hosts. With this address, the first 16 bits of the 32-bit address are devoted to the netid and last 16 bits are devoted to the hostid. A host interprets this address by reading bits 0 and 1 of the 32-bit address. If these bits are set to 1 and 0, respectively, then the host interprets the netid field as the first 16 bits and the hostid field as the last 16 bits.
A Class C address is used for any network having less than 256 hosts. With this address, the first 24 bits are devoted to the netid and last 8 bits to the hostid. A host interprets this address by reading bits 0, 1, and 2 of the 32-bit address. If these bits are set to 1, 1, 0 respectively, then the host interprets the netid field as the first 24 bits and the hostid field as the last 8 bits.
A Class D address is used for IP multicasting. With this address, the first 4 bits contain 1110 and identify the address as a multicast. Bits 4 through 31 identify the specific multicast group.
This implementation of IP lets you assign multiple IP addresses on the same interface. Multiple IP address provide flexibility when
Migrating from one IP address to another.
Using two subnets on the same physical network segment. For example, it is possible that the number of hosts on the physical network segment exceeds the current subnet's capacity. When this occurs, you must add another subnet to the physical network segment.
When using multiple addresses, the router sends IP broadcasts only to the first address on the interface.
You should restrict multiple addresses on the same interface to LAN interfaces.
An organization's subnet structure is never visible outside the organization's network from a host (or router) located anywhere on the internet. It gives the organization the freedom to administer its internal network segments without having to deal with internet management.
Conceptually, adding subnetting only changes the interpretation of the IP address. Subnetting divides the address into a network ID, subnet ID, and host ID as shown in Figure 17. A combination of network ID and subnet ID identifies the network segment.
There is no set standard for the width of the subnet part; it can be a few bits wide to most of the width of the hostid field.
Subnet Mask
When adding an IP address to an interface, you must specify the subnet mask.
Subnet masks identify the portion of the address occupied by the netid and the subnetid. The mask is simply another 32-bit string written in dotted decimal notation with all ones in the network and subnet portion of the address.
For example, suppose you have a class B address. You want to assign the first 8 bits of the hostid as the subnet id. Following the rule of placing all ones in the netid and subnetid fields, you get a a mask of 255.255.255.0 as shown in Figure 18.
The subnetid can consist of any number of host field bits that do not have to be multiples of eight. For example, you may want to assign the first ten bits of the hostid as the subnetid. This creates a mask of 255.255.255.192. Figure 19 illustrates this mask.
You should use three or more bits for a subnet id; a subnet id of two bits yields only four subnets, two of which are reserved (the 1,1 and 0,0 values).
Table 20 shows the subnet masks subnet and host fields that you can get from dividing an octet.
| Subnet Bits | Host Bits |
Byte of Hex Mask |
Byte of Decimal Mask |
|---|---|---|---|
| 0 | 8 | 0 | 0 |
| 1 | 7 | 0x80 | 128 |
| 2 | 6 | 0xC0 | 192 |
| 3 | 5 | 0xE0 | 224 |
| 4 | 4 | 0xF0 | 240 |
| 5 | 3 | 0xF8 | 248 |
| 6 | 2 | 0xFC | 252 |
| 7 | 1 | 0xFE | 254 |
Note: All interfaces running RIP must have the same subnet mask.
The Nx Networks IP implementation supports variable-length subnets. This feature lets you divide the hostid of a single IP network number into many variable size subnets. For example, 128.185 could have a subnet 128.185.22.0 with subnet mask of 255.255.255.0 (giving a size of 254 possible hosts) and a subnet 128.185.23.16 with mask 255.255.255.240 (giving a size of 14 possible hosts).You can use variable-length subnets only with dynamic routing protocols that distribute each destination's subnet mask (that is, OSPF protocol). IP also allows static routing information to take advantage of variable-length subnetting.
CAUTION:
Assign variable length subnets with care. If you assign a subnet in an overlapping fashion, problems may occur.
If you are planning to connect your networks and routers to the Internet, talk to your Internet Service Provider, the Internic (http://rs.internic.net), or the address registry in your country to get IP addresses.
Autonomous Systems
The other main facet of IP addressing is the Autonomous Systems (AS). In a large internet, there is not a single administrative authority. Rather, the system consists of many cooperating groups. Often each group wants to retain a high degree of control over its piece of the system to prevent contamination from problems elsewhere in the system.
For this purpose, groups of routers are arranged into autonomous systems. AS's are numbered sequentially by 16-bit identifiers with no structure. There is no direct connection between IP addresses and AS numbers. The Internic (http://rs.internic.net) assigns AS numbers. Typically an organization is assigned a single AS number.
The following section on IP Routing further describes the function of autonomous systems.
IP Routing
IP uses routing tables to decide where to send a packet. The routing table is a list of all the network segments that IP knows how to reach. The routing table contains both dynamic and static routes.
A dynamic route is one that the router learns through a routing protocol, such as the Routing Information Protocol (RIP). RIP regularly updates the routing tables as network conditions change. Dynamic routing allows the router to transmit packets around network failures.
A static route is a route that never changes. You must enter a static route when configuring IP. Static routes persist across power-downs, restarts, and software reloads. The router uses them when for some reason it cannot determine the correct dynamic route.
IP routing happens as follows:
Maintaining default routers (gateways).
Martian filtering.
Using unnumbered serial lines for network traffic.
Allowing dynamic IP address assignment
Default Network-Gateway - Performs routing for other routers on an internet that has packet traffic for an unknown-network destination.
Default Subnet-Gateway - Performs subnet routing in a network where the other routers do not know how to route traffic for specific subnets.
Note: Not all router loads include OSPF.
In Figure 20, the network segments are 13.101.0.0, 13.102.0.0, 13.103.0.0, 13.104.0.0, and 9.105.0.0. The routers are Azure, Blue, Cobalt, and Dresden; where Dresden is the default network gateway because it has knowledge of network 13 and any other networks. Network 13 routers do not have any knowledge of networks outside network 13.On network segment 13.104, unknown-network traffic goes first to router Dresden then toward the appropriate destination.
Figure 20 Internet with Default Gateway (Dresden)
Martian Filtering
Martian is a humorous term that applies to packets that are incorrectly formatted or have an improper destination address. The router drops these packets to ensure that Martians are not forwarded further into the network.
Address filtering ensures that IP does not forward any packets to those specified addresses, nor does it broadcast any routing information it receives concerning those addresses. For example, address 127.0.0.0 is used as a local loop-back address in BSD-derived UNIX-based operating systems. You should install filters on your routers to ensure that your routers receive and relay only packets with valid IP addresses.
Unnumbered Serial Lines
This implementation of IP allows you to send IP traffic over a serial line interface without assigning an IP network number to that line. This feature allows you to configure static routes across the line to the next hop router or to a default gateway; however, this feature also includes the following restrictions on certain diagnostic capabilities:
You cannot run Ping to the interface to find out if it is functional.
You cannot load the router's software over an unnumbered serial line. The router software loading uses TFTP or FTP, which requires a destination IP address.
RIP does not send or transmit subnet routes over unnumbered serial lines.
Router ID
The router ID is the default IP address that IP uses when sourcing various kinds of IP traffic. When you set the router ID, the router ID becomes the source IP address in all locally-originated IP packets either that the router sends over unnumbered serial lines or that are multicasts.
Internal IP Address
The internal IP address is an address that belongs to the router as a whole, and not any particular interface. The router uses it only when the router needs to be assured of always having a particular address available or when the router is the source of many multicast packets, for example, when the router is running IP multicast bridging tunnel.
When you set the internal IP address,
The internal IP address becomes the source IP address in all locally-originated IP packets either that the router sends over unnumbered serial lines or that are multicast.
To 0.0.0.0, the router deletes the internal IP address.
The internal IP address takes precedence over the router ID if you also set the router ID.
IP also forwards directed broadcasts. A directed broadcast is a broadcast destined for networks other than the networks on which it originated. By enabling IP's directed-broadcast feature, you can forward IP packets whose destination is a nonlocal (for example, remote LAN) broadcast address. For example, the source host originates a unicast packet. IP then forwards the packet, as a unicast, to a destination subnet and explodes the packet into a broadcast. You can use this feature to locate network servers and to enable both the forwarding and exploding of directed broadcasts. The default setting for the directed broadcast is enabled.
IP Multicast Routing
The IP protocol also supports IP multicast routing through IP multicast extensions to OSPF (MOSPF). (This is only true if your router software supports OSPF.)
The following existing TCP/IP applications take advantage of the multicast support this MOSPF implementation provides:
Any application that uses the IGMP protocol to establish group membership. Examples of this include the Silicon Graphics' Dogfight program and the voice conferencing program ("vat") that is run over DARTNet. Both of these applications run over UNIX and require a multicast kernel. They also usually use DVMRP as their multicast routing protocol, but you can substitute MOSPF for DVMRP without loss of functionality.
The Multicast Backbone, or MBONE, uses DVMRP. MOSPF and DVMRP running on the boundary router of an organization can connect multicast traffic from the Internet to the MOSPF network within the company.
The router's IP monitoring prompt supports a ping command that accepts a class D address as destination. The ping command displays the IP address of the (possible) multiple responders.
The router's OSPF monitoring prompt supports join and leave commands that enable the router to establish multicast group membership. After joining a multicast group, the router responds to pings and SNMP queries sent to the group address. If you want to make the router's group membership permanent in the configuration, you can use the analogous join and leave commands at the OSPF configuration prompt.
Policy routing uses IP filters and policy profiles to decide where to send a packet. The routes are static, which means the route never changes. Static routes persist across power downs, restarts, and software reloads. Using Policy Routing provides detailed information.
Tunneling Other Network Protocols Over IP
To allow IBM LAN and terminal traffic to merge with non-IBM traffic (for example, Digital and Novell) across a single backbone, the Source Routing Bridge Tunnel and SDLC (Synchronous Data Link Control) Relay features of the router software encapsulate IBM traffic within industry-standard TCP/IP packets. The router then routes these packets using an IP path or tunnel through large IP internetworks. The benefit is increased functionality and network utilization, as well as higher network availability and increased ease of use.
End stations see the IP path (the tunnel) as a single hop, regardless of the network complexity. This helps overcome the usual seven-hop distance limit encountered in source routing configurations. It also lets you connect source routing end stations across nonsource routing media, such as Ethernet networks.
The bridging tunnel also overcomes several limitations of regular source routing, including the following:
Distance limitations of seven hops
Large amounts of overhead that source routing causes in Wide Area Networks (WANs)
Source routing's sensitivity to WAN faults and failures (if a path fails, all systems must restart their transmissions)
The tunnel is transparent to the end stations. The routers participating in tunneling treat the IP internet as one of the bridge segments. When the packet reaches the destination interface, the software automatically removes the TCP/IP headers and the inner packet proceeds as a standard source routing packet.
Encapsulation and OSPF
A major benefit of the encapsulation feature is the addition of the OSPF dynamic routing protocol to the routing process. OSPF offers the following benefits when used with encapsulation:
Least-Cost Routing. OSPF accesses the fastest path (tunnel) with the fewest delays allowing network administrators to distribute traffic over the least expensive route.
Dynamic Routing. OSPF looks for the least-cost path as well as detects failures and reroutes traffic with low overhead.
Multi-Path Routing. Load sharing makes more efficient use of available bandwidth.
Configuring IP
This section outlines the initial steps required to configure IP. After completing these tasks, restart the router for the new configuration to take effect. The following sections discuss each configuration task in more detail.
Config> prompt:Config>protocol IP
IP config>
Use the add address command to assign IP addresses to the network interfaces. You can obtain the net (interface) number using the list interface command at the Config> prompt.
IP allows you to use a serial line interface for IP traffic without assigning an IP address to the line. However, you must still assign each serial line a label. Use the add address command to assign the serial line an address of the form 0.0.0.n, where n is the interface number (again obtained from the list interfaces command). This address format tells the router that the interface is an unnumbered serial line.
For PPP interfaces, you can set up unnumbered serial lines so that the router or server at the other end of the PPP link dynamically assigns an IP address for the interface. The router uses PPP's IP Control Protocol (IPCP) address negotiation. To set up a PPP interface for dynamic address assignment, follow these steps:
IP Config> prompt enter add address.
IP config>add address
Which net is this address for [0]? 1
New address [0.0.0.0]? 0.0.0.1
Allow dynamic address assignment(Yes or [No]): yes
Address mask [255.255.255.0]?
Default Network Gateway. The router sends packets to default (authoritative) gateways when the router cannot find the packet destination in the routing table.
Default Subnet Gateway. If you are using subnetted networks, you can define a separate default gateway for each subnetted network.
Static Network/Subnet Route. You can set up fixed routes for destinations.
In the following example, the next hop toward the default gateway is 192.9.1.4 and the cost of sending a packet to the default gateway is 5.
Both OSPF and RIP can learn and advertise default gateways. For OSPF, you can configure a router to advertise itself as the default gateway with the following OSPF command:IP Config>set default network-gateway
Default gateway [0.0.0.0]? 192.9.1.4
gateway's cost [0]? 5
You can set up RIP to advertise the default gateway (if it has any) to its neighbors. You can also set up RIP so that a learned default gateway does (or does not) override a statically configured default gateway. You accomplish these tasks with the following RIP commands:OSPF Config>enable AS-boundary-routing
If your network is attached to the Internet, then the boundary router, which connects your network to your Internet Service Provider (ISP), should have a default route pointing to your ISP. Since your router does not know of every route on the Internet, your router assumes any addresses it does not recognize are on the Internet and sends those packets to your ISP. Your IGP should then distribute the knowledge that the boundary router knows the default route (in this case, to the Internet) so that other routers know to send packets to unknown destinations to that router.RIP Config>enable/disable sending default-routes
RIP Config>enable/disable override default
Default Subnet Gateway
You can configure a default subnet gateway for each subnetted network that the router knows about. When the router attempts to forward a packet to a destination belonging to the subnetted network, but it cannot find that destination in the routing table, it forwards the packet to the default subnet gateway.
Configuring a default subnet gateway is the same as configuring a Default Network Gateway. The only difference is that you must specify the subnetted network. For example, to create a default subnet gateway for the subnetted network 18.0.0.0, use the following command:
The above example specifies that the next hop to the subnet default gateway is 128.185.123.22, and that the cost of routing a packet to the default subnet gateway is 2.IP Config>set default subnet-gateway
For which subnetted network [0.0.0.0]? 18.0.0.0
Default gateway [0.0.0.0]? 128.185.123.22
gateway's cost [0]? 2
Static Network/Subnet Route
You can set up static routes if you want a fixed route to a destination or if dynamic routing protocols cannot discover a destination. When dynamic routing information is not available for a destination, the router uses static routes.
Specify the route to the destination by the IP address of the next hop (Via gateway), and the cost of routing the packet to the destination. The next hop must be on the same (sub)net as one of the router's interfaces.
To create a static route, use the add route command.
You can set up multiple routes to a destination. See add route for more information.IP Config>add route
IP destination [0.0.0.0]? 128.1.2.0
Address mask [0.0.0.0]? 255.255.255.0
Via gateway at [0.0.0.0]? 128.185.123.22
Cost [1]? 6
Use change route to modify a route and delete route to delete a route.
Routes dynamically learned through the OSPF and RIP protocols can override static routes. For RIP, you can disable this override behavior. See Setting RIP Flags.
Setting Up Policy Routing
To implement policy routing, you set up IP filters to
tag certain types of packets and then create static routes for the tagged packets
using policy routing. Each route specifies the next hop for any packet with a
specific tag. Then you add these routes to a policy profile and attach the profile
to a specific incoming interface. See Using Policy
Routing.
Enabling ARP Subnet Routing
If there are hosts on attached subnetted networks that do not support IP subnetting, use Address Resolution Protocol (ARP) subnetting routing (described in RFC 1027). When you configure the router for ARP subnet routing, it replies by proxy to ARP requests for destination (that is, off the LAN if the router is itself the best route to the destination). For proper operation, configure all routers attached to a LAN containing subnetting-ignorant hosts for ARP subnet routing.
To enable ARP subnet routing, use the following command:
Some IP hosts ARP for all destinations, whether or not they are attached to the local network segment. For these hosts, ARP subnet routing is not enough and you must see the proxy ARP functionality specified in RFC 925 instead. RFC 925 ARP routing is a subset of ARP subnet routing.IP Config>enable ARP-subnet-routing
To enable RFC 925 ARP routing, use the following command:
IP Config>enable RFC-925
The following terms are useful when discussing the BOOTP forwarding process:
BOOTP client - the diskless workstation
BOOTP servers - the boot host (with UNIX daemon bootpd or DOS version available from FTP software)
BOOTP relay agent or BOOTP forwarder - your router
Note:
If multiple hops are required before reaching the BOOTP agent, the packet is routed normally via IP. All other routers would not examine the packet to determine whether it is a BOOTP packet.
When enabling BOOTP, you are prompted for the following values:IP Config>enable/disable bootp
Maximum number of application hops you want the BOOTP request to go. This is the maximum number of BOOTP relay agents that can forward the packet. This is NOT the maximum number of IP hops to the BOOTP server. A typical value for this parameter is 1.
Number of seconds you want the client to retry before the BOOTP request is forwarded. This parameter is not commonly used. A typical value for this parameter is 0.
To add a BOOTP server to the router's configuration, enter the following command at the IP configuration prompt:
You can configure multiple servers. In addition, if only the network number of the server is known or if multiple servers reside on the same network segment, a broadcast address can be configured for the server.IP Config>add BOOTP-SERVER IP-address-of-server
Configuring UDP Broadcast Forwarding
The UDP (User Datagram Protocol) broadcast feature allows the router to forward UDP broadcast frames to specific IP addresses.
For example, NetBIOS uses UDP broadcasts in some client-server applications to broadcast Name-Query frames. Unless you set up UDP broadcast forwarding, the router drops those frames.
You can configure UDP broadcast so that the router directs frames to a network-level or subnet broadcast IP address. You can set up UDP broadcast to forward packets to the next destination by broadcasting to the next router, or to forward to the final destination by supplying a host address or directed broadcast address on the final network.
Follow these steps to configure UDP broadcast forwarding:
IP config>add udp-destination
UDP port number [-1]? 36
Destination IP address [0.0.0.0]? 20.1.2.2
IP Config>enable udp-forwarding
For which UDP port number [-1]? 36
Enter list udp-forwarding to see the UDP broadcast configuration.
Configuring DHCP Server
To configure DHCP server, do the following:
OpenROUTE software supports a DHCP server only on LAN interfaces.
You configure a DHCP server per interface. If you have more than one LAN interface, you need to provide the interface number when configuring the server.
Press Space twice after you type a command to display the available options for each command. Enter help for information about using the command line interface.
[C] means the command is available at the IP config> prompt.
[M] means the command is available at the IP> prompt.
| Command | Function |
|---|---|
| Add [C] | Adds interface addresses, bootp server, hostname, routes, and UDP broadcast destinations. |
| Cache [M] | Displays a table of all recent routed destinations. |
| Change [C] | Modifies information that you originally entered with the add command. |
| Counters [C] | Lists various IP statistics, including counts of routing errors and packets dropped. |
| Delete [C] | Deletes IP configuration information that you entered with the add command. |
| DHC [M] | Displays the DHCP client prompt. |
| DHS [C] [M] | Displays the DHCP server prompt. |
| Disable [C] | Disables certain IP features that you turned on by the enable command. |
| DNS [C] [M] | Displays the DNS client prompt. |
| Dump Routing Tables [M] | Lists the contents of the IP routing table. |
| Enable [C] | Enables IP features, such as ARP subnet routing, originate default, directed broadcasts, BOOTP, and UDP broadcasts. |
| Exit [C] [M] | Exits the IP configuration or monitoring process. |
| Filters [C] [M] | Displays the IP filtering prompts. |
| Ftp [C] [M] | Displays the FTP server prompts. |
| Hostnames [M] | Displays the hostnames and IP addresses that you added using the add hostname command. |
| IGMP [C] | Displays the router's Internet Group Management Protocol (IGMP) configuration menus. |
| IPSec [C] | Displays the router's IPSec configuration menus. |
| List [C] | Displays IP configuration items. |
| NAT [C] [M] | Displays the Network Address Translation (NAT) prompts. |
| Ping [M] | Sends ICMP echo requests to another host once a second and watches for a response. Use this command to isolate trouble in an internetworking environment. |
| PolicyRt [C] [M] | Displays the Policy Routing prompts. |
| RIP [C] [M] | Displays the RIP prompts. |
| Route [M] | Lists whether a route exists for a specific IP destination, and if so, the routing table entry that corresponds to the route. |
| Set [C] | Sets IP parameters such as default routers and the size of the IP routing table. |
| Sizes [M] | Displays the size of specific IP parameters. |
| Static Routes [M] | Displays the static routes that have been configured including the default gateway. |
| Traceroute [M] | Displays the complete path (hop-by-hop) to a particular destination. |
| UDP-Forward [M] | Displays the UDP port numbers and destination IP addresses that you added using add udp-destination. |
Add [C]
Adds IP addresses, BOOTP server, hostname, routes, and UDP destination.
You must specify an IP address together with its subnet mask. For example, if the address is on a class B network, using the third byte for subnetting, the mask is 255.255.255.0. Use the list interface command to obtain the appropriate net number.
Serial lines do not need addresses. Such lines are called unnumbered. However, you must still enable them for IP traffic using the add address command. Use the address 0.0.0.n, where n is the net number. For PPP interfaces, you can set up unnumbered serial lines so that the router or server at the other end of the PPP link dynamically assigns an IP address for the interface. See Assigning IP Addresses to Interfaces.
Which net is this address for [0]? 1
New address [0.0.0.0]? 0.0.0.1
Allow dynamic address assignment(Yes or [No]): yes
Address mask [255.255.255.0]?
The software prompts you for whether or not to allow dynamic address assignment only if you enter an unnumbered serial line address (0.0.0.n).Which net is this address for [0]?
New address [0.0.0.0]?
Allow dynamic address assignment via DHCP(Yes or [No]):yes
bootp-server server-IP-address
Adds a BOOTP server to a network configuration. Acting as a boot relay agent, your router accepts and forwards BOOTP requests to the BOOTP server. BOOTP is a bootstrap protocol used by a diskless workstation to learn its IP address and the location of its boot file and boot server.
BOOTP server address [0.0.0.0]? 128.185.123.22
Hostname?
IP address? 128.185.227.221
You can also set up static routes to cause the router to always send traffic addressed to a destination over a specific interface, such as over an IP Tunnel interface.
You can add multiple static routes for a destination. In this case, the router determines which route to use based on the cost of the route.
The router first sends traffic over the route that has the lowest cost. If that route goes down, the router sends traffic over the route that has the next lowest cost.
If there are multiple routes with equal costs, the router shares the traffic load between the routes on a per destination basis or, if per-packet-multipath is enabled, on a per packet basis.
IP destination [0.0.0.0]? 128.1.2.0
Address mask [0.0.0.0]? 255.255.255.0
Via gateway at [0.0.0.0]? 128.185.123.22
Cost [1]? 6
udp-destination port# address
Adds a UDP destination port number and IP address. See
Configuring UDP Broadcast Forwarding for more
information on this feature.
You can enter a broadcast, unicast, or multicast IP address.
Repeat this command to add more than one IP address for the same UDP port. This causes the router to forward the frame to each of the IP addresses.
UDP port number [-1]? 36
Destination IP address [0.0.0.0]? 20.1.2.2
cache
Destination Usage Next hop
128.185.128.225 1 128.185.138.180 (Eth/0)
192.26.100.42 1 128.185.138.180 (Eth/0)
128.185.121.1 18 128.185.123.18 (PPP/0)
*3.3.3.3 76 0.0.0.1 (PPP/1)
128.197.3.4 4 128.185.123.18 (PPP/0)
128.185.124.121 4 128.185.124.121 (Eth/0)
128.185.123.17 2 128.185.123.17 (PPP/0)
128.52.22.6 2 128.185.123.18 (PPP/0)
128.197.3.2 1 128.185.123.18 (PPP/0)
128.185.123.18 152 128.185.123.18 (PPP/0)
|
Destination
|
IP destination host. An asterisk before the destination indicates that the entry was routed using policy routing (see Using Policy Routing). |
|
Usage
| Number of packets recently sent to the destination host. |
|
Next hop
| IP address of the next router on the path toward the destination host. Also displays the network name of the interface the sending router used to forward the packet. |
Change [C]
Changes an IP configuration item previously installed by the add command. In general, you must specify the item you want to change, just as you specified the item with the add command.
Enter the address to be changed [0.0.0.0]? 128.185.123.22
New address [128.185.123.22]? 128.185.123.8
Address mask [255.255.0.0]?
Enter the address to be changed [0.0.0.0]? 128.185.123.22
New address [0.0.0.2]? 0.0.0.2
Allow dynamic address assignment? [Yes]:
Address mask [255.255.255.0]?
IP destination [0.0.0.0]? 10.0.0.0
Address mask [0.0.0.0]? 255.0.0.0
New address mask [255.0.0.0]? 255.255.0.0
Via gateway at [0.0.0.0]? 128.185.123.18
Cost [1]? 6
counters
Routing errors
Count Type
0 Routing table overflow
2539 Net unreachable
0 Bad subnet number
0 Bad net number
0 Unhandled broadcast
58186 Unhandled multicast
0 Unhandled directed broadcast
4048 Attempted forward of LL broadcast
Packets discarded through filter 0
IP multicasts accepted: 60592
IP input packet overflows
Net Count
Eth/0 0
PPP/0 0
Eth/1 0
Delete [C]
Deletes an IP configuration parameter that you added with the add command. In general, you must specify the item you want to delete, just as you specified the item with the add command.
Example: delete address 128.185.123.22
bootp-server server-IP-address
Removes a BOOTP server from an IP configuration.
Example: delete bootp-server 128.185.123.22
default subnet-gateway [subnetted network]
Deletes either the default gateway or the default subnet gateway for the specified subnetted network.
Example: delete default subnet-gateway 128.185.0.0
hostname hostname
Deletes a hostname that you entered using the add hostname command.
Hostname?
Example: delete route 10.0.0.0
udp-destination port# address
Deletes a UDP broadcast destination port that you configured
using the add udp-broadcast command. See Configuring
UDP Broadcast Forwarding for more information on this feature.
Example: delete udp-destination
UDP port number [-1]? 36
Destination IP address [0.0.0.0]? 20.1.2.2
IP> prompt, displays the DHCP Client> prompt.
DHS [C] [M]
From the IP config> prompt, displays the DHCP Server Config> prompt.
From the IP> prompt, displays the DHCP Server> prompt.
Disable [C]
Disables IP features previously enabled by the add command.
Example: disable arp subnet routing
bootp-forwarding
Turns off the BOOTP relay function.
Example: disable bootp-forwarding
directed-broadcast
Disables the forwarding of IP packets whose destination is a non-local (remote LAN) broadcast address. The source host originates the packet as a unicast where it is then forwarded as a unicast to a destination subnet and "exploded" into a broadcast. You can use these packets to locate network servers.
Note: Forwarding and exploding cannot be disabled separately.
Example:disable directed-broadcast
ip-source-routing
When IP source routing is disabled, IP does not include forwarding instructions for IP packet in the packet itself. IP source routing is disabled by default. Enabling IP source routing can pose a security risk because an attacker could learn information about your network.
Example: disable ip-source-routing
per-packet-multipath
Causes the router to choose the first available path to a destination. The default is disabled.
Example: disable per-packet-multipath
rfc925-routing
Turns off RFC 925 routing. When this enabled, the router replies by proxy to all ARP requests for remote destinations that are best reached through the router.
Example: disable rfc925-routing
udp-forwarding port#
Disables UDP broadcast forwarding that you previously
enabled. See Configuring UDP Broadcast Forwarding.
Example: disable udp-forwarding
IP config>disable udp-forwarding
For which UDP port number [-1]? 36
IP config> prompt, displays the DNS Server Config> prompt.
From the IP> prompt, displays the DNS Server> prompt.
The DNS client software allows users on your network to use a domain name, rather than an IP address, when running Ping, Telnet, or Traceroute. See Using DNS.
Dump Routing Tables [M]
Displays the IP routing table. Lists a separate entry for each reachable IP network/subnet. The IP default gateway in use (if any) appears at the end of the display.
dump routing tables
Type Dest net Mask Cost Age Next hop(s)
RIP 9.0.0.0 FF000000 5 0 128.185.227.15
RIP 10.0.0.0 FF000000 3 0 128.185.227.15
RIP 50.0.0.0 FF000000 2 0 128.185.227.15
Sbnt 128.185.0.0 FFFF0000 1 0 None
RIP 128.185.1.0 FFFFFF00 4 0 128.185.227.15
RIP 128.185.2.0 FFFFFF00 4 0 128.185.227.15
RIP 128.185.224.0 FFFFFF00 2 30 128.185.227.15
RIP 128.185.225.0 FFFFFF00 2 30 128.185.227.15
Dir* 128.185.227.0 FFFFFF00 1 0 Eth/0
RIP 128.185.245.0 FFFFFF00 6 0 128.185.227.15
RIP 143.116.0.0 FFFF0000 5 0 128.185.227.15
RIP 162.6.0.0 FFFF0000 9 30 128.185.227.16
Dir* 162.9.0.0 FFFF0000 1 0 PPP/0
RIP 192.26.102.0 FFFFFF00 6 0 128.185.227.15
RIP 192.77.229.0 FFFFFF00 5 0 128.185.227.15
RIP 192.96.3.0 FFFFFF00 2 0 128.185.227.15
RIP 192.190.7.0 FFFFFF00 4 0 128.185.227.15
RIP 192.233.33.0 FFFFFF00 3 10 128.185.227.15
RIP 204.6.103.0 FFFFFF00 4 30 128.185.227.15
RIP 204.69.207.0 FFFFFF00 4 0 128.185.227.15
Routing table size: 768 nets (49152 bytes), 67 nets known
An asterisk (*) after the route type indicates that the route has a static or directly connected backup. A percent sign (%) after the route type indicates that RIP updates are always accepted for this network/subnet.
A number in parentheses at the end of the column indicates the number of equal-cost routes to the destination. Display the first hops belonging to these routes with the IP route command.
Enable [C]
Activates IP features, capabilities, and information added to your IP configuration.
The way ARP subnet routing works is as follows. When a subnet-incapable host wants to send an IP packet to a destination on a remote subnet, it does not realize that it should send the packet to a router. The subnet-incapable host therefore simply broadcasts an ARP request. The router receives the ARP request and responds as the destination (hence the name proxy) if both arp-subnet-routing is enabled and if the next hop to the destination is over a different interface than the interface receiving the ARP request.
If there are no hosts on your LAN that are subnet-incapable, do not enable ARP-subnet routing. If a LAN needs ARP subnet routing, enable it on all routers on that LAN.
Example: enable arp-subnet-routing
bootp-forwarding
Turns on BOOTP packet forwarding. In order to use the BOOTP forwarding, you must also add one or more BOOTP servers with the add bootp-server command.
Example: enable bootp-forwarding
Maximum number of forwarding hops [4]?
Minimum seconds before forwarding [0]?
directed-broadcast
Enables the forwarding of IP packets whose destination is a non-local (remote LAN) broadcast address. The source host originates the packet as a unicast and forwards it to a destination subnet where it is exploded into a broadcast.
These packets can be used to locate network servers. This command enables both the forwarding and exploding of directed broadcasts. The IP packet forwarder never forwards link level broadcasts/multicasts unless they correspond to Class D IP addresses. The default setting is enabled.
Note: Forwarding and exploding cannot be implemented separately. Also, the router does not forward subnet-wide IP broadcasts.
Example:enable directed-broadcast
ip-source-routing
Enabling IP source routing causes IP to include forwarding instructions for IP packet in the packet itself. Enabling IP source routing can pose a security risk because an attacker could learn information about your network. The default is disabled.
Example: enable ip-source-routing
per-packet-multipath
If per-packet-multipath is enabled, and there are multiple equal-cost paths to a destination, the router chooses the path for forwarding each packet in a round-robin fashion. The default is disabled.
Example: enable per-packet-multipath
rfc925-routing
Turns on RFC 925 routing. When enabled, the router replies by proxy to all ARP requests for remote destinations that are best reached through the router. Use this command when there are hosts on the LAN that ARP for all destinations, instead of (as is proper) only local destinations.
Example: enable rfc925-routing
udp-forwarding port#
Allows the router to forward UDP broadcast frames for
UDP ports that you configured using the add udp-destination command. See Configuring
UDP Broadcast Forwarding.
Example: enable udp-forwarding
For which UDP port number [-1]? 36
exit
Filters [C] [M]
From the IP config> prompt, displays the IP Filters Config> prompt.
From the IP> prompt, displays the IP Filters> prompt.
See Using IP Filters for information on IP filtering.
Ftp [C] [M]
From the IP config> prompt, displays the FTP Server Config> prompt.
From the IP> prompt, displays the FTP Server> prompt.
See Using FTP or TFTP for information the FTP server.
Hostnames [M]
Displays the hostnames and IP addresses that you added
using the add hostname command.
IGMP [C]
Displays the router's Internet Group Management Protocol
(IGMP) configuration menus (see Using IGMP).
IPSec [C]
Displays the router's IPSec protocol configuration menus
(see Using IPSec). The IPSec protocol provides
secure, interoperable communication across a network, transparent to the application.
List [C]
Displays various pieces of the IP configuration.
addresses
Lists the IP addresses that are assigned to the router's interfaces, including whether the address is numbered, unnumbered, or dynamic.
bootp
Indicates whether BOOTP forwarding is enabled or disabled, as well as the configured list of BOOTP servers.
hostname
Displays the hostnames and IP addresses that you added using the add hostname command.
protocols
Prints the configured state of the IP routing protocols along with whether ARP subnet routing is enabled or disabled.
routes
Prints the list of configured static network/subnet routes. Also lists any configured default gateways.
sizes
Displays the routing table size, re-assembly buffer size, and the route cache size.
tags
Displays the per-interface tags that are associated with received RIP information. These tags can be used to group routes together for later re-advertisement via EGP where a tag is treated as if it were a route's source AS.
udp-forwarding
Displays the UDP broadcast configuration. See Configuring
UDP Broadcast Forwarding.
UDP broadcast forwarding is enabled for the following UDP port numbers:
36
UDP broadcast forwarding destinations:
Port Destination
36 20.1.2.2
IP config> prompt, displays the NAT Config> prompt.
From the IP> prompt, displays the NAT> prompt.
See Using IP Network Address Translation (NAT).
Example:nat
Network Address Translation Configuration
NAT Config>
This process is done continuously, incrementing the ICMP sequence number with each additional packet. Matching received ICMP Echo responses are reported with their sequence number and the round trip time. The granularity (time resolution) of the round trip time calculation is usually (depending on platform) on the order of 20 milliseconds. The ping command completes when you type a character in the monitoring process. At that time, a summary of packet loss, round trip time, and number of ICMP destination unreachables received is displayed.
When a multicast address is given as destination, there may be multiple responses printed for each packet sent, one for each group member. Each returned response is displayed with the source address of the responder.
Note: The size of the ping (number of data bytes in the ICMP message, excluding the ICMP header) is 56 bytes, and the TTL used is 60.
Syntax: ping interface-address Example:ping 128.185.142.11
PING 128.185.142.11: 56 data bytes
64 bytes from 128.185.142.11: icmp_seq=0. time=0. ms
64 bytes from 128.185.142.11: icmp_seq=1. time=0. ms
64 bytes from 128.185.142.11: icmp_seq=2. time=0. ms
64 bytes from 128.185.142.11: icmp_seq=3. time=0. ms
64 bytes from 128.185.142.11: icmp_seq=4. time=0. ms
64 bytes from 128.185.142.11: icmp_seq=5. time=0. ms
----128.185.142.11 PING Statistics----
6 packets transmitted, 6 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
IP config> prompt, displays the PolicyRt Config> prompt.
From the IP> prompt, displays the PolicyRt> prompt.
See Using Policy Routing.
Example:policyrt
PolicyRtconfig>
IP config> prompt, displays the RIP Config> prompt.
From the IP> prompt, displays the RIP> prompt.
See Using RIPv1, RIPv2, and Triggered RIP.
Example:rip
RIP config>
route 18.10.0.5
Destination: 18.10.0.5
Mask: 255.0.0.0
Route type: SPE1
Distance: 3
Age: 1
Next hop(s): 128.185.123.18 (PPP/0)
route 128.185.230.0
Destination: 128.185.230.0
Mask: 55.255.255.0
Route type: SPF
Distance: 1
Age: 1
Next hop(s): 128.185.230.0 (TKR/0)
route 128.185.232.0
Destination: 128.185.232.0
Mask: 255.255.255.0
Route type: RIP
Distance: 3
Age: 0
Next hop(s): 128.185.146.4 (Eth/0)
number of cache entries [64]?
The route is specified by the IP address of the next hop (next-hop) and the distance (cost) to the default gateway.
All packets having unknown destinations are forwarded to the authoritative router (default gateway).
Example: set default network-gateway
Default gateway [0.0.0.0]? 192.9.1.10
gateway's cost [1]? 10
The IP address of the next hop (next-hop) and the distance (cost) to the default subnet gateway specify the route.
All packets destined for unknown subnets of a known subnetted network are forwarded to the subnetted network's default subnet gateway.
Example: set default subnet-gateway
For which subnetted network [0.0.0.0]? 128.0.0.0
Default gateway [0.0.0.0]? 128.185.123.22
gateway's cost [1]? 6
Example: set internal-ip-address
Internal IP address [0.0.0.0]? 142.82.10.1
Note: This parameter is relevant to the EGP routing protocol.
Example:set reassembly-size
Reassembly buffer size [12000]?
The router ID must match one of the configured IP interface addresses of the router. If not, it is ignored. When ignored, or just not configured, the default IP address of the router is set to the first IP address in the router's configuration.
Note: Setting a router ID may cause the router's OSPF router ID to change. If this happens, link state advertisements originated by the router before the router ID change persist until they age out, possibly as long as 30 minutes. This can cause an increase in link state database size.
Example:set router-id
Router-ID [0.0.0.0]? 128.185.120.209
Example: set routing table-size
number of nets [768]? 1000
Interface address [0.0.0.0]?
Interface tag (AS number) [0]?
sizes
Routing table size: 768
Table entries used: 69
Reassembly buffer size: 12000
Largest reassembled pkt: 0
Size of routing cache: 64
# cache entries in use: 0
Static Routes [M]
Displays the list of configured static routes, configured default gateways, and default subnet gateways.
Each static route's destination is specified by an address-mask pair. Default gateways appear as static routes to destination 0.0.0.0 with mask 0.0.0.0. Default subnet gateways also appear as static routes to the entire IP subnetted network.
The example below shows a configured default gateway, a configured default subnet gateway (assuming 128.185.0.0 is subnetted), and a static route to network 192.9.10.0.
Example:static
Net Mask Cost Next hop
0.0.0.0 0.0.0.0 1 128.185.123.18
128.185.0.0 255.255.0.0 1 128.185.123.22
192.9.10.0 255.255.255.0 10 128.185.123.22
|
Net
| Network address of the route. |
|
Mask
| Subnet mask of the IP address. |
|
Cost
| Cost of using this route. |
|
Next Hop
| Next router a packet would pass through using this route. |
Traceroute [M]
Displays the entire path to a destination, hop by hop. For each successive hop, traceroute sends out three probes, and displays the IP address of the responder, together with the round trip time associated with the response. If a particular probe receives no response, the software displays an asterisk. Each line in the display relates to the set of three probes, with the left most number indicating the distance from the router sending the command (in router hops).
A traceroute is complete whenever the destination is reached, an ICMP Destination Unreachable is received, or the path length reaches 32 router hops.
When a probe receives an unexpected result, the software can display several indications:
Syntax: traceroute interface-address
Example:traceroute 128.185.142.239
TRACEROUTE 128.185.124.110: 56 data bytes
1 128.185.142.7 16 ms 0 ms 0 ms
2 128.185.123.22 16 ms 0 ms 16 ms
3 * * *
4 * * *
5 128.185.124.110 16 ms ! 0 ms ! 0 ms !
UDP-Forward [M]
Displays the UDP broadcast ports and addresses that you added using add udp-destination.
udp-forward
UDP Port IP Address
35 20.2.1.1
20 22.2.1.2