成人在线你懂的-成人在线免费小视频-成人在线免费网站-成人在线免费视频观看-日韩精品国产一区二区-日韩精品国产一区

掃一掃
關(guān)注微信公眾號(hào)

Cisco路由器交換機(jī)配置命令詳解(1)
2009-01-11   

1. 交換機(jī)支持的命令:
交換機(jī)基本狀態(tài):

switch: ;ROM狀態(tài), 路由器是rommon>
hostname> ;用戶模式
hostname# ;特權(quán)模式
hostname(config)# ;全局配置模式
hostname(config-if)# ;接口狀態(tài)
交換機(jī)口令設(shè)置:
switch>enable ;進(jìn)入特權(quán)模式
switch#config terminal ;進(jìn)入全局配置模式
switch(config)#hostname ;設(shè)置交換機(jī)的主機(jī)名
switch(config)#enable secret xxx ;設(shè)置特權(quán)加密口令
switch(config)#enable password xxa ;設(shè)置特權(quán)非密口令
switch(config)#line console 0 ;進(jìn)入控制臺(tái)口
switch(config-line)#line vty 0 4 ;進(jìn)入虛擬終端
switch(config-line)#login ;允許登錄
switch(config-line)#password xx ;設(shè)置登錄口令xx
switch#exit ;返回命令

交換機(jī)VLAN設(shè)置:

switch#vlan database ;進(jìn)入VLAN設(shè)置
switch(vlan)#vlan 2 ;建VLAN 2
switch(vlan)#no vlan 2 ;刪vlan 2
switch(config)#int f0/1 ;進(jìn)入端口1
switch(config-if)#switchport access vlan 2 ;當(dāng)前端口加入vlan 2
switch(config-if)#switchport mode trunk ;設(shè)置為干線
switch(config-if)#switchport trunk allowed vlan 1,2 ;設(shè)置允許的vlan
switch(config-if)#switchport trunk encap dot1q ;設(shè)置vlan 中繼
switch(config)#vtp domain ;設(shè)置發(fā)vtp域名
switch(config)#vtp password ;設(shè)置發(fā)vtp密碼
switch(config)#vtp mode server ;設(shè)置發(fā)vtp模式
switch(config)#vtp mode client ;設(shè)置發(fā)vtp模式

交換機(jī)設(shè)置IP地址:

switch(config)#interface vlan 1 ;進(jìn)入vlan 1
switch(config-if)#ip address ;設(shè)置IP地址
switch(config)#ip default-gateway ;設(shè)置默認(rèn)網(wǎng)關(guān)
switch#dir flash: ;查看閃存

交換機(jī)顯示命令:

switch#write ;保存配置信息
switch#show vtp ;查看vtp配置信息
switch#show run ;查看當(dāng)前配置信息
switch#show vlan ;查看vlan配置信息
switch#show interface ;查看端口信息
switch#show int f0/0 ;查看指定端口信息

2. 路由器支持的命令:
路由器顯示命令:

router#show run ;顯示配置信息
router#show interface ;顯示接口信息
router#show ip route ;顯示路由信息
router#show cdp nei ;顯示鄰居信息
router#reload     ;重新起動(dòng)

路由器口令設(shè)置:

router>enable ;進(jìn)入特權(quán)模式
router#config terminal ;進(jìn)入全局配置模式
router(config)#hostname ;設(shè)置交換機(jī)的主機(jī)名
router(config)#enable secret xxx ;設(shè)置特權(quán)加密口令
router(config)#enable password xxb ;設(shè)置特權(quán)非密口令
router(config)#line console 0 ;進(jìn)入控制臺(tái)口
router(config-line)#line vty 0 4 ;進(jìn)入虛擬終端
router(config-line)#login ;要求口令驗(yàn)證
router(config-line)#password xx ;設(shè)置登錄口令xx
router(config)#(Ctrl+z) ; 返回特權(quán)模式
router#exit ;返回命令

路由器配置:

router(config)#int s0/0 ;進(jìn)入Serail接口
router(config-if)#no shutdown ;激活當(dāng)前接口
router(config-if)#clock rate 64000 ;設(shè)置同步時(shí)鐘
router(config-if)#ip address ;設(shè)置IP地址
router(config-if)#ip address second ;設(shè)置第二個(gè)IP
router(config-if)#int f0/0.1 ;進(jìn)入子接口
router(config-subif.1)#ip address ;設(shè)置子接口IP
router(config-subif.1)#encapsulation dot1q ;綁定vlan中繼協(xié)議
router(config)#config-register 0x2142 ;跳過(guò)配置文件
router(config)#config-register 0x2102 ;正常使用配置文件
router#reload ;重新引導(dǎo)

路由器文件操作:

router#copy running-config startup-config ;保存配置
router#copy running-config tftp ;保存配置到tftp
router#copy startup-config tftp ;開(kāi)機(jī)配置存到tftp
router#copy tftp flash: ;下傳文件到flash
router#copy tftp startup-config;下載配置文件

ROM狀態(tài):
Ctrl+Break ;進(jìn)入ROM監(jiān)控狀態(tài)
rommon>confreg 0x2142 ;跳過(guò)配置文件
rommon>confreg 0x2102 ;恢復(fù)配置文件
rommon>reset  ;重新引導(dǎo)
rommon>copy xmodem: flash: ;從console傳輸文件

rommon>IP_ADDRESS=10.65.1.2 ;設(shè)置路由器IP
rommon>IP_SUBNET_MASK=255.255.0.0 ;設(shè)置路由器掩碼
rommon>TFTP_SERVER=10.65.1.1 ;指定TFTP服務(wù)器IP
rommon>TFTP_FILE=c2600.bin ;指定下載的文件
rommon>tftpdnld ;從tftp下載
rommon>dir flash: ;查看閃存內(nèi)容
rommon>boot ;引導(dǎo)IOS

靜態(tài)路由:

ip route    ;命令格式
router(config)#ip route 2.0.0.0 255.0.0.0 1.1.1.2 ;靜態(tài)路由舉例
router(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2 ;默認(rèn)路由舉例

動(dòng)態(tài)路由:

router(config)#ip routing ;啟動(dòng)路由轉(zhuǎn)發(fā)
router(config)#router rip ;啟動(dòng)RIP路由協(xié)議。
router(config-router)#network ;設(shè)置發(fā)布路由
router(config-router)#negihbor ;點(diǎn)對(duì)點(diǎn)幀中繼用。


共2頁(yè): 1 [2] 下一頁(yè)

熱詞搜索:

上一篇:企業(yè)局域網(wǎng)本地路由配置五方法
下一篇:網(wǎng)絡(luò)設(shè)備再利用,小模塊發(fā)揮大作用

分享到: 收藏
主站蜘蛛池模板: jenna haze| 吃大米饭是增肥还是减肥| 电影《大突围》| 诺远| 番金连| 午间电影| 五猖会原文加批注图片| 性视频播放| 13位的电话号码是什么电话 | 控制点电影| 三年片大全电影| 大甜甜| 贵妃还乡| 财神经正版全文| 山本裕典| 裸体模特| 李尸朝鲜第三季| 麻豆视频免费在线观看| 运气旺的微信头像图片| 死亡繁殖| 黄金太阳2| 久草电影| 方谬神探结局细思极恐| 地铁女孩| 按摩私处| 警界英豪 电视剧| 北京卫视今天节目预告| angela white电影| 小舞泳装比基尼套装图片| 回复者术之重启人生| cope消除| 现代古诗冰心| 神宫寺奈绪作品| 真的爱你最标准谐音歌词| the girl next door| 张柏芝惊艳照片| 前线任务| 篮球场平面图| 延边卫视节目表今天| 搞黄色的视频| 巴黎宝贝|