Router> enable
Password: <password>
Router#
|
Enter the
enable
command and password to access privileged EXEC commands. You are in privileged
EXEC mode when the prompt changes to a “ # ” from the “ > ”, for example,
Router> to
Router#
|
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
|
Enter the
configure
terminal privileged EXEC command to enter global configuration mode. You
are in global configuration mode when the prompt changes to
Router (config)#
|
Router(config)# interface GigabitEthernet ?
<0-0> GigabitEthernet interface number
<0-2> GigabitEthernet interface number
Router(config)# interface GigabitEthernet 1/?
<0-4> Port Adapter number
Router (config)# interface GigabitEthernet 1/3/?
<0-15> GigabitEthernet interface number
Router (config)# interface GigabitEthernet 1/3/8?
. <0-3>
Router (config)# interface GigabitEthernet 1/3/8.0
Router(config-if)#
|
Enter
interface configuration mode by specifying the interface that you want to
configure, using the
interface
GigabitEthernet global configuration command.
Enter
? to
display what you must enter next on the command line.
When the
<cr> symbol is displayed, you can press
Enter
to complete the command.
You are in
interface configuration mode when the prompt changes to
Router(config-if)#
|
Router(config-if)# ?
Interface configuration commands:
.
.
.
ip Interface Internet Protocol
config commands
keepalive Enable keepalive
lan-name LAN Name command
llc2 LLC2 Interface Subcommands
load-interval Specify interval for load calculation
for an interface
locaddr-priority Assign a priority group
logging Configure logging for interface
loopback Configure internal loopback on an
interface
mac-address Manually set interface MAC address
mls mls router sub/interface commands
mpoa MPOA interface configuration commands
mtu Set the interface
Maximum Transmission Unit (MTU)
netbios Use a defined NETBIOS access list
or enable
name-caching
no Negate a command or set its defaults
nrzi-encoding Enable use of NRZI encoding
ntp Configure NTP
.
.
.
Router(config-if)#
|
Enter
? to
display a list of all the interface configuration commands available for the
interface. This example shows only some of the available interface
configuration commands.
|
Router(config-if)# ip ?
Interface IP configuration subcommands:
access-group Specify access control for packets
accounting Enable IP accounting on this interface
address Set the IP address of an interface
authentication authentication subcommands
bandwidth-percent Set EIGRP bandwidth limit
broadcast-address Set the broadcast address of an interface
cgmp Enable/disable CGMP
directed-broadcast Enable forwarding of directed broadcasts
dvmrp DVMRP interface commands
hello-interval Configures IP-EIGRP hello interval
helper-address Specify a destination address for UDP broadcasts
hold-time Configures IP-EIGRP hold time
.
.
.
Router(config-if)# ip
|
Enter the
command that you want to configure for the interface. This example uses the
ip
command.
Enter
? to
display what you must enter next on the command line. This example shows only
some of the available interface IP configuration commands.
|
Router(config-if)# ip address ?
A.B.C.D IP address
negotiated IP Address negotiated over PPP
Router(config-if)# ip address
|
Enter the
command that you want to configure for the interface. This example uses the
ip
address command.
Enter
? to
display what you must enter next on the command line. In this example, you must
enter an IP address or the
negotiated keyword.
A carriage
return (<cr>) is not displayed. Therefore, you must enter additional
keywords or arguments to complete the command.
|
Router(config-if)# ip address 172.16.0.1 ?
A.B.C.D IP subnet mask
Router(config-if)# ip address 172.16.0.1
|
Enter the
keyword or argument that you want to use. This example uses the 172.16.0.1 IP
address.
Enter
? to
display what you must enter next on the command line. In this example, you must
enter an IP subnet mask.
<cr> is
not displayed. Therefore, you must enter additional keywords or arguments to
complete the command.
|
Router(config-if)# ip address 172.16.0.1 255.255.255.0 ?
secondary Make this IP address a secondary address
<cr>
Router(config-if)# ip address 172.16.0.1 255.255.255.0
|
Enter the IP
subnet mask. This example uses the 255.255.255.0 IP subnet mask.
Enter
? to
display what you must enter next on the command line. In this example, you can
enter the
secondary keyword, or you can press
Enter.
<cr> is
displayed. Press
Enter to
complete the command, or enter another keyword.
|
Router(config-if)# ip address 172.16.0.1 255.255.255.0
Router(config-if)#
|
Press
Enter
to complete the command.
|