•
Optional:
In the Ethernet Port configuration mode, configure the port speed, if needed, by entering the
medium
command. Refer to the
Command Line Interface Reference
for a complete explanation of this
command.
•
Binding associates the port and all of its settings to the named interface.
Configuring a Static Route for an Interface
Use the following example to configure a static route for an interface:
configure
context context_name
{ ip | ipv6 } route ip_address netmask next-hop gw_address interface_name
end
Notes:
•
ip_address
and
netmask
are the IP address and subnet mask of the target network. This IP address can
be entered using IPv4 dotted-decimal or IPv6 colon-separated-hexadecimal notation.
•
gw_address
is the IP address of the default gateway or next-hop route. This IP address can be entered
using IPv4 dotted-decimal or IPv6 colon-separated-hexadecimal notation.
•
To configure a route to the gateway router, use 0.0.0.0 for the network and mask variables.
•
Repeat as needed. Multiple static routes can be configured to the same destination to provide an alternative
means of communication in case the preferred route fails.
Viewing and Verifying Port Configuration
Step 1
Verify that your interface configuration settings are correct by entering the following commands:
[local]
host_name
#
context context_name
[
context_name
]
host_name
#
show { ip | ipv6 } interface
context_name
represents the name of the context in which the interface was created. The output from these commands
should be similar to the following example.
In this example an interface named
mgmt1
was configured in the local context.
Intf Name:
mgmt1
Intf Type:
Broadcast
IP State:
UP (Bound to 17/1 untagged, ifIndex 285278209)
IP State:
UP (Bound to 17/1 untagged, ifIndex 285278209)
IP State:
UP (Bound to 5/11 untagged, ifIndex 285278209)
IP Address:
192.168.100.3
Subnet Mask:
255.255.255.0
Bcast Address:
192.168.100.255
MTU:
1500
Resoln Type:
ARP
ARP timeout:
3600 secs
L3 monitor LC-port switchover:
Disabled
Number of Secondary Addresses:
0
Total interface count:
1
ASR 5000 System Administration Guide, StarOS Release 21.1
102
System Interfaces and Ports
Configuring a Static Route for an Interface
Summary of Contents for ASR 5000
Page 26: ...ASR 5000 System Administration Guide StarOS Release 21 1 xxvi Contents ...
Page 316: ...ASR 5000 System Administration Guide StarOS Release 21 1 288 VLANs VLAN Related CLI Commands ...
Page 400: ...ASR 5000 System Administration Guide StarOS Release 21 1 372 Engineering Rules ECMP Groups ...