Establishing a default NIM route between networks from the command line
Follow this procedure to establish default NIM routes between networks from the command line.
To create a default NIM route for a network,
enter:
nim -o change -a routingseq_no='default Gateway' NetworkObject
where default
is the reserved keyword
used by NIM to indicate a default route, and Gateway
is
the host name (or IP address) of the interface that clients on NetworkObject
use
to contact other networks in the NIM environment.
For
example, to establish default NIM routes for
Network1
and Network3
,
enter: nim -o change -a routing1='default gw1_tok' Network1
nim -o change -a routing1='default gw1_fddi' Network3
where gw1_tok
is
the host name of the default gateway for machines on Network1
,
and gw1_fddi
is the host name of the default gateway for
machines on Network3
.
The detailed
information for the network objects now shows the added default routes. To
display the detailed information for the two networks, enter:
lsnim -l Network1 Network3
which produces output similar to the following:
Network1:
class = networks
type = tok
net_addr = 9.101.1.0
snm = 255.255.255.0
Nstate = ready for use
prev_state = ready for use
routing1 = default gw1_tok
Network3:
class = networks
type = fddi
net_addr = 9.101.3.0
snm = 255.255.255.0
Nstate = ready for use
prev_state = information is missing from this
object's definition
routing1 = default gw1_fddi