本文发表在 rolia.net 枫下论坛I configured my laptop 172.16.0.1 255.255.255.0, default gateway: 172.16.0.1. I connect it to Cisco3550 FastEthernet 0/48
the output form 3550:
SHOW VER
Cisco Internetwork Operating System Software
IOS (tm) C3550 Software (C3550-I5K2L2Q3-M), Version 12.1(22)EA5, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Thu 14-Jul-05 02:20 by antonino
Image text-base: 0x00003000, data-base: 0x0097D530
ROM: Bootstrap program is C3550 boot loader
Switch uptime is 26 minutes
System returned to ROM by power-on
System image file is "flash:c3550-i5k2l2q3-mz.121-22.EA5.bin"
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
cisco WS-C3550-48 (PowerPC) processor (revision G0) with 65526K/8192K bytes of memory.
Processor board ID CHK0641W0QV
Last reset from warm-reset
Bridging software.
Running Layer2/3 Switching Image
Ethernet-controller 1 has 12 Fast Ethernet/IEEE 802.3 interfaces
Ethernet-controller 2 has 12 Fast Ethernet/IEEE 802.3 interfaces
Ethernet-controller 3 has 12 Fast Ethernet/IEEE 802.3 interfaces
Ethernet-controller 4 has 12 Fast Ethernet/IEEE 802.3 interfaces
Ethernet-controller 5 has 1 Gigabit Ethernet/IEEE 802.3 interface
Ethernet-controller 6 has 1 Gigabit Ethernet/IEEE 802.3 interface
48 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)
The password-recovery mechanism is enabled.
384K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:0B:46:6A:FC:80
Motherboard assembly number: 73-5701-07
Power supply part number: 34-0967-01
Motherboard serial number: CAT06400DV7
Power supply serial number: LIT063400S5
Model revision number: G0
Motherboard revision number: A0
Model number: WS-C3550-48-EMI
System serial number: CHK0641W0QV
Configuration register is 0x10F
Switch# SHOW RUN INT VLAN 1
Building configuration...
Current configuration : 59 bytes
!
interface Vlan1
ip address 10.12.0.1 255.255.255.0
end
Switch#SHOW RUN INT F0/48
Building configuration...
Current configuration : 106 bytes
!
interface FastEthernet0/48
switchport mode access
switchport nonegotiate
speed 100
duplex full
end
Switch#SHOW INT F0/48
FastEthernet0/48 is up, line protocol is up (connected)
Hardware is Fast Ethernet, address is 000b.466a.fcb0 (bia 000b.466a.fcb0)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is 100BaseTX
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, 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 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
2691 packets input, 263858 bytes, 0 no buffer
Received 2671 broadcasts (0 multicast)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 1327 multicast, 0 pause input
0 input packets with dribble condition detected
380 packets output, 32620 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out
Switch#SHOW MAC- INTER F0/48
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
1 001c.2318.4e53 DYNAMIC Fa0/48
Total Mac Addresses for this criterion: 1
Switch#SHOW IP ARP VLAN 1
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.12.0.1 - 000b.466a.fc80 ARPA Vlan1
Internet 172.16.0.1 2 001c.2318.4e53 ARPA Vlan1
Switch#SHOW 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 0.0.0.0 to network 0.0.0.0
10.0.0.0/24 is subnetted, 1 subnets
C 10.12.0.0 is directly connected, Vlan1
S* 0.0.0.0/0 is directly connected, Vlan1
Switch#SHOW RUN | IN ip route
ip route 0.0.0.0 0.0.0.0 Vlan1
Switch#ping 172.16.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int vlan 1
Switch(config-if)#ip address 172.16.0.100 255.255.255.0
Switch(config-if)#^Z
Switch#clear mac- dyna vlan 1
00:29:08: %SYS-5-CONFIG_I: Configured from console by console
Switch#ping 172.16.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
Switch#show mac- vlan 1 | in DYN
1 001c.2318.4e53 DYNAMIC Fa0/48
Switch#show ip arp vlan 1
Protocol Address Age (min) Hardware Addr Type Interface
Internet 172.16.0.1 0 001c.2318.4e53 ARPA Vlan1
Internet 172.16.0.100 - 000b.466a.fc80 ARPA Vlan1
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int vlan 1
Switch(config-if)#no ip address
Switch(config-if)#inter f0/48
Switch(config-if)#no switch
Switch(config-if)#ip address 10.12.0.1 255.255.255.0
00:30:11: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
00:30:11: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/48, changed state to down
00:30:13: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/48, changed state to up
Switch(config-if)#^Z
00:30:33: %SYS-5-CONFIG_I: Configured from console by console
Switch#show run int f0/48
Building configuration...
Current configuration : 109 bytes
!
interface FastEthernet0/48
no switchport
ip address 10.12.0.1 255.255.255.0
speed 100
duplex full
end
Switch#show int f0/48
FastEthernet0/48 is up, line protocol is up (connected)
Hardware is Fast Ethernet, address is 000b.466a.fc80 (bia 000b.466a.fc80)
Internet address is 10.12.0.1/24
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is 100BaseTX
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:07, 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 6000 bits/sec, 7 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
3054 packets input, 308680 bytes, 0 no buffer
Received 3028 broadcasts (0 IP multicast)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 1528 multicast, 0 pause input
0 input packets with dribble condition detected
502 packets output, 42012 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out
Switch#ping 172.16.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
Switch#show 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
10.0.0.0/24 is subnetted, 1 subnets
C 10.12.0.0 is directly connected, FastEthernet0/48
Switch#show run | in ip route 0.0.0.0
ip route 0.0.0.0 0.0.0.0 Vlan1
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no ip route 0.0.0.0 0.0.0.0 Vlan1
Switch(config)#ip route 0.0.0.0 0.0.0.0 f0/48
Switch(config)#do show 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 0.0.0.0 to network 0.0.0.0
10.0.0.0/24 is subnetted, 1 subnets
C 10.12.0.0 is directly connected, FastEthernet0/48
S* 0.0.0.0/0 is directly connected, FastEthernet0/48
Switch(config)#^Z
00:32:14: %SYS-5-CONFIG_I: Configured from console by console
Switch#ping 172.16.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
Switch#show ip arp ?
Async Async interface
BVI Bridge-Group Virtual Interface
Dialer Dialer interface
FastEthernet FastEthernet IEEE 802.3
GigabitEthernet GigabitEthernet IEEE 802.3z
H.H.H 48-bit hardware address of ARP entry
Hostname or A.B.C.D IP address or hostname of ARP entry
Lex Lex interface
Loopback Loopback interface
Multilink Multilink-group interface
Null Null interface
Port-channel Ethernet Channel of interfaces
Tunnel Tunnel interface
Virtual-Template Virtual Template interface
Virtual-TokenRing Virtual TokenRing
Vlan Catalyst Vlans
summary IP ARP table summary
| Output modifiers
<cr>
Switch#show ip arp f0/48
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.12.0.1 - 000b.466a.fc80 ARPA FastEthernet0/48
Internet 172.16.0.1 0 001c.2318.4e53 ARPA FastEthernet0/48
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int f0/48
Switch(config-if)#ip addre 172.16.0.100 255.255.255.0
Switch(config-if)#^Z
00:33:32: %SYS-5-CONFIG_I: Configured from console by consoles
Switch#how ip arp f0/48
Protocol Address Age (min) Hardware Addr Type Interface
Internet 172.16.0.1 0 001c.2318.4e53 ARPA FastEthernet0/48
Internet 172.16.0.100 - 000b.466a.fc80 ARPA FastEthernet0/48
Switch#ping 172.16.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Switch#更多精彩文章及讨论,请光临枫下论坛 rolia.net