Contexts
Creating Contexts
IMPORTANT:
[local]host_name# show context all
The output is a two-column
table similar to the example below. This example shows
that two contexts were created: one named source and one
named destination.
Context Name ContextID State
------------ --------- -----
local 1 Active
source 2 Active
destination 3 Active
The left column lists
the contexts that are currently configured. The center
column lists the corresponding context ID for each of the configured
contexts. The third column lists the current state of the
context.
IMPORTANT:
Creating an Interface
Configuring a Port and Binding It to an Interface
Configuring a Static Route for an Interface
[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 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
Number of Secondary
Addresses: 0
Total interface count: 1
[context_name]host_name# show configuration
port slot#/port#
slot# is
the chassis slot number of the MIO/UMIO on which the physical
port resides. slot# can
be 5 or 6.
This command produces
an output similar to that displayed in the following example that shows
the configuration for port 11 on the MIO/UMIO installed
in chassis slot 5.
In this example, the
port is bound to an interface called rp1 configured
in a context called source.
config
port ethernet 5/11
description MIO5/11_RP1
no shutdown
bind interface
rp1 source
#end
[context_name]host_name# show ip static-route
This command produces
an output similar to that displayed in the following example that shows
a static route to a gateway with an IP address of 192.168.250.1.
Destination Nexthop Protocol Prec Cost Interface
0.0.0.0/0 192.168.250.1 Static 0 0 MIO1
0.0.0.0/0 192.168.250.1 Static 0 0 rp1 source