서브넷팅
192.168.10.0/25
192.168.10.128/25
Router - PC처럼 설정하기 (hostname과 IP 바꿔서 나머지도)
!
en
!
conf t
!
##################################################
ho PC3
##################################################
ip domain-name netsec.kr
no ip domain-lookup
!
no ip routing
!
line console 0
exec-timeout 0
exit
!
int e0/0
##################################################
ip add 192.168.10.1 255.255.255.128
##################################################
no shutdown
Switch - SW1 기본 설정 (hostname만 바꿔서 SW2도)
!
en
!
conf t
##################################################
ho SW1
##################################################
ip domain-name netsec.kr
no ip domain-lookup
!
banner motd ^
NETSEC-SW1
^
!
username user01 secret cisco
username admin privilege 15 secret cisco
!
line console 0
exec-timeout 0
logging sync
login local
exit
!
line vty 0 4
exec-timeout 0
logging sync
transport input ssh
login local
exit
!
ip ssh time-out 30
ip ssh version 2
crypto key generate rsa general-keys modulus 1024
!
exit
copy running-config startup-config
Switch - 필요한 인터페이스 빼고 shutdown
int range ethernet 0/0 - 3,1/0 - 3,2/0 - 3,3/0 - 3
shutdown
!
int range ethernet 0/0 - 1,1/1
no shutdown
Switch - VLAN access 설정 (여러가지 수정해서 SW2도 적용)
!
do show vlan brief
int e0/0
desc VLAN100-PC3
switchport mode access
switchport access vlan 200
no shutdown
!
int e0/1
desc VLAN200-PC4
switchport mode access
switchport access vlan 100
no shutdown
!
do show vlan brief
!
!trunk
int e1/1
desc trunk-vlan100-vlan200
shutdown
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk native vlan 1
switchport trunk allowed vlan 100,200
switchport nonegotiate
no shutdown
end
!
show interfaces trunk
!
'IT > Network Theory' 카테고리의 다른 글
Static Routing의 올바른 사용법 (0) | 2021.09.06 |
---|---|
IGP - Distance Vector - RIPv2 (0) | 2021.09.06 |
Routing Concept & Static Routing (0) | 2021.09.03 |
Routing Lab Compilation (0) | 2021.09.03 |
Lab - Network Subnetting on 3 Routers (0) | 2021.09.02 |