Switch Interfaces

routers are configured shutdown in default

switches are configured no shutdown in default which is they are up and running

full duplex if the device is capable of receiving data and sending data at the same time

or half duplex which is not

a means auto

show interface status
con f 
speed ?
speed 100
duplex ?
duplex full
desc
interface range f0/5 - 12
desc ## not in use ##
shutdown

interface range f0/5 - 6, f0/9 - 12
no shutdown / no shut

This is autonegatiation enabled

This is autonegatiation disabled

en
conf t
int g0/0
ip add 172.16.255.254 255.255.0.0

# 1000 since its a gigabit
speed 1000 
duplex full
no shut
int range g0/1 - 2 
desc ## not in use ##
copy running-config startup-config
en
conf t
hostname SW1

This just works in switches not in routers

do show interface status

SW1 - interface g0/1

int g0/1
speed 1000
duplex 1000
desc ## to R1 ##

SW1 - interface g0/2

int g0/2 
speed 1000
duplex full
desc ## to SW2 ##

SW1 - interface f0/3 - 24

int range f0/3 - 24
desc ## not in use ##
do show interface status

Just shutdown the interfaces that is not in use

int range f0/3 - 24
shutdown
do show interface status

Add description to interface f0/1 - 2

int range f0/1 - 2
desc ## to end hosts ##
do show interface status

SAVE THE CHANGES

copy running-config startup-config

SWITCH 22222222222222222222222

SW 2 - interface g0/1

int g0/1
speed 1000
duplex full
desc ## to SW1 ##

checking the status

do show interface status

SW 2 - interface g0/2

THE G0/2 interface is connected to nothing

int g0/2
speed 1000
duplex full
desc ## to nothing ##
int range f0/1 - 2
desc ## to end host ##
do show interface status

Shut down the other interfaces

int range f0/3 - 24
shutdown

See the changes

do show interface status

Save the changes

copy running-config startup-config

Last updated