Professional Documents
Culture Documents
MAC
IOSIOS
IOS VLANTrunk
12.1
MAC
MAC CAMContext
Address Memory MAC CAM
CAM
Forward
Filter
Flood
12-1
12-1
1 Store-and-Forward
CRC
2 Cut-Through
3 Fragment-Free
64
CISCO CPURAM
IOS
12.2 1:
1.
2.
12-2 1
3.
(1) 1
Switch>enable
Switch#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1
(2) 2
S1(config)#enable secret cisco
S1(config)#line vty 0 15
S1(config-line)#password cisco
S1(config-line)#login
(3) 3
S1(config)#interface f0/1
switch(config-if)#duplex { full | half | auto }
//duplex fullhalfauto
(4)
telnet IP , VLAN
S1(config)#int vlan 1
S1(config-if)#ip address 172.16.0.1 255.255.0.0
S1(config-if)#no shutdown
S1(config)#ip default-gateway 172.16.0.254
// VLAN 1 VLAN 1 telnet
telnet
(5)
S1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
12.3 2:
1.
1 MAC
2
3
2.
12-3
3.
MAC
MAC
f0/1 R1
(1) 1 R1 g0/0 MAC
R1(config)#int g0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 172.16.0.101 255.255.0.0
R1#show int g0/0
GigabitEthernet0/0 is up, line protocol is up
Hardware is MV96340 Ethernet, address is 0019.5535.b828 (bia 0019.5535.b828)
// g0/0 MAC
Internet address is 172.16.0.101/16
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
(2) 2
S1(config)#int f0/1
S1(config-if)#shutdown
S1(config-if)#switch mode access
//
S1(config-if)#switch port-securitiy
//
z shutdown: MAC
no shutdown
z restrict: MAC
Mac Address
Type
Ports
----
-----------
--------
-----
All
0100.0ccc.cccc
STATIC
CPU
0018.ba11.eb91
DYNAMIC
Fa0/15
0019.5535.b828
STATIC
Fa0/1
R1 g0/0 MAC
R1(config)#int g0/0
R1(config-if)#mac-address 12.12.12
S1
01:09:39: %PM-4-ERR_DISABLE: psecure-violation error detected on Fa0/1, putting Fa0/1 in
err-disable state
// f0/1
S1#show int f0/1
FastEthernet0/1 is down, line protocol is down (err-disabled)
Hardware is Fast Ethernet, address is 0018.ba11.f503 (bia 0018.ba11.f503)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
4.
S1#show port-security
Secure Port
MaxSecureAddr
CurrentAddr
(Count)
(Count)
SecurityViolation
Security Action
(Count)
--------------------------------------------------------------------------Fa0/1
Shutdown
: 0
Max Addresses limit in System (excluding one mac per port) : 6272
//
12.4 3:
1.
2.
12-2
3.
CISCO
Catalyst 3560Catalyst 2950
1 Mode
Base ethernet MAC Address: 00:18:ba:11:f5:00
Xmodem file system is available.
The password-recovery mechanism is enabled.
The system has been interrupted prior to initializing the
flash filesystem.
2 flash_init
Initializing Flash...
flashfs[0]: 3 files, 1 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32514048
flashfs[0]: Bytes used: 6076928
flashfs[0]: Bytes available: 26437120
flashfs[0]: flashfs fsck took 12 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs) installed, fsid: 3
Setting console baud rate to 9600...
3 load helper
4 dir flash:
Directory of flash:/
2
-rwx
6073600
<date>
c3560-ipbasek9-mz.122-25.SEB4.bin
-rwx
1455
<date>
config.text
-rwx
24
<date>
private-config.text
//config.text startup-config
5 rename flash:config.text flash:config.old
// config.text
6 boot mode
7 N
Continue with the configuration dialog? [yes/no] : n
12.5 4: IOS
1.
1 IOS
2.
12-4
3.
IOS TFTP
IOS IOS XModem
concole IOS 9600bps
(1) console
(2)
switch: flash_init
switch: load_helper
(3)
switch:copy xmodem: flash:c2950-i6q4l2-mz.121-22.EA5a.bin
xmodem FLASH
c2950-i6q4l2-mz.121-22.EA5a.bin
Begin the Xmodem or Xmodem-1K transfer now...
CCCC
12-5 IOS
Xmodem
9600bps
12-5 IOS
(4)
switch:boot
12.6
IOS
12-1
12-1
ip default-gateway 172.16.0.254
switch port-securitiy
MAC 1
switch
port-securitiy
violation
{ protect | shutdown | restrict }
switchport port-security
0019.5535.b828
MAC 0019.5535.b828
mac-address
show mac-address-table
MAC
mac-address 12.12.12
MAC
rename
flash:config.old
flash:config.text
flash
copy
xmodem:
flash:c2950-i6q4l2-mz.121-22.EA5a.bin
Xmodem flash
boot