This section provides information to configure an IP router.
2.4.1. Router Configuration Overview
On a 7210 SAS, an interface is a logical named entity. An interface is created by specifying an interface name under the config>router context. This is the global router configuration context where objects like static routes are defined. An IP interface name can be up to 32 alphanumeric characters, must start with a letter, and is case-sensitive; for example, the interface name “1.1.1.1” is not allowed, but “int-1.1.1.1” is allowed.
To create an interface on a 7210 SAS, the basic configuration tasks are the following.
Assign a name to the interface.
Associate an IP address with the interface.
Associate the interface with a network interface or the system interface.
Associate the interface with a system or a loop-back interface.
Configure appropriate routing protocols.
A system interface and network interface should be configured.
2.4.1.1. System Interface
The system interface is associated with the network entity (such as, a specific 7210 SAS-M), not a specific interface. The system interface is also referred to as the loop-back address. The system interface is associated during the configuration of the following entities:
termination point of service tunnels
hops when configuring MPLS paths and LSPs
addresses on a target router for BGP and LDP peering
The system interface is used to preserve connectivity (when routing re-convergence is possible) when an interface fails or is removed. The system interface is used as the router identifier. A system interface must have an IP address with a 32-bit subnet mask.
2.4.1.2. Network Interface
![](../icons/nn021191.gif) | Note: Network interfaces are supported on all 7210 SAS platforms as described in this document, except those operating in access-uplink mode. |
A network interface can be configured on a physical port or LAG on a physical or logical port.
2.4.2. Basic Configuration
The most basic router configuration must have the following:
system name
system address
The following is a sample router configuration output.
A:ALA-A> config# info
. . .
#------------------------------------------
# Router Configuration
#------------------------------------------
router
interface "system"
address 10.10.10.103/32
exit
interface "to-104"
address 10.0.0.103/24
port 1/1/1
exit
exit
autonomous-system 12345
router-id 10.10.10.103
...
exit
isis
exit
...
#------------------------------------------
A:ALA-A> config#
2.4.3. Common Configuration Tasks
The following sections describe basic system tasks.
2.4.3.1. Configuring a System Name
Use the system command to configure a name for the device. The name is used in the prompt string. Only one system name can be configured. If multiple system names are configured, the last one configured overwrites the previous entry.
If special characters are included in the system name string, such as spaces, #, or ?, the entire string must be enclosed in double quotes. Use the following syntax to configure the system name.
config# system
name system-name
config# system
config>system# name ALA-A
ALA-A>config>system# exit all
ALA-A#
The following is a sample system name configuration output.
A:ALA-A>config>system# info
#------------------------------------------
# System Configuration
#------------------------------------------
name "ALA-A"
location "Mt.View, CA, NE corner of FERG 1 Building"
coordinates "37.390, -122.05500 degrees lat."
snmp
exit
. . .
exit
----------------------------------------------
2.4.3.2. Configuring Interfaces
The following command sequences create a system and a logical IP interface. The system interface cannot be deleted.
2.4.3.2.1. Configuring a System Interface
Use the following syntax to configure a system interface.
config>router
interface interface-name
address {[ip-address/mask]|[ip-address] [netmask]} [broadcast {all-ones | host-ones]
The following is a sample IP configuration output showing network interface information.
A:ALA-A>config>router# info
#------------------------------------------
# IP Configuration
#------------------------------------------
interface "system"
address 10.10.0.4/32
exit
interface "to-ALA-2"
address 10.10.24.4/24
port 1/1/1
egress
filter ip 10
exit
exit
...
#------------------------------------------
A:ALA-A>config>router#
2.4.3.2.2. Configuring IPv6 Parameters
The following is a sample interface configuration output showing the IPv6 default configuration when IPv6 is enabled on the interface.
*A:dut-d>config>router>if>ipv6# info detail
----------------------------------------------
icmp6
packet-too-big 100 10
param-problem 100 10
redirects 100 10
time-exceeded 100 10
unreachables 100 10
exit
address 2001:db8::1/64
no dad-disable
no reachable-time
no neighbor-limit
no qos-route-lookup
no local-proxy-nd
no tcp-mss
----------------------------------------------
Use the following syntax to configure IPv6 parameters on a router interface.
config>router# interface interface-name
port port-name
ipv6
address {ipv6-address/prefix-length} [eui-64]
icmp6
packet-too-big [number seconds]
param-problem [number seconds]
redirects [number seconds]
time-exceeded [number seconds]
unreachables [number seconds]
neighbor ipv6-address mac-address
The following is a sample configuration output showing interface information.
A:ALA-49>config>router>if# info
----------------------------------------------
address 10.11.10.1/64
port 1/1/10
ipv6
address 2001:db8::1/64
exit
----------------------------------------------
A:ALA-49>config>router>if#
2.4.3.3. Configuring Router Advertisement
To configure the router to originate router advertisement messages on an interface, the interface must be configured under the router-advertisement context and be enabled (no shutdown). All other router advertisement configuration parameters are optional.
Use the following syntax to enable router advertisement and configure router advertisement parameters.
config>router# router-advertisement
interface ip-int-name
current-hop-limit number
managed-configuration
max-advertisement-interval seconds
min-advertisement-interval seconds
mtu mtu-bytes
other-stateful-configuration
prefix ipv6-prefix/prefix-length
autonomous
on-link
preferred-lifetime {seconds | infinite}
valid-lifetime {seconds | infinite}
reachable-time milli-seconds
retransmit-time milli-seconds
router-lifetime seconds
no shutdown
use-virtual-mac
The following is a sample router advertisement configuration output.
*A:sim131>config>router>router-advert# info
----------------------------------------------
interface "n1"
prefix 2001:db8::/64
exit
use-virtual-mac
no shutdown
exit
----------------------------------------------
*A:sim131>config>router>router-advert# interface n1
*A:sim131>config>router>router-advert>if# prefix 2001:db8::/64
*A:sim131>config>router>router-advert>if>prefix# info detail
----------------------------------------------
autonomous
on-link
preferred-lifetime 604800
valid-lifetime 2592000
----------------------------------------------
*A:tahi>config>router>router-advert>if>prefix#
2.4.3.4. Configuring Proxy ARP
To configure proxy ARP, you can configure the following:
a prefix list in the config>router>policy-options>prefix-list context
a route policy statement in the config>router>policy-options>policy-statement context and apply the specified prefix list
In the policy statement entry>to context, specify the host source addresses for which ARP requests can or cannot be forwarded to non-local networks, depending on the specified action.
In the policy statement entry>from context, specify network prefixes that ARP requests will or will not be forwarded to depending on the action if a match is found. Refer to the 7210 SAS-M, T, R6, R12, Mxp, Sx, S Routing Protocols Guide for more information about route policies.
apply the policy statement to the proxy-arp configuration in the config>router>interface context
config>router# policy-options
begin
commit
prefix-list name
prefix ip-prefix/mask [exact | longer | through
length | prefix-length-range length1-length2]
Use the following syntax to configure the policy statement specified in the proxy-arp-policy policy-statement command.
config>router# policy-options
begin
commit
policy-statement name
default-action {accept | next-entry | next-policy | reject}
entry entry-id
action {accept | next-entry | next-policy | reject}
to
prefix-list name [name...(upto 5 max)]
from
prefix-list name [name...(upto 5 max)]
The following is a sample prefix list and policy statement configuration output.
A:ALA-49>config>router>policy-options# info
----------------------------------------------
prefix-list "prefixlist1"
prefix 10.20.30.0/24 through 32
exit
prefix-list "prefixlist2"
prefix 10.10.10.0/24 through 32
exit
...
policy-statement "ProxyARPpolicy"
entry 10
from
prefix-list "prefixlist1"
exit
to
prefix-list "prefixlist2"
exit
action reject
exit
default-action accept
exit
exit
...
----------------------------------------------
A:ALA-49>config>router>policy-options#
Use the following syntax to configure proxy ARP.
config>router>interface interface-name
local-proxy-arp
proxy-arp-policy policy-name [policy-name...(upto 5 max)]
remote-proxy-arp
The following is a sample proxy ARP configuration output.
A:ALA-49>config>router>if# info
----------------------------------------------
address 192.0.2.59/24
local-proxy-arp
proxy-arp
policy-statement "ProxyARPpolicy"
exit
----------------------------------------------
A:ALA-49>config>router>if#
2.4.3.5. ECMP Considerations
![](../icons/nn021191.gif) | Note: IP ECMP is supported on all 7210 SAS platforms as described in this document, except those operating in access-uplink mode.
LDP LSR ECMP is supported on all 7210 SAS platforms as described in this document, except those operating in access-uplink mode.
LDP LER ECMP is not supported on any 7210 SAS platforms.
|
When ECMP is enabled and multiple equal-cost next-hops exit for the IGP route, the packets for this route is sprayed based on hashing routine currently supported for IPv4 packets.
When the preferred RTM entry corresponds to a regular IP route, spraying will be performed across regular IP next-hops for the prefix.
2.4.3.5.1. Configuration Notes
The following information describes ECMP configuration guidelines.
Users must allocate resources using the config system resource-profile router ecmp max-ecmp-routes command (on the 7210 SAS-R6 and R12, the command is config>system>global-resource-profile>router>ecmp>max-ecmp-routes) before ECMP can be enabled using the config router ecmp command. Refer to the 7210 SAS-M, T, R6, R12, Mxp, Sx, S Basic System Configuration Guide for more information about the resource profile command.
LDP LER ECMP (including LDP over RSVP) is not supported. LDP LSR ECMP is supported on certain platforms. Check the release notes and refer to the 7210 SAS-M, T, R6, R12, Mxp, Sx, S MPLS Guide for information about the platforms that support it and to learn more about it. IPv4 ECMP and LDP LSR ECMP share common set of resources in the hardware. Refer to the 7210 SAS-M, T, R6, R12, Mxp, Sx, S Basic System Configuration Guide for information about resource allocation for IPv4 ECMP and LDP LSR ECMP.
IPv6 ECMP is not supported. Only a single IPv6 route for a IPv6 destination is programmed in the IPv6 FIB. IPv6 routing and IPv6 IP interfaces cannot be used if IPv4 ECMP is in use (these features are mutually exclusive).
2.4.3.6. Deriving the Router ID
The router ID defaults to the address specified in the system interface command. If the system interface is not configured with an IP address, then the router ID inherits the last four bytes of the MAC address. The router ID can also be manually configured in the config>router router-id context. On the BGP protocol level, a BGP router ID can be defined in the config>router>bgp router-id context and is only used within BGP.
If a new router ID is configured, protocols are not automatically restarted with the new router ID. The next time a protocol is initialized the new router ID is used. An interim period of time can occur when different protocols use different router IDs. To force the new router ID, issue the shutdown and no shutdown commands for each protocol that uses the router ID, or restart the entire router.
Use the following syntax to configure the router ID.
config>router
router-id router-id
interface ip-int-name
address {ip-address/mask | ip-address netmask} [broadcast all-ones | host-ones]
The following is a sample router ID configuration output.
A:ALA-4>config>router# info
#------------------------------------------
# IP Configuration
#------------------------------------------
interface "system"
address 10.10.0.4/32
exit
. . .
router-id 10.10.0.4
#------------------------------------------
A:ALA-4>config>router#
2.4.3.7. Configuring an Autonomous System
Configuring an autonomous system is optional. Use the following syntax to configure an autonomous system.
config>router
autonomous-system as-number
The following is a sample autonomous system configuration output.
A;ALA-A>config>router# info
#------------------------------------------
# IP Configuration
#------------------------------------------
interface "system"
address 10.10.10.103/32
exit
interface "to-104"
address 10.0.0.103/24
port 1/1/1
exit
exit
autonomous-system 100
router-id 10.10.10.103
#------------------------------------------
A:ALA-A>config>router#
2.4.3.8. Configuring Static Routes
The 7210 SAS supports both static routes and dynamic routing to next-hop addresses.
Refer to the 7210 SAS-M, T, R6, R12, Mxp, Sx, S Routing Protocols Guide for information about configuring OSPF, RIP, IS-IS, and BGP routing.
Only one next-hop IP address can be specified per IP interface for static routes.
Use the following syntax to create static route entries.
config>router
static-route {ip-prefix/prefix-length} |
{ip-prefix netmask} [preference preference] [metric metric] [tag tag] [enable | disable] next-hop {ip-int-name | ip-address} [bfd-enable] [ldp-sync]
config>router# static-route 192.168.250.0/24 preference 5 metric 1 enable next-hop 10.200.10.3 ldp-sync
config>router# exit
![](../icons/nn021191.gif) | Note: If ldp-sync is enabled on a static route, the LDP synchronization timer must also be configured on the associated interface, using the config router if ldp-sync-timer command. |
2.4.4. Service Management Tasks
This section describes the following service management tasks.
2.4.4.1. Changing the System Name
The system command sets the name of the device and is used in the prompt string. Only one system name can be configured. If multiple system names are configured, the last one configured overwrites the previous entry.
Use the following syntax to change the system name.
config# system
name system-name
The following shows the command usage to change the system name.
A:ALA-A>config>system# name tgif
A:TGIF>config>system#
The following is a sample system name change configuration output.
A:ALA-A>config>system# name TGIF
A:TGIF>config>system# info
#------------------------------------------
# System Configuration
#------------------------------------------
name "TGIF"
location "Mt.View, CA, NE corner of FERG 1 Building"
coordinates "37.390, -122.05500 degrees lat."
synchronize
snmp
exit
security
snmp
community "private" rwa version both
exit
exit
. . .
----------------------------------------------
A:TGIF>config>system#
2.4.4.2. Modifying Interface Parameters
Starting at the config>router level, navigate down to the router interface context.
The following shows the command usage to modify an IP address.
A:ALA-A>config>router# interface “to-sr1”
A:ALA-A>config>router>if# shutdown
A:ALA-A>config>router>if# no address
A:ALA-A>config>router>if# address 10.0.0.25/24
A:ALA-A>config>router>if# no shutdown
The following shows the command usage to modify a port.
A:ALA-A>config>router# interface “to-sr1”
A:ALA-A>config>router>if# shutdown
A:ALA-A>config>router>if# no port
A:ALA-A>config>router>if# port 1/1/2
A:ALA-A>config>router>if# no shutdown
The following is a sample interface configuration output.
A:ALA-A>config>router# info
#------------------------------------------
# IP Configuration
#------------------------------------------
interface "system"
address 10.0.0.103/32
exit
interface "to-sr1"
address 10.0.0.25/24
port 1/1/2
exit
router-id 10.10.0.3
#------------------------------------------
A:ALA-A>config>router#
2.4.4.3. Deleting a Logical IP Interface
The no form of the interface command typically removes the entry, but all entity associations must be shut down and/or deleted before an interface can be deleted.
Before loop-back IP interface can be deleted, it must first be administratively disabled with the shutdown command.
After the interface has been shut down, it can then be deleted with the no interface command.
config>router
no interface ip-int-name
config>router# interface test-interface
config>router>if# shutdown
config>router>if# exit
config>router# no interface test-interface
config>router#