vlan 설정 및 PVST설정

2025. 7. 24. 10:06·Network

PC1
ip 10.10.10.1 255.255.255.0 10.10.10.254
PC2
ip 20.20.20.1 255.255.255.0 20.20.20.254
PC3
ip 10.10.10.2 255.255.255.0 10.10.10.254
PC4
ip 20.20.20.2 255.255.255.0 20.20.20.254

ASW1
conf t
vlan 10
name v10
vlan 20
name v20
exit
int fa 3/0
switchport mode access
switchport access vlan 10
int fa 3/1
switchport mode access
switchport access vlan 20
int fa 3/2
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,1002-1005
int fa 3/3
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,1002-1005

ASW2
conf t
vlan 10
name v10
vlan 20
name v20
exit
int fa 3/0
switchport mode access
switchport access vlan 10
int fa 3/1
switchport mode access
switchport access vlan 20
int fa 3/2
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,1002-1005
int fa 3/3
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,1002-1005

DSW1
conf t
vlan 10
name v10
vlan 20
name v20
exit
int fa 3/2
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,1002-1005
int fa 3/3
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,1002-1005
int fa 3/14
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,1002-1005
spanning-tree vlan 10 root primary
spanning-tree vlan 20 root secondary

DSW2
conf t
vlan 10
name v10
vlan 20
name v20
exit
int fa 3/2
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,1002-1005
int fa 3/3
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,1002-1005
int fa 3/15
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,1002-1005
spanning-tree vlan 20 root primary
spanning-tree vlan 10 root secondary

R1
conf t
vlan 10
name v10
vlan 20
name v20
exit
int fa 3/14
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,1002-1005
int fa 3/15
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,1002-1005
int vlan 10
ip addr 10.10.10.254 255.255.255.0
no shu
int vlan 20
ip addr 20.20.20.254 255.255.255.0
no shu
int fa 0/0
ip addr 192.168.50.135 255.255.255.0
no shu
ip route 0.0.0.0 0.0.0.0 192.168.50.2
access-list 1 permit 10.10.10.0 0.0.0.255
access-list 1 permit 20.20.20.0 0.0.0.255
ip nat inside source list 1 int fa 0/0
int fa 0/0
ip nat outside
int vlan 10
ip nat inside
int vlan 20
ip nat inside
저작자표시 비영리 변경금지 (새창열림)

'Network' 카테고리의 다른 글

LVS 로드 밸런싱  (3) 2025.07.25
이중화 VRRP  (1) 2025.07.24
L2 스위치 이중화의 문제점  (0) 2025.07.23
win10-UTM을 VPN장비로 설정  (0) 2025.07.23
실습 router-VPN  (2) 2025.07.22
'Network' 카테고리의 다른 글
  • LVS 로드 밸런싱
  • 이중화 VRRP
  • L2 스위치 이중화의 문제점
  • win10-UTM을 VPN장비로 설정
햅삐root
햅삐root
happyroot 님의 블로그 입니다. IT 보안 정리💛
  • 햅삐root
    햅삐한 root
    햅삐root
  • 전체
    오늘
    어제
    • 전체보기 IT (123)
      • Linux (21)
      • Network (23)
      • packet tracer& GNS3 (10)
      • Cryptology (7)
      • WEB (16)
      • DB (16)
      • Hacking (28)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    Hack
    sqlinjection
    injectionvector
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.4
햅삐root
vlan 설정 및 PVST설정
상단으로

티스토리툴바