作业相关
学习教程
总 结
链 接
表扬栏
   返回主页   后退          

路由器设置与显示:
r0>en
显示路由信息
r0#sh ip route

Codes: C - connected, S - static, I - IGRP, 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

C 1.0.0.0/8 is directly connected, FastEthernet0/0.1
C 2.0.0.0/8 is directly connected, FastEthernet0/0.2
S 3.0.0.0/8 [1/0] via 5.5.5.101
S 4.0.0.0/8 [1/0] via 5.5.5.101
C 5.0.0.0/8 is directly connected, Serial2/0
S 6.0.0.0/8 [1/0] via 5.5.5.101
S 8.0.0.0/8 [1/0] via 6.6.6.101
r0#sh access-list
r0#
r0#

显示ACL:
Router>EN
Router#sh access-list

Extended IP access list eee
10 deny ip host 1.1.1.1 host 3.3.3.1
20 permit ip any any
30 deny ip 2.0.0.0 0.255.255.255 4.0.0.0 0.255.255.255
Router#

Router(config)#clock ?
timezone Configure time zone
Router(config)#clock timezone beijing 8
Router(config)#^Z
Router#
设置日期时间
Router#clock set 20:09:0 nove 1 2019

显示日期时间
Router#sh clock
4:9:4.487 beijing Sat Nov 2 2019
Router#sh clock
4:9:23.900 beijing Sat Nov 2 2019
Router#

显示交换机已经连接接口的MAC
Switch#sh mac-address-table

Mac Address Table
-------------------------------------------

Vlan Mac Address Type Ports
---- ----------- -------- -----

1 0001.4380.29b7 DYNAMIC Fa0/24
10 0001.4380.29b7 DYNAMIC Fa0/24
20 0001.4380.29b7 DYNAMIC Fa0/24
Switch#

显示交换机VLAN信息:名称 是否使用 使用接口;1是默认VLAN
Switch#sh vlan

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active 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
10 VLAN0010 active Fa0/1
20 VLAN0020 active Fa0/2
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
Switch#

显示指定接口信息:
Router#sh inte s2/0
一般路由器接口顺序:RJ45网线接口 串口 光纤接口(假设分别有2,2,2)
分别为F0/0 F1/0 S2/0 S3/0 G4/0 G5/0:
接口类型后面为序号 斜线 0 ,顺序与交换机相反
一般交换机接口顺序:RJ45网络接口 光纤接口(假设分别24 ,2)
分别为F0/1 F0/2....F0/24 G0/1 G0/2
接口类型后面为0 斜线 序号,顺序与路由器相反

Serial2/0 is up, line protocol is up (connected)
Hardware is HD64570
Internet address is 5.5.5.100/8
MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 96 kilobits/sec
5 minute input rate 32 bits/sec, 0 packets/sec
5 minute output rate 20 bits/sec, 0 packets/sec
61 packets input, 6692 bytes, 0 no buffer
Received 61 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
64 packets output, 4416 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
Router#



2025促销:香港特价空间,最低仅需20元,可永久使用!
本站空间由 三维免费空间 友情提供