#adsense(728x90)
rt(config)# interface type mod/num rt(config-if)# no ip route-cache
rt# show ip int fa0/0 FastEthernet0/0 is up, line protocol is up IP fast switching is disabled IP fast switching on the same interface is disabled IP Flow switching is disabled IP CEF switching is disabled IP Null turbo vector IP multicast fast switching is disabled IP multicast distributed fast switching is disabled IP route-cache flags are No CEF
rt# show interface fa0/0 stats FastEthernet0/0 Switching path Pkts In Chars In Pkts Out Chars Out Processor 670217 64783643 458788 121134056 Route cache 0 0 0 0 Total 670217 64783643 458788 121134056
rt# debug ip packet
rt(config)# interface type mod/num rt(config-if)# ip route-cache
rt# show ip interface fa0/0
rt# show ip cache
Control Plane (処理) [CPU] [Routing Table] [ARP Table] Data Plane (制御) [ASIC] [Cache] [FIB] [Adjacency Table] Back Plane (転送) Interface
rt(config)# ip cef
rt# show ip interface fa0/0 FastEthernet0/0 is up, line protocol is up IP fast switching is enabled IP fast switching on the same interface is disabled IP Flow switching is disabled IP CEF switching is enabled IP CEF Feature Fast switching turbo vector IP multicast fast switching is enabled IP multicast distributed fast switching is disabled IP route-cache flags are Fast, CEF
rt#show interfaces fa0/0 stats FastEthernet0/0 Switching path Pkts In Chars In Pkts Out Chars Out Processor 70617 7867488 43626 3691120 Route cache 210895 19615714 252767 115768165 Total 281512 27483202 296393 119459285
rt# show ip cef Prefix Next Hop Interface 0.0.0.0/0 192.168.0.1 FastEthernet0/1 0.0.0.0/32 receive
rt# show ip cef summary IP CEF with switching (Table Version 243), flags=0x0 232 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 1 2 instant recursive resolutions, 0 used background process 232 leaves, 15 nodes, 50864 bytes, 256 inserts, 24 invalidations 0 load sharing elements, 0 bytes, 0 references universal per-destination load sharing algorithm, id F7B27E9A 3(0) CEF resets, 1 revisions of existing leaves Resolution Timer: Exponential (currently 1s, peak 1s) 1 in-place/0 aborted modifications refcounts: 5000 leaf, 4096 node Table epoch: 0 (232 entries at this epoch) Adjacency Table has 2 adjacencies
sw# show adjacency Protocol Interface Address IP FastEthernet0/1 192.160.0.1(7) IP FastEthernet0/2 192.160.1.1(7) IP FastEthernet0/3 192.160.2.1(7)
rt# show adjacency detail
Protocol Interface Address
IP FastEthernet0/1 192.168.0.1(7)
0 packets, 0 bytes
epoch 0
sourced in sev-epoch 1
Encap length 14
0123456789AB0123456789AB0800
宛先MAC 送信元MAC プロトコルタイプ
ARP
rt(config)# interface type mod/num rt(config-if)# ip route-cache flow
rt# show ip interface fa0/0 FastEthernet0/0 is up, line protocol is up IP fast switching is enabled IP fast switching on the same interface is disabled IP Flow switching is enabled IP CEF switching is enabled IP CEF Flow Fast switching turbo vector IP multicast fast switching is enabled IP multicast distributed fast switching is disabled IP route-cache flags are Fast, Flow cache, CEF, Full Flow
rt# arp ip-addr mac-addr arpa [type mod/num]
rt# clear arp-cache
rt# show arp Protocol Address Age (min) Hardware Addr Type Interface Internet 192.168.0.101 93 0000.0000.0001 ARPA FastEthernet0/1 Internet 192.168.0.102 65 0000.0000.0002 ARPA FastEthernet0/1 Internet 172.16.0.10 66 0000.0000.000a ARPA FastEthernet0/0 Internet 192.168.0.103 150 0000.0000.0003 ARPA FastEthernet0/1
rt# debug arp Jun 13 17:30:34: IP ARP: rcvd req src ip-addr mac-addr, dst ip-addr FastEthernet0 Jun 13 17:31:34: IP ARP: sent rep src ip-addr mac-addr, dst ip-addr mac-addr FastEthernet0
rt(config)# interface type mod/num
rt(config-if)# ip address ip-addr netmask
rt(config-if)# duplex full|half
rt(config-if)# speed 1000|100|10
rt(config-if)# no shutdown
rt(config-if)# bandwidth bandwidth
rt(config-if)# clock rate 64000
rt(config)# interface type mod/num.sub-if rt(config-if)# ip address ip-addr netmask
rt(config)# interface type mod/num rt(config-if)# ip address ip-addr netmask secondary
e0 s0 s0 e0 {192.168.0.0/24}---[rt1]---<WAN>---[rt2]----{192.168.1.0/24} .1 .1
rt1(config)# interface serial 0 rt1(config-if)# ip unnumbered ethernet 0
rt2(config)# interface serial 0 rt2(config-if)# ip unnumbered ethernet 0
e0 [host]-------[rt]-------[DHCP_SVR] 192.168.1.32 broadcast-> unicast->
rt(config)# interface ethernet 0 rt(config-if)# ip helper-address 192.168.1.32
rt(config)# ip forward-protocol l3-proto port
rt(config)# no ip forward-protocol proto
rt(config)# interface range type mod/num - num rt(config-if-range)#
rt# define interface-range name type mod/num - num
rt# interface range macro name
rt(config-if)# ip directed-broadcast
rt(config-if)# ip redirects
rt(config-if)# ip unreachables
rt# show interface type mod/num FastEthernet0/0 is up, line protocol is up Hardware is AmdFE, address is XXXX.XXXX.XXXX (bia XXXX.XXXX.XXXX) Internet address is 192.168.0.1/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Full-duplex, 100Mb/s, 100BaseTX/FX ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:00, output 00:00:00, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo キューイング方式 Output queue: 0/40 (size/max) キューのパケット数 5 minute input rate 24000 bits/sec, 28 packets/sec 5分平均のスループット 5 minute output rate 31000 bits/sec, 28 packets/sec 5分平均のスループット 1066386229 packets input, 2296717048 bytes Received 71410545 broadcasts, 0 runts, 0 giants, 0 throttles 81 input errors, 81 CRC, 48 frame, 0 overrun, 0 ignored 0 watchdog 0 input packets with dribble condition detected 1018311900 packets output, 2999269283 bytes, 0 underruns 0 output errors, 5763390 collisions, 1 interface resets 0 babbles, 0 late collision, 18760007 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out
interface (L1) | line protocol (L2) | 説明 |
administratively down | down | I/F がシャットダウンされている |
down | down | リンク ダウンしている |
up | down | L2 レベルでの通信が確立していない (クロックレート、カプセル化の不一致など) |
up | up | L2 レベルでは通信が確立している |
up | errdisable | 何らかのエラーにより、ポートが無効になっている |
rt# show ip interface
rt# show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.0.1 YES NVRAM up up FastEthernet0/1 10.0.0.1 YES NVRAM up up
rt# debug ip policy
rt(config)# ip dhcp pool name
rt(dhcp-config)# network net-addr /prefix
rt(dhcp-config)# dns-server ip-addr
rt(dhcp-config)# default-router defaultrouter
rt(dhcp-config)# domain-name domain
rt(dhcp-config)# lease time
rt(config)# ip dhcp excleuded-address start-addr end-addr
rt(dhcp-config)# host ip-addr rt(dhcp-config)# hardware-address mac-addr ieee802 rt(dhcp-config)# client name neme
rt# show ip dhcp pool
rt(config)# ip nbar pdlm file-name
rt(config)# ip nbar port-map proto-name [tcp|udp] port-num
rt# show ip nbar port-map
rt(config-if)# ip nbar protocol-discovery
rt# show ip nbar protocol-discovery FastEthernet0/1 Input Output ----- ------ Protocol Packet Count Packet Count Byte Count Byte Count 5min Bit Rate (bps) 5min Bit Rate (bps) 5min Max Bit Rate (bps) 5min Max Bit Rate (bps) ------------------------ ------------------------ ------------------------ rtp 888 878 190032 187892 3000 3000 3000 3000 sqlnet 992 373 150288 20142 3000 3000 3000 3000 ftp 487 392 36567 21168 3000 3000 3000 3000
rt(config)# ip flow-export source type mod/num rt(config)# ip flow-export version ver rt(config)# ip flow-export destination ip-addr port
rt(config)# interface type mod/num rt(config-if)# ip route-cache flow rt(config-if)# ip flow ingress rt(config-if)# ip flow egress
rt# show ip flow interface
rt# show ip cache flow
rt(config)# service pad
rt# show processes | i PAD 46 Hwe 809102B4 0 1 0 5784/6000 0 PAD InCall
rt(config)# service dhcp
rt# show processes | i DHCP 43 Mwe 804656C0 0 1 0 5436/6000 0 DHCPD Receive 48 Mwe 804FDD5C 0 1 0 5788/6000 0 DHCPD Timer 71 Msi 80506898 0 2 0 4984/6000 0 DHCPD Database
rt(config)# service finger
rt(config)# service tcp-small-servers rt(config)# service udp-small-servers