小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

第二講:命令行的操作方法-show命令的應(yīng)用

 Teacher_Lin 2020-02-28

注意:只能在用戶模式和特權(quán)模式下使用;

注意:在模擬器中的其他模式下使用“show”命令時(shí),需借助“do”命令,但是在該模式下,不能使用幫助信息。

Router#show version  //查看該設(shè)備的版本信息。

Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.1(4)M4, RELEASE SOFTWARE (fc2)

Technical Support: http://www./techsupport

Copyright (c) 1986-2012 by Cisco Systems, Inc.

Compiled Thurs 5-Jan-12 15:41 by pt_team

Router#show running-config  //查看該設(shè)備的配置信息,存在running-config中的配置命令,并沒(méi)有保存到該設(shè)備中,當(dāng)設(shè)備重新啟動(dòng)后,running-config中的配置信息,將丟失。若該配置信息不丟失,必須將running-config中的配置信息保存到startup-config中。

Building configuration...

Current configuration : 691 bytes

Router#show startup-config //查看該設(shè)備的啟動(dòng)時(shí)的配置命令。

startup-config is not present

Router#

注意:正常情況下,running-config中的配置信息與startup-config中的配置信息是相同的。

Router#copy running-config  startup-config //將該設(shè)備中的配置信息保存到啟動(dòng)信息中。

Destination filename [startup-config]?

Building configuration...

[OK]

Router#write  //默認(rèn)將running-config的信息保存到startup-config中。

Building configuration...

[OK]

Router#copy running-config ? //保存信息的多的位置。

flash: Copy to flash file  //在每一臺(tái)網(wǎng)絡(luò)設(shè)備上都有自己的閃存。

ftp: Copy to current system configuration

startup-config Copy to startup configuration

tftp: Copy to current system configuration

Router#show  history ? //查看在該設(shè)備上,當(dāng)前的歷史操作記錄。

show version

en

conf t

Router#show interfaces  查看該設(shè)備上所有接口的詳細(xì)信息

GigabitEthernet0/0 is administratively down, line protocol is down (disabled)

分析:“administratively down”代表該接口處于管理關(guān)閉狀態(tài),也就是說(shuō)“該接口未打開”;

“l(fā)ine protocol is down”代表該接口上未連接設(shè)備,或所連接的設(shè)備未啟動(dòng)。

Router#terminal history size ?

<0-256> Size of history buffer  //歷史記錄最多可以保存256條;

Router#terminal history size 50  //設(shè)置該設(shè)備存儲(chǔ)配置歷史記錄為50條。

注意:在實(shí)際工作中,一般不修改該項(xiàng),

Router#show interfaces gigabitEthernet 0/0 //查看制定接口的狀態(tài)。

GigabitEthernet0/0 is administratively down, line protocol is down (disabled)

Router#show interfaces gigabitEthernet 0/0 switchport //查看該接口的交換信息。

% Gig0/0 is not a switchable port  //提示該接口不是交換端口。

Router#show ip route  //查看該設(shè)備的路由信息

Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is not set

注意:

“L”代表的是該設(shè)備的信息;

“C”代表的是直連路由信息;“直連路由:是與該設(shè)備直接相連的IP路由信息?!?/p>

“S”代表的是靜態(tài)路由;“靜態(tài)路由:需要手動(dòng)添加和刪除”;

“R”代表的是RIP路由信息;

“*”代表的是默認(rèn)路由;

Router#show ip route ? //查看某一固定路由協(xié)議的路由信息。

WORD Network to display information about or hostname

bgp Border Gateway Protocol (BGP)

connected Connected

eigrp Enhanced Interior Routing Protocol (EIGRP)

ospf Open Shortest Path First (OSPF)

rip Routing Information Protocol (RIP)

static Static routes

summary Summary of all routes

<cr>

Switch#show interfaces trunk  //查看該設(shè)備上的TRUNK鏈路信息

Port Mode Encapsulation Status    Native vlan

Fa0/1 on    802.1q      trunking   1

//上句說(shuō)明F0/1的工作模式為“trunking”,標(biāo)記的VLAN信息是“VLAN 1”,封裝的協(xié)議是“802.1q”;

Port Vlans allowed on trunk

Fa0/1 1-1005

//上句說(shuō)明“在f0/1上,允許VLAN 1到VLAN 1005的所有VLAN 信息通過(guò)該接口?!?/p>

Port Vlans allowed and active in management domain

Fa0/1 1

Port Vlans in spanning tree forwarding state and not pruned

Fa0/1 none

Switch#

Switch#show vlan brief //查看該設(shè)備上vlan劃分的詳細(xì)信息,

VLAN Name Status Ports

1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5

Fa0/6, Fa0/7, Fa0/8, Fa0/9

Fa0/10, Fa0/11, Fa0/12, Fa0/13

Fa0/14, Fa0/15, Fa0/16, Fa0/17

Fa0/18, Fa0/19, Fa0/20, Fa0/21

Fa0/22, Fa0/23, Fa0/24, Gig0/1

Gig0/2

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

Switch#

通過(guò)以上命令,可以看出,該交換機(jī)上的所有接口都處于VLAN 1中,而且狀態(tài)是“active”,即是活動(dòng)狀態(tài)。

Switch#show ip interface brief //查看所有接口的狀態(tài)信息

Interface      IP-Address  OK?  Method Status  Protocol

FastEthernet0/1 unassigned YES  manual up      up

FastEthernet0/2 unassigned YES  manual down    down

五、錯(cuò)誤提示信息

Router(config)#int g0/0

Router(config-if)#ip addess 192.168.1.1 255.255.255.0

^

% Invalid input detected at '^' marker.

注意:當(dāng)命令輸入錯(cuò)誤時(shí),系統(tǒng)會(huì)在錯(cuò)誤附近用“^”標(biāo)注出。

    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多