6
Basic Software Configuration Using the Setup Command Facility
OL-5992-01
Examples of Using the Setup Command Facility to Configure Interface Parameters
Gigabit Ethernet Interface Configuration
The following is a brief example of configuring a Gigabit Ethernet interface by using the setup command
facility:
Note
The Gigabit Ethernet interface is not supported on Cisco 1841, Cisco 2801, or Cisco 2811 routers.
Configuring interface GigabitEthernet0/0:
Configure IP on this interface? [yes]:
IP address for this interface [192.168.200.215]:
1.0.0.1
Subnet mask for this interface [255.255.255.0] :
255.0.0.0
Class A network is 1.0.0.0, 8 subnet bits; mask is /8
Note
On Cisco 3800 series routers, the port gig 0/0 supports both the small form-factor pluggable Gigabit
Ethernet Interface Converter (SFP GBIC) and RJ-45 media types. The port gig 0/1 supports only RJ-45.
To select between SFP or RJ-45 for port gig 0/0, use the
media-type
command. More details follow in
the
“Selecting the Port for the Gigabit Ethernet Interface” section on page 6
.
The following are two examples of configurations for the Gigabit Ethernet (GE) interface. The first
example shows a sample configuration for RJ-45 mode, applicable to either port gig 0/0 or port gig 0/1:
interface GigabitEthernet0/0
ip address 1.3.153.13 255.0.0.0
duplex auto
speed auto
media-type RJ-45
SFP mode (on Cisco 3800 seriers routers only) is available only on port gig 0/0:
interface GigabitEthernet0/0
ip address 1.3.153.13 255.0.0.0
duplex auto
speed auto
media-type sfp
Selecting the Port for the Gigabit Ethernet Interface
The SFP port is supported for the GE port 0 only. GE port 1 supports only RJ-45 (or copper mode)
operation.
To select SFP type for GE port 0, use the following commands from the command-line interface (CLI):
router(config)#
int gigabitEthernet 0/0
router(config-if)#
media-type sfp
GigabitEthernet0/0: Changing media to SFP.
Note
The SFP port can only be set to 1000-Mbps or automatic speed. Duplex can be set to full-duplex or
automatic mode. Half-duplex communication is not supported.