Вы находитесь на странице: 1из 8

SW-A#

SW-A#
SW-A#
SW-A#
SW-A#
00:13:52: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, chang
ed state to down
00:13:58: %LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to up
00:14:02: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, chang
ed state to up
SW-A#
SW-A#
SW-A#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW-A(config)#
00:21:20: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, chang
ed state to down
SW-A(config)#
SW-A(config)#no ip do
SW-A(config)#no ip domain-loo
SW-A(config)#no ip domain-lookup
SW-A(config)#vlan 100
SW-A(config-vlan)#name ccna1
SW-A(config-vlan)#name CCNA1
SW-A(config-vlan)#VLAN 200
SW-A(config-vlan)#NAME CCNA2
SW-A(config-vlan)#VLAN 300
SW-A(config-vlan)#NAME ADMIN
SW-A(config-vlan)#END
SW-A#
00:24:34: %SYS-5-CONFIG_I: Configured from console by console
SW-A#sh vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
100 CCNA1 active
200 CCNA2 active
300 ADMIN active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
100 enet 100100 1500 - - - - - 0 0
200 enet 100200 1500 - - - - - 0 0
300 enet 100300 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
--More--
00:26:03: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, chang
ed state to down
00:26:06: %LINK-3-UPDOWN: Interface FastEthernet0/8, changed state to up
00:26:07: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, chang
ed state to down
00:26:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, chang
ed s1005 trnet 101005 1500 - - - ibm - 0 0

Primary Secondary Type Ports


------- --------- ----------------- ------------------------------------------
SW-A#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
SW-A(config)#inter range fa0/11 - 12
SW-A(config-if-range)#switch
SW-A(config-if-range)#switchport acc
SW-A(config-if-range)#switchport access vlan 300
SW-A(config-if-range)#inter range fa0/7 - 8
SW-A(config-if-range)#switch
SW-A(config-if-range)#switchport acc
SW-A(config-if-range)#switchport access vlan 100
SW-A(config-if-range)#end
SW-A#
00:28:23: %SYS-5-CONFIG_I: Configured from console by console
SW-A#
SW-A#
SW-A#sh vlan bri
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/9, Fa0/10
100 CCNA1 active Fa0/7, Fa0/8
200 CCNA2 active
300 ADMIN active Fa0/11, Fa0/12
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
SW-A#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
SW-A(config)#int range fa09 - 10
^
% Invalid input detected at '^' marker.
SW-A(config)#int range fa0/9 - 10
SW-A(config-if-range)#switch
SW-A(config-if-range)#switchport acc
SW-A(config-if-range)#switchport access vlan 200
SW-A(config-if-range)#end
SW-A#
00:29:47: %SYS-5-CONFIG_I: Configured from console by console
SW-A#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
SW-A(config)#int fa0/2
SW-A(config-if)#switch
SW-A(config-if)#switchport mode
SW-A(config-if)#switchport mode acc
SW-A(config-if)#switchport mode access
SW-A(config-if)#switch
SW-A(config-if)#switchport acc
SW-A(config-if)#switchport access vlan 300
SW-A(config-if)#switch
SW-A(config-if)#switchport mode trunk
SW-A(config-if)#end
SW-A#sh v
00:31:56: %SYS-5-CONFIG_I: Configured from console b6{s {c+cÿan bri
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/3, Fa0/4, Fa0/5
Fa0/6
100 CCNA1 active Fa0/7, Fa0/8
200 CCNA2 active Fa0/9, Fa0/10
300 ADMIN active Fa0/2, Fa0/11, Fa0/12
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
SW-A#
00:32:07: %LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to up
00:32:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, chang
ed state to up
SW-A#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW-A(config)#int vlan 300
SW-A(config-if)#
00:33:25: %LINK-3-UPDOWN: Interface Vlan300, changed state to up
00:33:26: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan300, changed state
to up
SW-A#
00:33:27: %SYS-5-CONFIG_I: Configured from console by console
SW-A#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW-A(config)#int valn 300
^
% Invalid input detected at '^' marker.
SW-A(config)#int vlan 300
SW-A(config-if)#ip add 199.6.13.193 255.255.255.224
SW-A(config-if)#no shutdown
SW-A(config-if)#exit
SW-A(config)#int fa0/2
SW-A(config-if)#switch
SW-A(config-if)#switchport mode trunk
SW-A(config-if)#switch
SW-A(config-if)#switchport trunk native vlan 300
SW-A(config-if)#end
SW-A#
00:36:42: %SYS-5-CONFIG_I: Configured from console by console
SW-A#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/2 on 802.1q trunking 300
Port Vlans allowed on trunk
Fa0/2 1-4094
Port Vlans allowed and active in management domain
Fa0/2 1,100,200,300
Port Vlans in spanning tree forwarding state and not pruned
Fa0/2 1,100,200,300
SW-A#ping 199.6.13.194
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 199.6.13.194, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
SW-A#ping 199.6.13.195
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 199.6.13.195, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
SW-A#ping 199.6.13.196
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 199.6.13.196, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
SW-A#ping 199.6.13.195
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 199.6.13.195, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
SW-A#ping 199.6.13.194
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 199.6.13.194, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
SW-A#ping 199.6.13.194
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 199.6.13.194, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
SW-A#ping 199.6.13.194
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 199.6.13.194, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
SW-A#
00:52:11: %SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vlan i
d 1 on FastEthernet0/2 VLAN300.
00:52:11: %SPANTREE-2-BLOCK_PVID_PEER: Blocking FastEthernet0/2 on VLAN0001. Inc
onsistent peer vlan.
00:52:11: %SPANTREE-2-BLOCK_PVID_LOCAL: Blocking FastEthernet0/2 on VLAN0300. In
consistent local vlan.
00:52:17: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEt
hernet0/2 (300), with SW-B FastEthernet0/2 (1).
00:52:33: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEt
hernet0/2 (300), with SW-B FastEthernet0/2 (1).
00:53:07: %SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/2 on VLAN00
01. Port consistency restored.
00:53:07: %SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/2 on VLAN03
00. Port consistency restored.
SW-A#
SW-A#sh run
Building configuration...
Current configuration : 1217 bytes
!
version 12.1
no service single-slot-reload-enable
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SW-A
!
!
ip subnet-zero
no ip domain-lookup
!
spanning-tree extend system-id
!
!
interface FastEthernet0/1
no ip address
!
interface FastEthernet0/2
switchport access vlan 300
switchport trunk native vlan 300
switchport mode trunk
no ip address
!
interface FastEthernet0/3
no ip address
!
interface FastEthernet0/4
no ip address
!
interface FastEthernet0/5
no ip address
!
interface FastEthernet0/6
no ip address
!
interface FastEthernet0/7
switchport access vlan 100
no ip address
!
interface FastEthernet0/8
switchport access vlan 100
no ip address
!
interface FastEthernet0/9
switchport access vlan 200
no ip address
!
interface FastEthernet0/10
switchport access vlan 200
no ip address
!
interface FastEthernet0/11
switchport access vlan 300
no ip address
!
interface FastEthernet0/12
switchport access vlan 300
no ip address
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
SW-A#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW-A(config)#int fa0/2
SW-A(config-if)#no switchport access vlan 300
SW-A(config-if)#shitch
SW-A(config-if)#shitch mode trunk
^
% Invalid input detected at '^' marker.
SW-A(config-if)#switch mode trunk
SW-A(config-if)#exit
SW-A(config)#exit
SW-A#sh ru
00:56:37: %SYS-5-CONFIG_I: Configured from console by consolen
SW-A#sh run
Building configuration...
Current configuration : 1189 bytes
!
version 12.1
no service single-slot-reload-enable
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SW-A
!
!
ip subnet-zero
no ip domain-lookup
!
spanning-tree extend system-id
!
!
interface FastEthernet0/1
no ip address
!
interface FastEthernet0/2
switchport trunk native vlan 300
switchport mode trunk
no ip address
!
interface FastEthernet0/3
no ip address
!
interface FastEthernet0/4
no ip address
!
interface FastEthernet0/5
no ip address
!
interface FastEthernet0/6
no ip address
!
interface FastEthernet0/7
switchport access vlan 100
no ip address
!
interface FastEthernet0/8
switchport access vlan 100
no ip address
!
interface FastEthernet0/9
switchport access vlan 200
no ip address
!
interface FastEthernet0/10
switchport access vlan 200
no ip address
!
interface FastEthernet0/11
switchport access vlan 300
no ip address
!
interface FastEthernet0/12
switchport access vlan 300
no ip address
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
interface Vlan300
ip address 199.6.13.193 255.255.255.224
no ip route-cache
!
ip http server
!
!
line con 0
line vty 5 15
!
end
SW-A#ping 199.6.13.194
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 199.6.13.194, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
SW-A#ping 199.6.13.194
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 199.6.13.194, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/3/4 ms
SW-A#

Вам также может понравиться