This section provides information to configure an IP router.
2.5.1. Router Configuration Overview of 7210 SAS-D, 7210 SAS-Dxp, and 7210 SAS-K 2F1C2T
In 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 long, 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 router, the basic configuration tasks that must be performed are:
Assign a name to the interface.
Associate an IP address with the interface.
Associate the interface with a system or a loop-back interface.
A system interface should be configured.
2.5.1.1. System Interface on 7210 SAS-D, 7210 SAS-Dxp, and 7210 SAS-K 2F1C2T
The system interface is associated with the network entity, not a specific interface.
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.5.2. Router Configuration Overview on 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C
In a 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C, an interface is a logical named entity. An interface is created by specifying an interface name under the configure>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 long, 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 router, the basic configuration tasks that must be performed are:
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.5.2.1. System Interface on 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C
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:
The termination point of service tunnels
The hops when configuring MPLS paths and LSPs
The 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.5.2.2. Network Interface
![](../icons/nn021191.gif) | Note: Network port and network IP interfaces are only supported on the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C. |
A network interface can be configured on a physical port or LAG on a physical or logical port.
2.5.3. Basic Configuration
The most basic router configuration must have the following:
System name
System address
The following is a sample a router configuration for 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C.
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.5.4. Common Configuration Tasks
The following sections describe the basic system configuration tasks.
2.5.4.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 will overwrite 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.5.4.2. Configuring Interfaces
The following command sequences create a system IP interface.
![](../icons/nn021191.gif) | Note: The system interface cannot be deleted. |
2.5.4.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]}
The following is a sample IP configuration output showing interface information.
A:ALA-A>config>router# info
#------------------------------------------
# IP Configuration
#--------------------------------------------------------
interface "system"
address 10.10.0.4/32
exit
#------------------------------------------------
2.5.4.2.2. Configure a Network Interface on 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C
Use the following to configure a network interface on 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C.
config>router
interface interface-name
address ip-addr{/mask-length | mask} [broadcast {all-ones | host-ones}]
egress
filter ip ip-filter-id
ingress
filter ip ip-filter-id
port port-name
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.5.4.2.3. Configuring IPv6 Parameters on 7210 SAS-D, 7210 SAS-Dxp, 7210 SAS-K 2F6C4T, and 7210 SAS-K 3SFP+ 8C
On the 7210 SAS-D and 7210 SAS-Dxp IPv6 interfaces with static routing can be configured. On the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C, IPv6 interfaces can be configured with static routing or using routing protocols such as OSPFv3 and IS-IS Ipv6 can be configured.
Before configuring the use of IPv6, system resource must be allocated for IPv6 routes on the 7210 SAS-D and 7210 SAS-Dxp using the following command.
configure>system>resource-profile>router> max-ipv6-routes num-routes
The following is a sample interface configuration 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::/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 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.5.4.3. Configuring an Unnumbered Interface
Use the following syntax to configure an unnumbered interface.
config>router
interface interface-name
unnumbered [ip-int-name | ip-address]
config>router> interface "to-ALU-3"
config>router>if# unnumbered “system”
config>router>if# exit
2.5.4.4. Router Advertisement on 7210 SAS-D, 7210 SAS-Dxp, 7210 SAS-K 2F6C4T, and 7210 SAS-K 3SFP+ 8C
![](../icons/nn021191.gif) | Note: This feature is supported on all 7210 SAS platforms as described in this document, except the 7210 SAS-K 2F1C2T. |
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
The following is a sample router advertisement configuration output.
*A:sim131>config>router>router-advert# info
----------------------------------------------
interface "n1"
prefix 2001:db8:3::/64
exit
no shutdown
exit
----------------------------------------------
*A:sim131>config>router>router-advert# interface n1
*A:sim131>config>router>router-advert>if# prefix 2001:db8:3::/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.5.4.5. Configuring Proxy ARP
![](../icons/nn021191.gif) | Note: This feature is only supported on the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C. |
To configure proxy ARP, you can configure:
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 address(es) 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. For more information about route policies, refer to the 7210 SAS-D, Dxp Routing Protocols Guide and 7210 SAS-K 2F6C4T, K 3SFP+ 8C Routing Protocols Guide.
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.5.4.6. ECMP Considerations
![](../icons/nn021191.gif) | Note: These ECMP considerations only apply to the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C.
IPv4 ECMP is supported.
LDP LSR and LDP LER ECMP are supported.
|
When ECMP is enabled and multiple equal-cost next-hops exit for the IGP route, the packets for this route are sprayed based on the hashing routine currently supported for IPv4 packets.
When the preferred RTM entry corresponds to a regular IP route, spraying is performed across regular IP next-hops for the prefix.
2.5.4.6.1. Configuration Notes
The following information describes ECMP configuration guidelines.
IPv6 ECMP is not supported. Only a single IPv6 route for an 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.5.4.7. Deriving the Router ID
![](../icons/nn021191.gif) | Note: This feature is only supported on the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C. |
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.5.4.8. Configuring an Autonomous System
![](../icons/nn021191.gif) | Note: This feature is supported only on the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C. |
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.5.4.9. Configuring Option 82 Handling
Option 82, or “Relay Information Option” is a field in DHCP messages used to identify the subscriber. The Option 82 field can already be filled in when a DHCP message is received at the router, or it can be empty. If the field is empty, the router should add identifying information (circuit ID, remote ID or both). If the field is not empty, the router can decide to replace it.
The following is a sample of a partial BSA configuration with Option 82 adding on a VPLS service. Note that snooping must be enabled explicitly on a SAP or a SDP, as applicable. DHCP snooping configuration on an SDP is supported only on the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C.
*A:7210SAS>config>service#
----------------------------------------------
vpls 2 customer 1 create
shutdown
stp
shutdown
exit
sap 1/1/12:100 create
dhcp //Configuration example to add option 82
option
action replace
circuit-id
no remote-id
exit
no shutdown
exit
exit
no shutdown
exit
----------------------------------------------
*A:7210SAS>config>service#
The following example displays an example of a partial BSA configuration to remove
the Option 82 on a VPLS service.
vpls 2 customer 1 create
stp
shutdown
exit
sap 1/1/14:100 create //Configuration example to remove option 82
dhcp
snoop
no shutdown
exit
exit
2.5.4.10. Configuring a Local DHCP Server
Local DHCP servers provide a standards-based full DHCP server implementation which allows a service provider the option of decentralizing IP address management into the network. Local DHCP servers is supported for IP address assignment when a front-facing port on the 7210 SAS is used for local craft terminal access.
The following CLI syntax shows an example of configuring a local DHCP server (“DHCP”).
config>service# vprn 100 customer 2 create
config>service>vprn$ autonomous-system 65535
config>service>vprn$ route-distinguisher 100:100
config>service>vprn$ interface “WAN” create
config>service>vprn>if$ address 192.168.17.1/31
config>service>vprn>if$ sap 1/1/1:101 create
config>service>vprn>if>sap$ exit
config>service>vprn>if$ exit
config>service>vprn$ dhcp
config>service>vprn>dhcp$ local-dhcp-server “DHCP” create
config>service>vprn>dhcp>server$ description “DHCP-TO-CUSTOMER”
config>service>vprn>dhcp>server$ use-gi-address
config>service>vprn>dhcp>server$ pool “DHCP-POOL” create
config>service>vprn>dhcp>server>pool$ subnet 10.0.0.0/24 create
config>service>vprn>dhcp>server>pool>subnet$ address-range 10.0.0.5 10.0.0.50
config>service>vprn>dhcp>server>pool>subnet$ exit
config>service>vprn>dhcp>server>pool$ exit
config>service>vprn>dhcp>server$ no shutdown
config>service>vprn>dhcp>server$ exit
config>service>vprn>dhcp$ exit
The following CLI syntax shows an example of mapping the configured local DHCP server (“DHCP”) to an IP address, and configuring the customer-facing interface (“LAN”) to relay DHCP requests to the local DHCP server.
config>service>vprn$ interface “DHCP” create
config>service>vprn>if$ address 10.2.2.2/32
config>service>vprn>if$ local-dhcp-server “DHCP”
config>service>vprn>if$ loopback
config>service>vprn>if$ exit
config>service>vprn$ interface “LAN” create
config>service>vprn>if$ address 10.0.0.1/31
config>service>vprn>if$ dhcp
config>service>vprn>if>dhcp$ server 10.2.2.2
config>service>vprn>if>dhcp$ trusted
config>service>vprn>if>dhcp$ no shutdown
config>service>vprn>if>dhcp$ exit
config>service>vprn>if$ exit
2.5.5. Service Management Tasks
This section discusses the service management tasks.
2.5.5.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 will overwrite the previous entry.
Use the following syntax to change the system name.
config# system
name system-name
The following example 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 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.5.5.2. Modifying Interface Parameters
Starting at the config>router level, navigate down to the router interface context.
To modify an IP address, perform the following steps.
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
To modify a port, perform the following steps.
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.5.5.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#