This chapter covers the following topics:
IP routing configuration overview
This chapter shows how to configure the IP router, its LAN and WAN interfaces, and static IP routes. The router software has many possible configuration settings that determine how it handles routes, which source address it uses for packets generated by the system itself, how WAN clients access DNS servers, how pools of local addresses are allocated for dynamic assignment to dial-in hosts, and so forth. Most general router behavior options are configured in the IP-Global profile.
For information about IP or route filters, see Chapter 9, Ascend Packet Filters.
IP diagnostic commands
The MAX TNT command-line interface supports several network administration commands, which are described in more detail in the MAX TNT Reference Guide. This section provides a brief overview of the following commands, which you'll need for verifying that IP routing is working properly:
admin> netstat -rnFor details about the subnet notation Ascend uses (for example, 12.65.212.227/32, where 32 is the subnet mask), see Using Ascend notation for IP addresses.
Destination Gateway IF Flg Pref Met Use Age
127.0.0.0/8 - bh0 CP 0 0 0 881
127.0.0.1/32 - local CP 0 0 0 881
127.0.0.2/32 - rj0 CP 0 0 0 881
11.168.7.0/24 - ie0 C 0 0 830 881
11.168.7.134/32 - local CP 0 0 489 881
10.1.1.0/24 10.1.1.2 wan12 rGT 60 1 0 767
10.1.1.2/32 10.1.1.2 wan12 rT 60 1 0 767
10.1.2.0/24 10.1.2.2 wan9 rGT 60 1 0 770
10.1.2.2/32 10.1.2.2 wan9 rT 60 1 0 770
10.2.1.0/24 10.2.1.2 wan10 rGT 60 1 0 769
10.2.1.2/32 10.2.1.2 wan10 rT 60 1 0 769
10.2.2.0/24 10.2.2.2 wan11 rGT 60 1 0 768
10.2.2.2/32 10.2.2.2 wan11 rT 60 1 0 768
10.3.1.0/24 - ie1-4-1 C 0 0 12 831
10.3.1.2/32 - local CP 0 0 0 831
10.3.2.0/24 - ie1-4-2 C 0 0 12 831
10.3.2.2/32 - local CP 0 0 0 831
10.3.102.2/32 - local rTM 0 0 0 728
10.3.102.2/32 - local CM 0 0 0 881
10.4.3.0/24 10.4.103.2 wan17 SG 60 8 235 682
10.4.4.0/24 10.4.4.2 wan19 SG 120 7 0 830
10.4.4.2/32 10.4.4.2 wan19 S 120 7 1 830
10.4.103.0/24 10.4.103.2 wan17 rGT 60 1 0 682
10.4.103.2/32 10.4.103.2 wan17 rT 60 1 2 682
10.4.104.0/24 10.4.104.2 wan18 rGT 60 1 0 728
10.4.104.2/32 10.4.104.2 wan18 rT 60 1 0 728
10.5.1.0/24 - ie1-4-3 C 0 0 12 831
10.5.1.2/32 - local CP 0 0 0 831
10.5.2.0/24 - ie1-4-4 C 0 0 12 830
10.5.2.2/32 - local CP 0 0 0 830
10.6.2.0/24 10.6.2.2 wan14 rGT 60 1 0 770
10.6.2.2/32 10.6.2.2 wan14 rT 60 1 0 770
10.100.3.0/24 10.100.3.2 wan15 rGT 60 1 0 768
10.100.3.2/32 10.100.3.2 wan15 rT 60 1 0 768
12.65.212.0/24 11.168.7.1 ie0 SG 60 8 256 830
224.0.0.0/4 - mcast CP 0 0 0 881
224.0.0.1/32 - local CP 0 0 0 881
224.0.0.2/32 - local CP 0 0 0 881
224.0.0.5/32 - local CP 0 0 0 881
224.0.0.6/32 - local CP 0 0 0 881
224.0.0.9/32 - local CP 0 0 0 881
255.255.255.255/32 - ie0 CP 0 0 18 881
The Destination and Gateway fields show the destination address and the address of the next-hop router used to reach that destination. Note that the router will use the most specific route (having the largest netmask) that matches a given destination. Direct routes do not show a gateway address.
mcast
interface name encapsulates the multicast forwarder for the entire class D address space. (See Chapter 6, Multicast Forwarding.)
Routes targeted at the local machine display the
local
interface name. Packets to the 224.0.0.1 and 224.0.0.2 interfaces can be multicasted and received like normal multicast packets, but upon receiving such a packet, the router does not forward it to another link layer device. (Effectively, these packets have an MTU of 1.)
admin> netstat -inThe entries named ie0 or ieN-N-N[-N ] represent Ethernet interfaces.
Name MTU Net/Dest Address Ipkts Ierr Opkts Oerr
ie0 1500 11.168.7.0/24 11.168.7.134 2277 0 246 0
lo0 1500 127.0.0.1/32 127.0.0.1 344 0 344 0
rj0 1500 127.0.0.2/32 127.0.0.2 0 0 0 0
bh0 1500 127.0.0.3/32 127.0.0.3 0 0 0 0
wanabe 1500 127.0.0.3/32 127.0.0.3 0 0 0 0
local 65535 127.0.0.1/32 127.0.0.1 431 0 431 0
mcast 65535 224.0.0.0/4 224.0.0.0 0 0 0 0
tunnel7 1500 11.168.7.0/24 11.168.7.134 0 0 0 0
dtpt8 1500 11.168.7.0/24 11.168.7.134 0 0 0 0
wan9 1528 10.1.2.2 11.168.7.134 0 0 0 0
wan10 1528 10.2.1.2 11.168.7.134 0 0 0 0
wan11 1528 10.2.2.2 11.168.7.134 0 0 0 0
wan12 1528 10.1.1.2 11.168.7.134 0 0 0 0
wan13 1500 10.6.1.2 11.168.7.134 0 0 0 0
wan14 1528 10.6.2.2 11.168.7.134 0 0 0 0
wan15 1528 10.100.3.2 11.168.7.134 0 0 0 0
wan16 1500 10.100.2.2 11.168.7.134 0 0 0 0
wan17 1528 10.4.103.2 11.168.7.134 0 0 80 0
wan18 1528 10.4.104.2 10.3.102.2 0 0 0 0
wan19 1500 10.4.4.2 11.168.7.134 0 0 0 0
ie1-4-1 1500 10.3.1.0/24 10.3.1.2 0 0 1 0
ie1-4-2 1500 10.3.2.0/24 10.3.2.2 0 0 1 0
ie1-4-3 1500 10.5.1.20/4 10.5.1.2 0 0 0 0
ie1-4-4 1500 10.5.2.0/24 10.5.2.2 0 0 1 0
N-N-N-N represents the shelf-number, slot-number, item-number, and logical-item-number of the interface.When the logical-item-number is zero, it does not appear in the interface name. The same sequence of numbers forms the address used to index the IP-Interface profile. For example, the default profile for 1-4-1 is indexed as follows:
IP-INTERFACE { { 1 4 1 } 0 }When the logical-item-number is not zero, it does appear in the interface name. Again, the sequence of numbers is identical to the profile index. For example, an IP-Interface profile with the following index:
IP-INTERFACE { { 1 4 1 } 3 }has the following interface name:
ie1-4-1-3The other names in the interface table, and their significance, are:
admin> nslookup techpubs
Resolving host techpubs.
IP address for host techpubs is 10.6.212.19.
admin> ping techpubs
PING techpubs (10.65.212.19): 56 Data bytes
64 bytes from 10.65.212.19: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 10.65.212.19: icmp_seq=3 ttl=255 time=0 ms
^C
--- techpubs Ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
admin> traceroute cujo
Traceroute to cujo (11.2.3.4), 30 hops max, 0 byte packets
1 cujo.ascend.com (11.2.3.4) 0 ms 0 ms 0 ms
Class |
Address range |
Network bits |
---|---|---|
Class A
|
0.0.0.0 - 127.255.255.255
|
8
|
Class B
|
128.0.0.0 - 191.255.255.255
|
16
|
Class C
|
192.0.0.0 - 223.255.255.255
|
24
|
For example, a class C address such as 198.5.248.40 has 24 network bits, leaving 8 bits for the host portion of the address. If no subnet mask is specified for a class C address, the MAX TNT assumes the default mask of 24 bits, as shown in Figure 4-1:
Figure 4-1. Class C IP address
IP-Address = 198.5.248.40/29In this example, the /29 specification indicates that 29 bits of the address are used to specify the network. This is commonly referred to as a 29-bit subnet. The three remaining bits specify unique hosts.
Figure 4-2. 29-bit subnet mask and the number of supported hosts
001
010
100
110
101
011
111 - Reserved for the broadcast address of the subnet
Table 4-2 shows standard and Ascend subnet formats for a class C network number.
198.5.248.120/29The Ethernet attached to that router has the following address range:
198.5.248.120 - 198.5.248.127A host route is a special-case IP address with a subnet mask of /32. For example:
198.5.248.40/32Host routes are required for dial-in hosts.
Configuring the IP router
This section describes how to configure the MAX TNT IP router. It covers the following topics:
Accessing the IP-Global profile
System-level configuration of the IP router consists largely of configuring the IP-Global profile. To read the profile into the edit buffer, use the Read command as follows:
admin> read ip-globalThe following sections describe parameters in the IP-Global profile. For detailed information about each parameter, see the MAX TNT Reference Guide.
IP-GLOBAL read
IP-GLOBALIf you specify an IP address in the System-IP-Addr parameter, the MAX TNT uses that as the source address for packets it generates. If the system address becomes unreachable due to a change in the network topology, the MAX TNT might still be reachable by Telnet at any of its other interface addresses. (Of course, this is subject to packet filtering throughout the network.)
system-ip-addr = 10.100.100.100
One reason for setting a system address other than the shelf-controller address is that doing so simplifies access control. For example, most RADIUS servers keep a database of known RAS clients and their authentication keys. If you don't specify a system address, the database must include a complete list of all the system's interface addresses. If you specify a system address, it is used for all RADIUS request packets.
Another reason for setting a system address is to ensure that packets sent from an ATMP Home Agent to Foreign Agents have a single, standard source address. This is recommended for ATMP Home Agents that have multiple interfaces into the IP cloud that separates them from Foreign Agents, to prevent communication problems if a route changes within the IP cloud. For details, see System IP address recommendation.
admin> dir ip-interface
66 03/31/1998 10:13:24 { { shelf-1 controller 1 } 0 }
8 03/31/1998 11:36:32 { { shelf-1 slot-12 2 } 0 }
8 03/31/1998 11:36:32 { { shelf-1 slot-12 3 } 0 }
8 03/31/1998 11:36:32 { { shelf-1 slot-12 4 } 0 }
8 03/31/1998 11:36:59 { { shelf-1 slot-12 5 } 0 }
64 03/31/1998 11:53:12 { { shelf-1 slot-12 1 } 0 }
admin> get ip-int { {1 12 1} 0} ip-address
ip-address = 10.2.3.4
admin> read ip-global
IP-GLOBAL read
admin> set system-ip-addr = 10.2.3.4
admin> write
IP-GLOBAL written
You can use the following parameter (shown with a sample setting) to set a soft interface address:
IP-GLOBAL
soft-ip-interface-addr = 11.168.7.100
For example, the following commands set the soft interface address to 11.168.7.100:
admin> read ip-global
IP-GLOBAL read
admin> set soft-ip-interface-addr = 11.168.7.100
admin> writeThis address is advertised in RIP and OSPF as a host route with a mask of /32 using the loopback interface. To enable hosts on the network to reach this address, you must either enable routing protocols (RIP or OSPF) or configure static routes in routers one hop away from the MAX TNT. To verify that other hosts in your network have a route to the soft address, use Ping or Traceroute from the other hosts. For example:
IP-GLOBAL written
host1% ping 11.168.7.100
PING 11.168.7.100 (11.168.7.100): 56 Data bytes
64 bytes from 11.168.7.100: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 11.168.7.100: icmp_seq=7 ttl=255 time=0 ms
^C
--- 11.168.7.100 Ping statistics ---
8 packets transmitted, 8 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
Specifying domain names for name lookups
When the MAX TNT is given a host name to look up, it tries various combinations. For example, it appends the domain name specified in the IP-Global profile. You can specify a primary and secondary domain name for DNS lookups by setting the following parameters (shown with sample settings):
IP-GLOBALThe secondary domain name specifies another domain name the MAX TNT can search if the host name is not found in the primary domain. The following example shows the commands entered to set the primary and secondary domain names, and the system's responses:
domain-name = abc.com
sec-domain-name = eng.abc.com
admin> read ip-global
IP-GLOBAL read
admin> set domain-name = abc.com
admin> set sec-domain-name = eng.abc.com
admin> write
IP-GLOBAL written
IP-GLOBALFor information about configuring client DNS, see Appendix B, Network Security Settings.
dns-primary-server = 10.65.212.178
dns-secondary-server = 10.65.212.10
client-primary-dns-server = 0.0.0.0
client-secondary-dns-server = 0.0.0.0
allow-as-client-dns-info = true
If you are using NetBIOS
If the local network supports NetBIOS instead of DNS, you can configure the MAX TNT to access NetBIOS servers by setting the following parameters (shown with sample values):
IP-GLOBALFollowing is an example of specifying NetBIOS server addresses:
netbios-primary-ns = 10.1.2.3/24
netbios-secondary-ns = 10.2.3.4/24
admin> read ip-global
IP-GLOBAL read
admin> set netbios-primary-ns = 10.1.2.3/24
admin> set netbios-secondary-ns = 10.2.3.4./24
admin> writeThe system accesses the secondary NetBIOS server only if the primary server is not found.
IP-GLOBAL written
admin> read ip-global
IP-GLOBAL read
admin> set dns-pri = 10.2.3.56
admin> set dns-sec = 10.2.3.107
admin> writeThe secondary server is accessed only if the primary one is inaccessible.
IP-GLOBAL written
When the DNS list is used for an immediate connection by a dial-in user (for example, an immediate Telnet connection to a local host), and the first attempt fails, the physical connection is torn down.To avoid tearing down physical links when hosts are unavailable, you can support DNS list in the MAX TNT by setting the following parameters (shown with default settings):
IP-GLOBALThe DNS-List-Attempt parameter enables the user to try one entry in the DNS list of hosts, and, if that connection fails, to try the next entry, and so on, without losing the WAN session. The DNS-List-Size parameter specifies the maximum number of hosts listed, up to a maximum of 35.
dns-list-attempt = no
dns-list-size = 6
The following example shows how to enable DNS list with a maximum of 14 hosts in the list:
admin> read ip-global
IP-GLOBAL read
admin> set dns-list-attempt = yes
admin> set dns-list-size = 14
admin> writeSee Setting a TCP timeout for related information.
IP-GLOBAL written
Setting up a local DNS table
The MAX TNT can maintain a DNS table in RAM of up to 8 host names and their IP addresses. It consults the table in RAM for address resolution only if requests to the DNS server fail. The local table acts as a safeguard to ensure that the MAX TNT can resolve the local set of DNS names in case all DNS servers become unreachable or go down.
IP-GLOBALThe Enabled parameter specifies whether the local DNS table in RAM will be available if DNS queries fail. If set to No (the default), and a DNS query times out, the request fails. If set to Yes, the MAX TNT attempts to resolve the query by consulting the DNS table in RAM. If the host name in the DNS query has an entry in the table in RAM, the system returns the associated IP address(es) to the requester.
dns-local-table
enabled = no
auto-update = no
table-config [1]-[8]
host-name = ""
ip-address = 0.0.0.0
For details about Auto-Update, see Using the Auto-Update feature.
The Table-Config subprofiles, numbered 1 to 8, each contain a single Host-Name field and a single IP address field. Host-Name specifies a host name, which must be unique within the table. For details, see "Host name matching" next. IP-Address specifies a valid IP address for the Host-Name, or the null address.
Host name matching
The host name specified in the DNS-Local-Table subprofile must start with an alphabetic character, and must be less than 256 characters. Trailing periods are ignored in the comparison.
IP-GLOBALThen the system appends the specified domain name when looking up the host name. For example, for a DNS query on the following host name:
domain-name = eng.abc.com
sec-domain-name = abc.com
host-name = wheelersThe MAX TNT searches for the host name as well as the following domain names:
wheelers.eng.abc.com
wheelers.abc.com
admin> read ip-global
IP-GLOBAL read
admin> list dns-local
enabled = no
auto-update = no
table-config = [ { "" 0.0.0.0 } {"" 0.0.0.0 } {"" 0.0.0.0 } {"" 0.0.0.0+
admin> set enabled = yes
admin> list table 1
hostname = ""
ip-address = 0.0.0.0
admin> set host = host1.abc.com
admin> set ip = 10.1.2.3
admin> list ..
table-config[1] = { host1.abc.com 10.1.2.3 }
table-config[2] = { "" 0.0.0.0 }
table-config[3] = { "" 0.0.0.0 }
table-config[4] = { "" 0.0.0.0 }
table-config[5] = { "" 0.0.0.0 }
table-config[6] = { "" 0.0.0.0 }
table-config[7] = { "" 0.0.0.0 }
table-config[8] = { "" 0.0.0.0 }
admin> set 2 host = host2.xyz.
admin> set 2 ip = 11.1.2.3
admin> set 3 host = localhost
admin> set 3 ip = 10.0.0.1
admin> writeIf you specify an IP address without also specifying a host name, a message such as the following is displayed when you write the profile:
IP-GLOBAL written
error: dns-local-table: host-name missing (#3 1.2.3.4)If you enter an invalid host name, a message such as the following is displayed when you write the profile:
error: dns-local-table: host-name must start with alpha char (#5 11foo)
The following parameters, which are shown with their default values, affect how the table is updated when Auto-Update is set to Yes:
IP-GLOBALIf DNS-List-Attempt is set to No, a successful DNS query returns a single address for a given host name.In the DNS table in RAM, that address is stored and the remaining 34 addresses are cleared (set to zero).
dns-list-attempt = no
dns-list-size = 6
If DNS-List-Attempt is set to Yes, a successful DNS query returns the number of addresses it finds for the host, up to DNS-List-Size. In the DNS table in RAM, those addresses are stored, overwriting the configured address or the addresses retrieved from earlier DNS queries. To prevent stale entries in the table in RAM, addresses greater than DNS-List-Size are cleared at each update.
admin> read ip-global
IP-GLOBAL read
admin> set dns-list-attempt = yes
admin> set dns-list-size = 14
admin> list dns-local
enabled = no
auto-update = no
table-config = [ { "" 0.0.0.0 } {"" 0.0.0.0 } {"" 0.0.0.0 } {"" 0.0.0.0+
admin> set enabled = yes
admin> set auto-update = yes
admin> list table
table-config[1] = { "" 0.0.0.0 }
table-config[2] = { "" 0.0.0.0 }
table-config[3] = { "" 0.0.0.0 }
table-config[4] = { "" 0.0.0.0 }
table-config[5] = { "" 0.0.0.0 }
table-config[6] = { "" 0.0.0.0 }
table-config[7] = { "" 0.0.0.0 }
table-config[8] = { "" 0.0.0.0 }
admin> set 1 host = mercury
admin> set 2 host = venus
admin> set 3 host = earth
admin> set 4 host = mars
admin> set 5 host = jupiter
admin> set 6 host = saturn
admin> set 7 host = uranus
admin> set 8 host = neptune
admin> write
IP-GLOBAL written
To enable the MAX TNT to handle local IP addresses in this way, you configure the following parameters (shown with their default values):
ANSWER-DEFAULTS
ip-answer
assign-address = no
IP-GLOBAL
must-accept-address-assign = no
pool-summary = no
pool-ospf-adv-type = type-1
pool-base-address = [ 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.+
assign-count = [ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0+
pool-name = [ "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""+
Enabling the system to assign addresses
To enable the MAX TNT to assign an IP address to an incoming call, you must set the Assign-Address parameter in the Answer-Defaults profile to Yes. For example:
admin> read answer
ANSWER-DEFAULTS read
admin> set ip-answer assign-address = yes
admin> write
ANSWER-DEFAULTS written
admin> read ip-global
IP-GLOBAL read
admin> set must-accept-address-assign = yes
admin> writeIf you enforce acceptance of the assigned address, the Answer-Defaults profile must enable dynamic assignment, the caller's configured profile must specify dynamic assignment, and the caller's PPP dial-in software must be configured to acquire its IP address dynamically. For more details, see Example of a dial-in host requiring address assignment.
IP-GLOBAL written
Pool names (TACACS+)
Each pool configuration consists of a pool base address and address count. You can also assign a pool name, and you must do so if using TACACS+ authentication. A pool name can contain up to 11 characters. What is pool summary?
The Pool-Summary feature is designed to reduce the routing overhead associated with address pools. Originally, each address assigned from a pool was advertised as a host route with a subnet mask of 32. As the number of supported pool addresses grew (the MAX TNT can support up to 32,512 pool addresses), the possible overhead associated with advertising these host routes became an issue.
If you do not use the Pool-Summary feature, each address in a pool is advertised as a host route with a subnet mask of 32. In that case, the pool does not have to be network-aligned, so any IP address that begins a block of free addresses can serve as the pool base address.
Setting up address pools (no pool summary)
You can define up to 128 address pools, with each pool containing up to 254 contiguous IP addresses. A non-aligned pool can start at any pool base address. Addresses do not accept a subnet mask component, because they are always advertised as host routes.
admin> read ip-global
IP-GLOBAL read
admin> set pool-base-address 1 = 10.2.3.4
admin> set pool-base-address 2 = 11.5.7.51
admin> set pool-base-address 3 = 12.7.112.15
admin> set assign-count 1 = 50
admin> set assign-count 2 = 50
admin> set assign-count 3 = 50
admin> writeThese commands allocate the following addresses for dynamic assignment to callers:
IP-GLOBAL written
admin> read ip-global
IP-GLOBAL read
admin> set pool-base-address 1 = 10.12.253.1
admin> set assign-count 1 = 62
admin> writeIn this example, the Pool-Base-Address is set to 10.12.253.1. When you subtract one from this address, you get 10.12.253.0, which is a valid base address for the 255.255.255.192 subnet mask. Note that 10.12.253.64, 10.12.253.128, and 10.12.253.192 are also valid zero addresses for the same mask. The resulting address pool subnet is 10.12.253.0/26.
IP-GLOBAL written
The Assign-Count is set to 62. When you add two to the Assign-Count, you get 64. The subnet mask for 64 addresses is 255.255.255.192 (256-64 = 192). The Ascend subnet notation for a 255.255.255.192 mask is /26.
The Reject (rj0) interface address is 127.0.0.2. Packets routed to this interface are bounced back to the sender with an ICMP unreachable message.
The Blackhole (bh0) interface address is 127.0.0.3. Packets routed to this interface are silently discarded.
The MAX TNT creates a host route for each assigned address in the pool, and host routes override subnet routes. So packets whose destination matches an assigned IP address from the pool are properly routed and not discarded or bounced. But because the MAX TNT advertises the entire pool as a route, and only privately knows which IP addresses in the pool are active, a remote network might improperly send the MAX TNT a packet for an inactive IP address. Depending on the static-route gateway address, these packets are either bounced with an ICMP unreachable message (reject interface) or silently discarded (blackhole interface).
For example, you could use a procedure similar to the following to set up the destination and gateway parameters that define the pool. This example uses the blackhole interface for inactive host addresses, and sets the other required values for the route. For information about configuring static routes, see Configuring static IP routes.
admin> new ip-route pool-net
IP-ROUTE/pool-net read
admin> set dest-address = 10.12.253.0/26
admin> set gateway-address = 127.0.0.3
admin> set metric = 0
admin> set cost = 0
admin> set preference = 0
admin> set private-route = no
admin> write
IP-ROUTE/pool-net written
Destination Gateway IF Flg Pref Met Use Age
10.12.253.0/26 - bh0 C 0 0 0 172162
127.0.0.1/32 - lo0 CP 0 0 0 172163
127.0.0.2/32 - rj0 CP 0 0 0 172163
127.0.0.3/32 - bh0 CP 0 0 0 172163
admin> read conn vikki
CONNECTION/vikki read
admin> list ip-options
ip-routing-enabled = yes
vj-header-prediction = yes
remote-address = 0.0.0.0/0
local-address = 0.0.0.0/0
routing-metric = 1
preference = 60
down-preference = 120
private-route = no
multicast-allowed = no
address-pool = 0
ip-direct = 0.0.0.0
rip = routing-off
ospf-options = { no 0.0.0.0 normal 30 120 5 simple ******* 10 1000+
multicast-rate-limit = 100
client-dns-primary-addr = 0.0.0.0
client-dns-secondary-addr = 0.0.0.0
client-dns-addr-assign = yes
client-default-gateway = 0.0.0.0
admin> set address-pool = 1
admin> set private-route = yes
admin> write
CONNECTION/vikki written
Enabling incoming calls to share profiles
The following parameter specifies whether the MAX TNT will allow more than one incoming call to share the same Connection profile:
IP-GLOBALFor routed IP callers, shared profiles cannot result in two IP addresses reached through the same profile.
shared-prof = no
In low-security situations, more than one caller can share a name and password for accessing the local network. This requires sharing a single Connection profile that does not assign an IP address, or one that specifies dynamic IP address assignment. If a shared profile uses an IP address, it must be assigned dynamically, because multiple hosts cannot share a single IP address. When the shared profile uses dynamic address assignment, each call is a separate connection that shares the same name and password. A separate IP address is assigned dynamically to each caller.
To enable shared profiles, set the Shared-Profile parameter as follows:
admin> read ip-global
IP-GLOBAL read
admin> set shared-prof = yes
admin> write
IP-GLOBAL written
IP-GLOBALAll users attempting to access the MAX TNT unit via Telnet are prompted for the Telnet-Password. They are allowed three tries, each with a 60-second time limit, to enter the correct password. If all three tries fail, the connection attempt times out.
telnet-password = ""
user-profile = ""
You can also associate a User profile with Telnet sessions. By default, no profile is specified, which means that each Telnet user must supply the name and password of a User profile. If you specify a User profile for Telnet sessions, the system uses that profile for any Telnet login. If the profile has a password, the Telnet user is prompted for it after the Telnet password. If not, supplying the Telnet-Password alone allows access to the unit.
The commands in the following example set the Telnet-Password and specify the Default User profile for Telnet logins. The Default profile enables minimal permissions and requires no password.
admin> read ip-global
IP-GLOBAL read
admin> set telnet-password = Ascend
admin> set user-profile = default
admin> write
IP-GLOBAL written
IP-GLOBAL
rip-policy = poison-rvrs
summarize-rip-routes = no
ignore-icmp-redirects = no
drop-source-routed-ip-packets = no
ignore-def-route = yes
dialout-poison = no
static-pref = 100
rip-pref = 100
rip-queue-depth = 0
iproute-cache-enable = yes
iproute-cache-size = 0
ipport-cache-enable = yes
icmp-reply-directed-bcast = no
If the MAX TNT is running RIP-v1, the RIP-Policy parameter must specify a split-horizon or poison-reverse policy for outgoing update packets that include routes that were received on the same interface on which the update is sent. Split-horizon means that the MAX TNT does not propagate routes back to the subnet from which they were received. Poison-reverse means that it propagates routes back to the subnet from which they were received, but with a metric of 16.
The Summarize-RIP-Routes parameter specifies whether to summarize subnet information when advertising routes. If the MAX TNT summarizes RIP routes, it advertises a route to all the subnets in a network of the same class. For example, the route to 200.5.8.13/28 (a class C address) would be advertised as a route to 200.5.8.0. When the MAX TNT does not summarize information, it advertises each route in its routing table as-is.
ICMP Redirect packets can be counterfeited and used to change the way a device routes packets. The following example shows how to configure the router to ignore all ICMP Redirects:
admin> read ip-global
IP-GLOBAL read
admin> set ignore-icmp-redirects = yes
admin> writeDirected-broadcast ICMP Echo requests have been used in some denial-of-service attacks. The following example shows how to prevent the system from responding to such packets:
IP-GLOBAL written
admin> read ip-global
IP-GLOBAL read
admin> set icmp-reply-directed-bcast = no
admin> writeFor more detail about preventing misuse of directed broadcasts, see Appendix B, Network Security Settings.
IP-GLOBAL written
Dropping source-routed packets
The Drop-Source-Routed-IP-Packets parameter specifies whether the MAX TNT forwards IP packets with the source route option set. The default is No, which causes the MAX TNT to forward all source routed packets as described in RFC1812, Requirements For Routers. When the parameter is set to Yes, the MAX TNT drops all packets that have either a Loose or a Strict source route among their IP options. The following set of commands instructs the router to drop source-routed packets:
admin> read ip-global
IP-GLOBAL read
admin> set drop-source-routed-ip-packets = yes
admin> write
IP-GLOBAL written
admin> read ip-global
IP-GLOBAL read
admin> set ignore-def-route = yes
admin> write
IP-GLOBAL written
admin> read ip-global
IP-GLOBAL read
admin> set dialout-poison = yes
admin> write
IP-GLOBAL written
By default, static routes and RIP routes have the same preference, so they compete equally. ICMP redirects take precedence over both, and OSPF takes precedence over everything. If a dynamic route's preference is lower than that of the static route, the dynamic route can hide (temporarily overwrite) a static route to the same network. However, dynamic routes age, and if no updates are received, they eventually expire. In that case, the hidden static route reappears in the routing table.
In the following example, the administrator increases the preference value of RIP routes, instructing the router to use static routes first if they exist:
admin> read ip-global
IP-GLOBAL read
admin> set rip-pref = 150
admin> writeFor information about filtering routes or configuring route metrics in RIP update packets, see Chapter 9, Ascend Packet Filters.
IP-GLOBAL written
Limiting the size of UDP packet queues
When the router is very busy and receives a flood of UDP packets from SNMP requests or RIP updates, a backlog of packets waiting for processing can create enough delay in routing to cause sporadic problems with time-sensitive packets, such as LCP negotiation or Frame Relay management packets.
IP-GLOBAL
rip-queue-depth = 0
SNMPThe 0 (zero) value for the RIP-Queue-Depth or Queue-Depth parameters means that the MAX TNT will not drop any UDP packets, no matter how far behind it gets. In other words, there is no limit to the queue depth. Valid values are 0 to 1024.
queue-depth = 0
When you set these parameters to specify a queue depth, the MAX TNT is more likely to drop UDP packets when it is busy routing packets. However, time-sensitive routed packets are less likely to be delayed and system memory is used more efficiently.
In the following example, the administrator sets both queue depths to 50. Fifty of each type of packet will be held for processing, and if additional packets of either type are received when the queue is full, they will be dropped.
admin> read ip-global
IP-GLOBAL read
admin> set rip-queue-depth = 50
admin> write
IP-GLOBAL written
admin> read snmp
SNMP read
admin> set queue-depth = 50
admin> writeNote that the Netstat command output shows the queue depth of various UDP ports, as well as the total packets received and total packets dropped on each port. The total packets received count includes the total packets dropped. In the following example, the SNMP queue depth was set to 32:
SNMP written
admin> netstat udp
udp:
Socket Local Port InQLen InQMax InQDrops Total Rx
0 1023 0 1 0 0
1 route 0 50 0 509
2 echo 0 32 0 0
3 ntp 0 32 0 0
4 1022 0 128 0 0
5 SNMP 32 32 5837 20849
If you must control memory usage for the card, you can restrict the cache size or disable the route cache with the following parameters (shown with their default values, which are recommended):
IP-GLOBALRoute caches are enabled by default, and Ascend recommends that you do not disable route caches or change their size.The IProute-Cache-Size parameter is set to 0 by default, which sets no limit on the size of the cache. If you set a higher number, it represents the number of cache entries. Usually, no limit is required.
iproute-cache-enable = yes
iproute-cache-size = 0
In a TCP-Clear session, a TCP connection is established between the receiving slot card for the client dial-in (such as a modem card) and a server on the IP network, which is accessible through the destination card (such as an Ethernet card). TCP packets containing the client terminal byte stream are created by the modem card and sent to the server. In this example, the packets from modem card to server can be routed via IP route-caching directly to the Ethernet card. In the reverse direction, server to client, there is no IP route cache, because the packet is destined for the MAX TNT system itself. So the packet is delivered to the router, where it is forwarded to the modem card based on the destination port number.
The following parameter (shown with its default value) enables IP packet forwarding card-to-card based on the packet destination IP address and port:
IP-GLOBALIf you set this parameter to No, packets destined for the MAX TNT itself are routed from the receiving slot card to the destination slot card through the shelf-controller, rather than being forwarded directly from the receiving slot card.
ip-port-cache-enable = yes
IP-GLOBALWith BOOTP-Enabled set to Yes, the MAX TNT can query a BOOTP server for new parameters and to check for a new software load. With RARP-Enabled set to Yes, the MAX TNT can obtain its own IP addresses from a RARP server. The following set of commands enables both BOOTP and RARP:
bootp-enabled = no
rarp-enabled = no
admin> read ip-global
IP-GLOBAL read
admin> set bootp-enabled = yes
admin> set rarp-enabled = yes
admin> write
IP-GLOBAL written
IP-GLOBALIf data integrity is of the highest concern for your network, and redundant checks are important, you can turn on UDP checksums to generate a checksum whenever a UDP packet is transmitted. UDP packets are transmitted for queries and responses related to ATMP, SYSLOG, DNS, ECHOSERV, RADIUS, TACACS, RIP, SNTP, and TFTP. The following commands turn on UDP checksums:
udp-cksum = yes
admin> read ip-global
IP-GLOBAL read
admin> set udp-cksum = yes
admin> write
IP-GLOBAL written
IP-GLOBALTCP-Timeout applies to all TCP connections initiated from the MAX TNT, including Telnet, Rlogin, TCP-clear, and the TCP portion of DNS queries. It applies to established TCP connections as well as to initial attempts to connect. For example, when a user enters a host name via client software in a terminal server session, and DNS returns a list of IP addresses for the host, if the first address proves unreachable and the timeout on each attempt is long, the client software often times out before finding a good address.
tcp-timeout = 0
Valid values for TCP-Timeout are from 0 to 200 seconds. At the default value (0), the system attempts a fixed number of retries at escalating intervals, adding up to about 170 seconds total. (Other limits in the system terminate TCP retries after about 170 seconds, even if the parameter is set to a higher number.) If you set TCP-Timeout to a non-zero value, the value is the number of seconds TCP retries persist. After the specified number of seconds, the retries stop and the connection is considered lost. The following commands set the timeout to 50 seconds:
admin> read ip-global
IP-GLOBAL read
admin> set tcp-timeout = 50
admin> writeThe optimal setting for the TCP-Timeout parameter must be determined by experience, and depends on the characteristics of the TCP destination (server) hosts. For example, if the destinations are all on a LAN under the same administrative control as the MAX TNT and are lightly loaded, then a short timeout (such as a few seconds) might be reasonable, because a host that does not respond within that interval is probably down. Conversely, if the environment includes servers with longer network latency times, such as those connected across the WAN, or load is high in the network or the router, or the characteristics of the remote hosts are not well known, a longer timeout is appropriate. Values of 30 to 60 seconds are common in UNIX TCP implementations.
IP-GLOBAL written
IP-GLOBALWhen set to No, the MAX TNT rejects queries from Finger clients with the following message:
finger = no
Finger online user list denied.The following commands enable the MAX TNT to accept Finger queries and return the requested active session details to a remote client:
admin> read ip-global
IP-GLOBAL read
admin> set finger = yes
admin> writeThe client can request the short or wide format; for example, a UNIX client can request the wide format by using the -l option. The following command:
IP-GLOBAL written
# finger @tnt1displays the narrow (80-character wide) format, and the following command
# finger -l @tnt1displays a wide (140-character-wide format of session information for the system named TNT1. The client can also request the details of all sessions, or of a single session. For example, to request information about a single user named Gavin:
# finger gavin@tnt1The Finger forwarding service is not supported. The forwarding service uses the following hostname format :
@host1@host2If the remote client uses the forwarding request format, the client sees the following message:
Finger forwarding service denied.
IP-GLOBALSNTP must be enabled before the MAX TNT can communicate using that protocol. In addition, you must specify the IP address of at least one SNTP server. The Host parameter lets you specify up to three server addresses. The MAX TNT always communicates with the first address unless it is inaccessible. In that case, the MAX TNT attempts to communicate with the second address, trying the third address only if the other two are inaccessible.
sntp-info
enabled = no
gmt-offset = utc+0000
host
host[1] = 0.0.0.0
host[2] = 0.0.0.0
host[3] = 0.0.0.0
With the GMT-Offset parameter, you specify your time zone as an offset from the Universal Time Configuration (UTC). UTC is in the same time zone as Greenwich Mean Time (GMT), and you specify the offset in hours and minutes using a 24-hour clock. Because some time zones, such as Newfoundland, do not have an even hour boundary, the offset includes four digits. It requires half-hour increments. For example, in Newfoundland the time is 1.5 hours ahead of UTC, which is represented as follows:
UTC +0130For San Francisco, which is 8 hours ahead of UTC:
UTC +0800For Frankfurt, which is 1 hour behind UTC:
UTC -0100The commands in the following example specify the time zone for San Francisco and the address of one SNTP server:
admin> read ip-global
IP-GLOBAL read
admin> list sntp-info
enabled = no
gmt-offset = utc+0000
host = [0.0.0.0 0.0.0.0 0.0.0.0]
admin> set enabled = yes
admin> set gmt = utc+0800
admin> set host 1 = 10.2.3.4
admin> write
IP-GLOBAL written
Configuring LAN interfaces
This section describes how to configure the local Ethernet interfaces of the MAX TNT for IP routing. It covers the following topics:
IP-Interface profile indexes
The MAX TNT creates a default IP-Interface profile for each local interface when it first detects the shelf-controller Ethernet port or the presence of an installed Ethernet card. For example, the following output shows the default IP-Interface profiles for the shelf-controller and a 100-Mbit Ethernet card installed in slot 12:
admin> dir ip-interfaceThe profile for the first Ethernet port on a card in shelf 1, slot 12, uses the following index:
66 03/31/1998 10:13:24 { { shelf-1 controller 1 } 0 }
8 03/31/1998 11:36:32 { { shelf-1 slot-12 2 } 0 }
8 03/31/1998 11:36:32 { { shelf-1 slot-12 3 } 0 }
8 03/31/1998 11:36:32 { { shelf-1 slot-12 4 } 0 }
8 03/31/1998 11:36:59 { { shelf-1 slot-12 5 } 0 }
64 03/31/1998 11:53:12 { { shelf-1 slot-12 1 } 0 }
{{1 12 1} 0}This index is composed of a physical address and a logical-item-number in the following format:
{{ shelf-N slot-N item-N } logical-item-N }The logical item addresses a specific logical interface. It is zero except when multiple interfaces have been configured. The logical-item-numbers do not have to be consecutive, but they must be unique. For example, the following command creates another IP-Interface profile for that Ethernet port:
admin> new ip-interface {{1 12 1} 1}
IP-INTERFACE/{ { shelf-1 slot-12 1 } 1 } read
Assigning local IP addresses
You must specify at least one IP address for each LAN interface that supports TCP/IP, unless the MAX TNT uses reverse ARP to obtain its address for the interface. (To enable reverse ARP, see Enabling BOOTP and RARP). To assign an IP address to a LAN interface, set the IP-Address parameter in the IP-Interface profile (shown here with its default value):
IP-INTERFACE {{shelf-N slot-N N } N }To assign an address, first obtain an IP address that is not in use on the network segment. Then, open the IP-Interface profile and specify the IP address. Following is an example that shows the commands entered to set the IP address to 10.1.2.65/24, and the system's responses:
ip-address = 0.0.0.0/0
admin> dir ip-interface
66 03/31/1998 10:13:24 { { shelf-1 controller 1 } 0 }
admin> read ip-interface { { 1 c 1 } 0}
IP-INTERFACE/{ { shelf-1 controller 1 } 0 } read
admin> set ip-address = 10.1.2.65/24
admin> writeFor background information about specifying subnet masks, see Using Ascend notation for IP addresses.
IP-INTERFACE/{ { shelf-1 controller 1 } 0 } written
admin> dir ip-interface
66 03/31/1998 10:13:24 { { shelf-1 controller 1 } 0 }
8 03/31/1998 11:36:32 { { shelf-1 slot-12 2 } 0 }
8 03/31/1998 11:36:32 { { shelf-1 slot-12 3 } 0 }
8 03/31/1998 11:36:32 { { shelf-1 slot-12 4 } 0 }
8 03/31/1998 11:36:59 { { shelf-1 slot-12 5 } 0 }
64 03/31/1998 11:53:12 { { shelf-1 slot-12 1 } 0 }
admin> read ip-int { {1 12 1} 0}
IP-INTERFACE/{ { shelf-1 slot-12 1 } 0 } read
admin> set ip-address = 10.5.6.7
admin> writeThe next set of commands creates a second IP-interface profile for the same physical port and assigns it the address 10.9.1.212/24:
IP-INTERFACE/{ { shelf-1 slot-12 1 } 0 } written
admin> new ip-int { {1 12 1 } 1}
IP-INTERFACE/{ { shelf-1 slot-12 1 } 1 } read
admin> set ip-addr = 10.9.1.212/24
admin> write
IP-INTERFACE/{ { shelf-1 slot-12 1 } 1 } written
Enabling proxy ARP on a LAN interface
When you enable proxy ARP, hosts on the LAN interface can ARP for hosts or subnets that reside across the WAN but have an IP address on the local network. The MAX TNT responds to the local hosts' ARP requests, and then routes the packets for those connections across the WAN. To enable proxy ARP, set the Proxy-Mode parameter in the IP-Interface profile (shown here with its default value):
IP-INTERFACE {{shelf-N slot-N N } N }
proxy-mode = off
You can enable Proxy-Mode by setting it to Active (respond for active WAN connections only), Inactive (respond only for inactive WAN connections), or Always (respond for all pool addresses, including those for inactive connections). If the MAX TNT is set to respond to ARP requests for inactive connections, it brings up the required WAN connection.
admin> read ip-interface {{1 12 3} 0}
IP-INTERFACE/{ { shelf-1 slot-12 3 } 0 } read
admin> set proxy-mode = active
admin> write
IP-INTERFACE/{ { shelf-1 slot-12 3 } 0 } written
IP-INTERFACE {{shelf-N slot-N N } N }For details about each parameter's settings, see the MAX TNT Reference Guide.
rip-mode = routing-off
rip2-use-multicast = yes
Figure 4-3 shows the MAX TNT and a local router, connecting to a remote access router with another router on the remote network. Each router maintains its own routing table.
Figure 4-3. Deciding whether to enable RIP
admin> read ip-interface {{1 12 3} 0}
IP-INTERFACE/{ { shelf-1 slot-12 3 } 0 } read
admin> set rip-mode = routing-send-and-recv-v2
admin> writeFor information about filtering routes or configuring route metrics in RIP update packets, see Chapter 9, Ascend Packet Filters.
IP-INTERFACE/{ { shelf-1 slot-12 3 } 0 } written
Configuring WAN interfaces
This section describes how to configure Connection profiles for IP routing connections. It covers the following topics:
Listing the IP subprofile of a Connection profile
For information about configuring the encapsulation, telco, and session options required for building a connection, see Chapter 2, WAN Connections. Following is an example that shows the commands entered to open a Connection profile and list the IP-Options subprofile, and the system's responses:
admin> read conn test
CONNECTION/test read
admin> list ip-optionsFor complete information about each parameter, see the MAX TNT Reference Guide. For information about the Client-DNS settings, see Appendix B, Network Security Settings.
ip-routing-enabled = yes
vj-header-prediction = yes
remote-address = 0.0.0.0/0
local-address = 0.0.0.0/0
routing-metric = 7
preference = 100
down-preference = 255
private-route = no
multicast-allowed = no
address-pool = 0
ip-direct = 0.0.0.0
rip = routing-off
ospf-options = { no 0.0.0.0 normal 10 30 120 5 simple +
multicast-rate-limit = 100
client-dns-primary-addr = 0.0.0.0
client-dns-secondary-addr = 0.0.0.0
client-dns-addr-assign = yes
client-default-gateway = 0.0.0.0
Enabling IP routing for a WAN connection
The following parameters (shown with their default values) enable IP routing and TCP header compression:
CONNECTION stationBy default, all new Connection profiles enable the routing of IP packets (the IP-Routing-Enabled parameter is set to Yes). The VJ-Header-Prediction parameter is also set to Yes by default, which specifies negotiation of Van Jacobson header prediction for TCP packets on incoming calls using encapsulation protocols that support this feature. You can change the defaults if necessary, but they are appropriate for most IP routing connections.
ip-options
ip-routing-enabled = yes
vj-header-prediction = yes
CONNECTION stationWhen the remote station calls in, the MAX TNT matches the caller's source IP address to this parameter to find the right Connection profile. Figure 4-4 shows the MAX TNT connecting to a remote router, such as an Ascend Pipeline. This could be a telecommuting configuration, for example, where the Pipeline is located at a branch or home office.
ip-options
remote-address = 10.7.8.200/24
Figure 4-4. Router-to-router IP connection
The default settings for the IP-Options subprofile enable IP routing and Van Jacobsen header compression and turn RIP off. Those are the appropriate settings for the following example, which configures a Connection profile for the Pipeline in Figure 4-4:
admin> read conn pipeline-1
CONNECTION/pipeline-1 read
admin> set active = yes
admin> set encapsulation-protocol = ppp
admin> set dial-number = 9-1-333-555-1212
admin> set ppp send-password = remotepw
admin> set ppp recv-password = localpw
admin> set ip-options remote = 10.7.8.200/24
admin> writeTo specify the local CPE router as the MAX TNT unit's default route:
CONNECTION/pipeline-1 written
admin> read ip-route default
IP-ROUTE/default read
admin> set gateway = 10.4.5.133
admin> writeFor information about configuring other Connection profile parameters, see Chapter 2, WAN Connections and Appendix A, Access Security Settings.
IP-ROUTE/default written
Example of a dial-in host requiring a host route
The following parameter specifies the IP address of a dial-in host running PPP software:
CONNECTION stationA host route is advertised as an IP address with a subnet mask of 32. It represents a single host rather than a remote router. Figure 4-5 shows a sample connection in which a dial-in host with an ISDN modem card calls into the MAX TNT.
ip-options
remote-address = 10.8.9.10/32
Figure 4-5. Dial-in host requiring a static IP address (a host route)
Username=pattiThe default settings for the IP-Options subprofile enable IP routing and Van Jacobsen header compression and turn RIP off. Those settings are appropriate for the following example, which configures the Connection profile for the host:
Accept Assigned IP=N/A (or No)
IP address=10.8.9.10
Netmask=255.255.255.255
Default Gateway=N/A (or None)
Name Server=10.7.7.1
Domain suffix=abc.com
VAN Jacobsen compression ON
admin> new conn patti
CONNECTION/patti read
admin> set active = yes
admin> set encapsulation-protocol = ppp
admin> set ppp recv-password = localpw
admin> set ip-options remote = 10.8.9.10/32
admin> write
CONNECTION/patti written
ANSWER-DEFAULTS
ip-answer
assign-address = no
CONNECTION stationIf the remote device is a dial-in host that accepts dynamic address assignment, leave the Remote-Address parameter blank and specify the number of the pool from which the MAX TNT can obtain an address for dynamic assignment to the host. Figure 4-6 shows the MAX TNT assigning an address from one of its defined pools to a dial-in host:
ip-options
remote-address = 0.0.0.0/0
address-pool = 0
Figure 4-6. Dial-in host requiring assigned IP address
The PPP software on the dial-in host in Figure 4-6 is configured to acquire its IP address dynamically. For example, the PPP software could have the following configuration:
Username=victorFollowing is an example of configuring a Connection profile to assign an IP address dynamically when the host dials in:
Accept Assigned IP=Yes
IP address=Dynamic (or Assigned or N/A)
Netmask=255.255.255.255 (or None or N/A)
Default Gateway=None or N/A
Name Server=10.2.3.55
Domain suffix=abc.com
Baud rate=38400
Hardware handshaking ON
VAN Jacobsen compression ON
admin> read answer
ANSWER-DEFAULTS read
admin> set ip-answer assign-address = yes
admin> write
ANSWER-DEFAULTS written
admin> new conn victor
CONNECTION/victor read
admin> set active = yes
admin> set encapsulation-protocol = ppp
admin> set ppp recv-password = localpw
admin> set ip-options address-pool = 0
admin> writeWhen Address-Pool is 0 (zero), the MAX TNT gets an IP address for this host from the first defined address pool. To assign an address within a specific range, specify a pool number from 1 to 128.
CONNECTION/victor written
For a numbered-interface connection, each side of the connection is assigned a unique address that applies only to the connection. This is a requirement for some applications, such as SNMP. For a numbered interface, routing operations differ in the following ways:
CONNECTION stationRemote-Address is the remote system's IP address.
ip-options
remote-address = 11.123.4.5/28
local-address = 10.9.1.212/24
Local-Address is an IP address assigned to the local side of a numbered-interface connection. The address must be unique to the connection. You can assign a fake IP address or an IP address from one of the local subnets.The MAX TNT accepts IP packets destined for the specified address and treats them as destined for the system itself. (The packets may arrive on any interface, and the destination numbered interface need not be in the active state.)
Figure 4-7 shows a numbered-interface connection. The real, physical MAX TNT Ethernet interface has the IP address 10.5.6.7/24. The other two addresses represent the local and remote sides of the numbered-interface connection.
Figure 4-7. A numbered interface connection
admin> new conn numbered
CONNECTION/numbered read
admin> set active = yes
admin> set encapsulation-protocol = ppp
admin> set ppp recv-password = localpw
admin> set ip-options remote-address = 11.123.4.5/24
admin> set ip-options local-address = 10.9.1.212/24
admin> write
CONNECTION/numbered written
remote-address = 10.9.8.10/22the MAX TNT creates a static route with the following addresses:
dest-address = 10.9.8.10/22Because each WAN connection is a routing table entry, you can configure routing policies and preferences for the route, just as you would for a static IP-Route profile. The following parameters configure routing policies and route preferences for the WAN connection:
gateway-address = 10.9.8.10
CONNECTION stationFor complete information about each parameter, see the MAX TNT Reference Guide.
ip-options
routing-metric = 1
preference = 100
down-preference = 120
private-route = no
rip = routing-off
admin> read conn david
CONNECTION/david read
admin> set ip-options routing-metric = 7
admin> writeFor information about configuring route metrics in RIP packets, see Chapter 9, Ascend Packet Filters.
CONNECTION/david written
Assigning a preference and down-preference
When choosing which route to use, the router first compares the preference values, preferring the lowest number. If the preference values are equal, the router compares the metric values, using the route with the lowest metric. The value of 255 means "Don't use this route." For a discussion of route preferences see Configuring system-level routing policies and preferences.
admin> read conn david
CONNECTION/david read
admin> set ip-options preference = 50
admin> set ip-options down-preference = 255
admin> write
CONNECTION/david written
In some cases, making a route private is recommended. In the case of the pool summary feature, it is required. See Setting up summarized address pools (pool summary). Following is an example of making the Connection profile route private:
admin> read conn david
CONNECTION/david read
admin> set ip-options private-route = yes
admin> write
CONNECTION/david written
admin> read conn david
CONNECTION/david read
admin> set ip-options rip = routing-send-and-recv-v2
admin> writeYou should run RIP version 2 (RIP-v2) if possible. Ascend does not recommend running RIP-v2 and RIP-v1 on the same network in such a way that the routers receive each other's advertisements. RIP-v1 guesses subnet masks, while RIP-v2 handles them explicitly. Running the two versions on the same network can result in RIP-v1 guesses overriding accurate subnet information obtained via RIP-v2.
CONNECTION/david written
For information about filtering routes in RIP update packets, see Chapter 9, Ascend Packet Filters.
Using client DNS
Client DNS configurations define the DNS servers presented to WAN connections during IPCP negotiation. The configurations provide a way to protect your local DNS information from WAN users. For details, see Appendix B, Network Security Settings.
Specifying client default gateways
A client default gateway is a connection-specific next-hop router. All packets received across the WAN connection are forwarded to the specified router. Client default gateways are typically used to ensure that traffic associated with a particular on-line service is sent through the router operated by that service.
CONNECTION stationFor example:
ip-options
client-default-gateway = 0.0.0.0
admin> read connection test
CONNECTION/test read
admin> set ip-options client-default-gateway = 17.1.1.1
admin> writeWhen a client default gateway is specified for a WAN connection, all packets received across the connection are forwarded to the specified next-hop router. If the remote device is another access router, the default gateway is used for packets sent by all hosts behind that router.
CONNECTION/test written
While all packets arriving on the interface using this profile are affected, packets from other connections or from the Ethernet are handled normally. Use of this feature does not alter the global routing table.
When a Connection profile specifies a client default gateway, the MAX TNT receives packets across the connection and consults the routing table in the usual way. It looks first for a specific route that matches the destination. If it finds no explicit route for packets received across this WAN connection, it uses the client default gateway instead of using the system default route or, if no system default route has been configured, dropping the packet.
CONNECTION stationThe IP-Direct parameter specifies the IP address of a next-hop destination to which all IP packets received across the link will be directed. The default is 0.0.0.0, which means that IP-Direct is disabled. Figure 4-8 shows an example of the IP-Direct traffic flow.
ip-options
ip-direct = 10.1.2.3/24
Figure 4-8. IP Direct connections
The following set of commands configures an IP-Direct Connection profile for client A:
admin> read conn client-A
CONNECTION/client-A read
admin> set active = yes
admin> set encapsulation-protocol = ppp
admin> set ppp recv-password = localpw
admin> set ip-options remote = 10.8.9.10/22
admin> set ip-options ip-direct = 10.2.3.11
admin> writeIP-Direct connections require the following special handling:
CONNECTION/client-A written
Configuring static IP routes
When the MAX TNT starts up, it initially builds the routing table from its known static routes, which include those defined in IP-Interface profiles, Connection profiles, and IP-Route profiles. The routes in IP-Route profiles are also passed to the router whenever a route changes. Following are the related parameters, shown with sample settings:
IP-ROUTE name
name* = default
dest-address = 0.0.0.0/0
gateway-address = 10.2.3.17
metric =1
cost =1
preference = 100
third-party = no
ase-type = type-1
ase-tag = c0:00:00:00
private-route = yes
active-route = yes
ase7-adv = N/A
IP-ROUTE nameFor information about how to configure IP-Route profiles for OSPF, see Chapter 5, OSPF Routing.
cost =1
third-party = no
ase-type = type-1
ase-tag = c0:00:00:00
ase7-adv = N/A
Example of a default route
When the MAX TNT consults its routing table, if it does not find a specific match for the packet's destination address, it looks for a default route. The default route specifies a zero destination address (0.0.0.0), which is interpreted as any destination. If the MAX TNT finds a default route, it forwards the packet to the specified gateway address (next-hop router). If it finds no specific destination match and no default route, the MAX TNT drops the packet.
IP-ROUTE defaultFigure 4-9 shows a router on a local interface configured as the default route in a MAX TNT. This type of configuration enables the MAX TNT to turn off RIP on its local interfaces, and forward all local packets to the default route.
dest-address = 0.0.0.0/0
gateway-address = 10.4.4.133
Figure 4-9. Default route to a local IP router
admin> read ip-route default
IP-ROUTE/default read
admin> set gateway-address = 10.4.4.133
admin> write
IP-ROUTE/default written
IP-ROUTE nameFor example, if a Connection profile specifies the destination address of a host on a remote subnet, but the packets must be routed through an intermediary device to reach that host (and RIP or OSPF is not enabled), you must configure a static route specifying the intermediary device as the gateway. Figure 4-10 shows an example.
dest-address = 10.2.3.56/28
gateway-address = 10.2.3.17
Figure 4-10. Static route to a remote subnet
admin> new ip-route subnet
IP-ROUTE/subnet read
admin> set dest = 10.4.5.0/22
admin> set gateway = 10.9.8.10
admin> write
IP-ROUTE/subnet written
The Preference parameter specifies a route preference. Zero is the default for connected routes (such as the Ethernet). When choosing which route to use, the router first compares the preference values, preferring the lowest number. If the preference values are equal, the router compares the metric values, using the route with the lowest metric. The value of 255 means "Don't use this route." For a discussion of route preferences see Configuring system-level routing policies and preferences.
The commands in the following example set a relatively low metric and preference values for a route:
admin> read ip-route subnet
IP-ROUTE/subnet read
admin> set metric = 2
admin> set preference = 50
admin> writeFor information about configuring route metrics in RIP packets, see Chapter 9, Ascend Packet Filters.
IP-ROUTE/subnet written
Making a static route private
The Private-Route parameter specifies whether the MAX TNT will disclose the existence of this route when queried by RIP or another routing protocol. Private routes are used internally but are not advertised. Following is an example of making a route private:
admin> read ip-route subnet
IP-ROUTE/subnet read
admin> private-route = yes
admin> write
IP-ROUTE/subnet written
admin> new ip-route bdvnet-1
IP-ROUTE/bdvnet-1 read
admin> set dest = 10.76.109.0/24
admin> set gateway = 206.65.212.1
admin> set metric = 2
admin> write
IP-ROUTE/bdvnet-1 written
admin> new ip-route bdvnet-2
IP-ROUTE/bdvnet-2 read
admin> set dest = 10.76.109.0/24
admin> set gateway = 206.65.210.1
admin> set metric = 2
admin> writeThe multipath routes appear in the routing table with the M (multipath) flag. For example:
IP-ROUTE/bdvnet-2 written
admin> netstat -rn
Destination Gateway IF Flg Pref Met Use Age
...
10.76.109.0/24 206.65.212.1 ie1-12-2 SGM 100 2 20 7772
10.76.109.0/24 206.65.210.1 ie1-12-3 SGM 100 2 24 7772
Copyright © 1998, Ascend Communications, Inc. All rights reserved.