- Alcatel Switch/Router User Manual

Adding an IP Static Route
Page 25-17
Adding an IP Static Route
The aisr command is used to add IP static routes to the switch’s IP Forwarding Table. You
might want to add a static route to send traffic to a router other than the one determined by
the routing protocols.
In order to add a static route, you will need to know the host/net IP address and the gate-
way IP address which will be used to route traffic to the external IP address. If routing
domains are configured on the switch and you want to add the route to a particular domain
other than the default, you will need to know the relevant routing domain ID (
RDID). For
more information about routing domains, see Chapter 14, “Routing Domains,” in the
Advanced Routing User Manual.
Follow the steps below to add an IP static route.
1. Enter
aisr. The prompt that displays depends on whether routing domains are configured
on the switch.
If routing domains are configured on this switch, the following prompt displays:
Routing Domains (RD) are configured on this switch.
List the RD(s) you want this route applied to? (default: none) :
If you do not want to apply the new route to a particular routing domain, press Enter. To
apply the route you are adding to an existing routing domain, enter the desired routing
domain ID (RDID) and go to step 3.
If routing domains are not configured on this switch or if you are applying this route to
the default domain, the following prompt displays:
Do you want to see the current route table? (y or n) (y) :
2. Enter a y at this prompt (or press Enter) to display the current forwarding table.
A screen similar to the following displays:
IP FORWARDING TABLE
Group VLAN
Network Mask Gateway Metric Id: Protocol
------------------------------------------------------------------------------------------------------------------------
0.0.0.0 255.0.0.0 198.206.184.254 1 1:1 STATIC
10.0.0.0 255.0.0.0 10.0.0.1 1 6:1 STATIC
11.0.0.0 255.0.0.0 11.0.0.1 1 5:1 STATIC
90.0.0.0 255.0.0.0 90.0.0.3 1 4:1 DIRECT
127.0.0.0 255.0.0.0 127.0.0.1 0 1:2 LOOPBACK
127.0.0.1 255.255.255.255 127.0.0.1 0 2:3 LOOPBACK
196.196.7.0 255.255.255.0 196.196.7.42 1 3:1 RIP
198.206.187.0 255.255.255.0 198.206.183.0 1 1:4 STATIC
198.206.184.0 255.255.255.0 198.206.184.42 1 1:1 RIP
203.229.229.0 255.255.255.0 203.229.229.250 1 2:1 RIP
Destination IP address of host or network :
3. At the prompt for the destination IP address, enter the address of the host or network to
which you are setting up a route. For a “default” route, use an entry of 0.0.0.0 as the IP
address (or just enter the word
default).
4. If you entered an IP address, a prompt similar to the following displays:
Host or network mask (255.255.255.000) :
Enter the mask (or just press <Enter> to accept the default mask).