figuratio
comma
dso
eperli
e4006co
figi
terfacefastether
et24fastether
et24006co
figifdescriptio
Co
ectstoMarketi
g4006co
figife
d4006showi
terfacesfastether
et24descriptio
fastether
et2I
terfaceStatusFa24upProtocolDescriptio
dow
Co
ectstoMarketi
gE
dwithCNTLZ
f配置三层口
Catalyst4006支持三种类型的三层端口
SVIs即i
terfacevla
Note当生成一个i
terfaceVla
时只有当把某一物理端口分配给它时才能被激活
三层以太网通道口EtherCha
el路由口路由口是指某一物理端口在端口配置状态下用
oswitchport命令生成的端口
所有的三层都需要IP地址以实现路由交换
配置步骤如下
命令目的
Step1
co
figuretermi
al
进入配置状态进入端口配置状态把物理端口变成三层口配置IP地址和掩码激活端口
Step2
gigabitether
eti
terfacefastether
etgigabitether
etfastether
eti
terfaceidvla
vla
idportcha
elportvla
portportcha
el
umber
oswitchport
Step3
Step4
ipaddressip_addresssub
et_mask
Step5
oshutdow
fStep6Step7
e
dshowi
terfacesi
terfaceidshowipi
terfacei
terfaceidru
i
gshowru
i
gco
figi
terfacei
terfaceid
退出验证配置
StepStep8
ru
i
gstartupcopyru
i
gco
figstartupco
fig
保存配置
配置举例如下
4006co
figuretermi
alE
terco
figuratio
comma
dso
eperli
e4006co
figi
terfacegigabitether
et32gigabitether
et34006co
figif
oswitchport4006co
figifipaddress1922013521255255255019220135214006co
figif
oshutdow
4006co
figife
dE
dwithCNTLZ
命令showipi
terface命令
4006showipi
terfacegigabitether
et32gigabitether
et3GigabitEther
et32isupli
eprotocolisupI
ter
etaddressis192201352124Broadcastaddressis255255255255Addressdetermi
edbysetupcomma
dMTUis1500bytesHelperaddressis
otsetDirectedbroadcastforwardi
gisdisabledoutputtru
cated
f监控及维护端口
监控端口和控制器的状态
主要命令见下表
目的
ShowComma
dsforI
terfacesComma
dshowi
terfaces
typesloti
terface
显示所有端口或某一端口的状态和配置显示一系列端口的状态或错误关闭的状态显示二层端口的状态可以用来决定此口是否为二层或三层口显示端口描述
showi
terfacesi
terfaceidstatuserrdisablederrerrdisabledshowi
terfacesi
terfaceidswitchportshowi
terfacesi
terfaceiddescriptio
showprotocolstype
sloti
terface
显示在任何已配置协议下全局和接口的状态显示当前配置中的端口配置情况
ru
i
gshowru
i
gco
figi
terfacei
terfaceidshowversio
显示软硬件等情况
举例如下
Switchshowi
terfacesstatusPortNameStatusVla
DuplexSpeedTypeGi11
otco
ect1autoautoNoGbicGi12
otco
ect1autoautoNoGbicGi51r