Enabling Router Configuration Modes
18-2 Preparing for Router Mode
Example
ThefollowingexampleshowshowtoconfigureVLAN 1onIPaddress182.127.63.1255.255.255.0
asaroutinginterface.
C2(su)->router
C2(su)->router>enable
C2(su)->router#configure
Enter configuration commands:
C2(su)->router(Config)#interface vlan 1
C2(su)->router(Config-if(Vlan 1))#ip address 182.127.63.1 255.255.255.0
C2(su)->router(Config-if(Vlan 1))#no shutdown
Enabling Router Configuration Modes
TheSecureStackC2CLIprovidesdifferentmodesofrouteroperationforissuingasubsetof
commandsfromeachmode.Table 18‐2describesthesemodesofoperation.
Table 18-1 Enabling the Switch for Routing
Step To do this task... Type this command... At this prompt... For details, see...
1 From admin (su) mode,
enable router mode.
router Switch:
C2(su)->
2 Enable router Privileged
EXEC mode.
enable Router:
C2(su)->router>
3 Enable global router
configuration mode.
configure Router:
C2(su)->router#
4 Enable interface
configuration mode using the
routing VLAN or loopback id.
interface {vlan vlan-id | loopback
loop-id}
Router:
C2(su)>router(Config)#
“interface” on page
19-2
5 Assign an IP address to the
routing interface.
ip address {ip-address ip-mask} Router:
C2(su)->router (Config-if
(Vlan 1))#
“interface” on page
19-2
6 Enable the interface for IP
routing.
no shutdown Router:
C2(su)->router(Config-if
(Vlan 1))#
“no shutdown” on
page 19-6
Table 18-2 Router CLI Configuration Modes
Use this mode... To... Access method... Resulting Prompt...
Privileged EXEC
Mode
Set system operating
parameters
Show configuration
parameters
Save/copy
configurations
From the switch CLI:
Type router, then
Type enable.
C2(su)->router>
C2(su)->router#
Global Configuration
Mode
Set system-wide
parameters.
Type configure from
Privileged EXEC mode.
C2(su)->router (Config)#
Interface
Configuration Mode
Configure router
interfaces.
Type interface vlan or
loopback and the
interface’s id from Global
Configuration mode.
C2(su)->router(Config-if
(Vlan 1))#
C2(su)->router(Config-if
(Lpbk 1))#