C:/Users/Administrator/Desktop/0%20Port%20Security.pdf
추가필요:
deny pc 192.168.20.1
deny pc 192.168.10.1
Switch(config)#inter fa0/2
Switch(config-if)#switchport access vlan 10
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#inter vlan 10
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up
Switch(config-if)#ip add 192.168.10.3 255.255.255.0
Switch(config-if)#exit
Switch(config)#inter fa0/3
Switch(config-if)#switchport acc vlan 20
Switch(config-if)#exit
Switch(config)#
Switch(config)#inter vlan 20
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up
Switch(config-if)#
Switch(config-if)#ip add 192.168.20.3
% Incomplete command.
Switch(config-if)#ip add 192.168.20.3 255.255.255.0
Switch(config-if)#do show ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES unset up up
FastEthernet0/2 unassigned YES unset up up
FastEthernet0/3 unassigned YES unset up up
FastEthernet0/4 unassigned YES unset down down
FastEthernet0/5 unassigned YES unset down down
FastEthernet0/6 unassigned YES unset down down
FastEthernet0/7 unassigned YES unset down down
FastEthernet0/8 unassigned YES unset down down
FastEthernet0/9 unassigned YES unset down down
FastEthernet0/10 unassigned YES unset down down
FastEthernet0/11 unassigned YES unset down down
FastEthernet0/12 unassigned YES unset down down
FastEthernet0/13 unassigned YES unset down down
FastEthernet0/14 unassigned YES unset down down
FastEthernet0/15 unassigned YES unset down down
FastEthernet0/16 unassigned YES unset down down
FastEthernet0/17 unassigned YES unset down down
FastEthernet0/18 unassigned YES unset down down
FastEthernet0/19 unassigned YES unset down down
FastEthernet0/20 unassigned YES unset down down
FastEthernet0/21 unassigned YES unset down down
FastEthernet0/22 unassigned YES unset down down
FastEthernet0/23 unassigned YES unset down down
FastEthernet0/24 unassigned YES unset down down
GigabitEthernet0/1 unassigned YES unset down down
GigabitEthernet0/2 unassigned YES unset down down
Vlan1 unassigned YES unset administratively down down
Vlan10 192.168.10.3 YES manual up up
Vlan20 192.168.20.3 YES manual up up
Switch(config-if)#
MultiPlayer Switch0,1 -- 모두 라우팅 활성화 필요.
>> ip routing
'자격증공부 > CCNA' 카테고리의 다른 글
CCNA - 230604 - 6주차 일요일[1] (0) | 2023.06.04 |
---|---|
tmp 06031335 ccna part 3 마무리 (Port-security) 06041004 (0) | 2023.06.04 |
CCNA - 230603 - 6주차 토요일[2] (0) | 2023.06.03 |
CCNA - 230603 - 6주차 토요일[1] (0) | 2023.06.03 |
CCNA - 230528 - 5주차 일요일[1] (0) | 2023.05.28 |