네트워크 이중화 연습 (vlan, 이중화, multilayer 스위치)

2025. 5. 24. 18:28·Network



R4

conf t
vlan 10
name v10
vlan 20
name v20
exit

int f3/3
switchport mode access
switchport access vlan 10

int f3/2
switchport mode access
switchport access vlan 20

int fa 3/0
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,30,40,1002-1005

int fa 3/1
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,30,40,1002-1005
-------------

R5

conf t
vlan 30
name v30
vlan 40
name v40
exit

int fa 3/3
switchport mode access
switchport access vlan 30

int fa 3/2
switchport mode access
switchport access vlan 40

int fa 3/1
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,30,40,1002-1005

int fa 3/0
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,10,20,30,40,1002-1005

---
DSW_1

conf t
int f0/0
no shu
interface fa0/0.10
encapsulation dot1q 10
ip address 192.168.120.2 255.255.255.0
standby 1 ip 192.168.120.254
standby 1 priority 200
standby 1 timers 1 3


interface fa0/0.20
encapsulation dot1q 20
ip address 192.168.130.2 255.255.255.0
standby 2 ip 192.168.130.254
standby 2 priority 100
standby 2 timers 1 3


int f1/0
no shu
interface fa1/0.30
encapsulation dot1q 30
ip address 192.168.140.2 255.255.255.0
standby 3 ip 192.168.140.254
standby 3 priority 200
standby 3 timers 1 3


interface fa1/0.40
encapsulation dot1q 40
ip address 192.168.150.2 255.255.255.0
standby 4 ip 192.168.150.254
standby 4 priority 100
standby 4 timers 1 3


router ospf 1
network 192.168.120.0 0.0.0.255 area 0
network 192.168.130.0 0.0.0.255 area 0
network 192.168.140.0 0.0.0.255 area 0
network 192.168.150.0 0.0.0.255 area 0
network 192.168.12.0 0.0.0.255 area 0
int f0/1
ip addr 192.168.12.3 255.255.255.0


int f0/1
no shu
ip addr 192.168.12.1 255.255.255.0



----
DSW_2

conf t
int f1/0
no shu
interface fa1/0.10
encapsulation dot1q 10
ip address 192.168.120.3 255.255.255.0
standby 1 ip 192.168.120.254
standby 1 priority 100
standby 1 timers 1 3


interface fa1/0.20
encapsulation dot1q 20
ip address 192.168.130.3 255.255.255.0
standby 2 ip 192.168.130.254
standby 2 priority 200
standby 2 timers 1 3


int f0/0
no shu
interface fa0/0.30
encapsulation dot1q 30
ip address 192.168.140.3 255.255.255.0
standby 3 ip 192.168.140.254
standby 3 priority 100
standby 3 timers 1 3


interface fa0/0.40
encapsulation dot1q 40
ip address 192.168.150.3 255.255.255.0
standby 4 ip 192.168.150.254
standby 4 priority 200
standby 4 timers 1 3


router ospf 1
network 192.168.120.0 0.0.0.255 area 0
network 192.168.130.0 0.0.0.255 area 0
network 192.168.140.0 0.0.0.255 area 0
network 192.168.150.0 0.0.0.255 area 0
network 192.168.13.0 0.0.0.255 area 0

int f0/1
ip addr 192.168.13.3 255.255.255.0
no shu


-----------------

Router_1

conf t
int f0/0
ip addr 192.168.12.2 255.255.255.0
no shu

int f0/1
ip addr 192.168.13.2 255.255.255.0
no shu

router ospf 1
network 192.168.12.0 0.0.0.255 area 0
network 192.168.13.0 0.0.0.255 area 0




------------------------------

🖥️ DNS1
ip 192.168.120.10 255.255.255.0 192.168.120.254

🖥️ DNS2
ip 192.168.130.10 255.255.255.0 192.168.130.254

🖥️ WEB
ip 192.168.140.10 255.255.255.0 192.168.140.254

🖥️ VPN (내부)
ip 192.168.150.60 255.255.255.0 192.168.150.254

--------------------------------------------------------
clear mac-address-table







저작자표시 비영리 변경금지 (새창열림)

'Network' 카테고리의 다른 글

dhcp, ftp, 인터넷 연결, hdlc,ppp, nat(pat그룹), nat(static)  (0) 2025.06.26
보안 솔루션 - port mirroring=span  (0) 2025.06.05
udp tunneling (서로 다른 네트워크에 있는 pc를 GNS3로 연결하기)  (0) 2025.05.21
네트워크 gateway이중화  (0) 2025.05.16
10.10.10.1 → 10.10.10.2로 ping -OSI 7계층, 프로토콜, ARP 과정  (0) 2025.04.29
'Network' 카테고리의 다른 글
  • dhcp, ftp, 인터넷 연결, hdlc,ppp, nat(pat그룹), nat(static)
  • 보안 솔루션 - port mirroring=span
  • udp tunneling (서로 다른 네트워크에 있는 pc를 GNS3로 연결하기)
  • 네트워크 gateway이중화
햅삐root
햅삐root
happyroot 님의 블로그 입니다. IT 보안 정리💛
  • 햅삐root
    햅삐한 root
    햅삐root
  • 전체
    오늘
    어제
    • 전체보기 IT (125) N
      • Linux (21)
      • Network (23)
      • packet tracer& GNS3 (10)
      • Cryptology (7)
      • WEB (16)
      • DB (16)
      • Hacking (30) N
  • 블로그 메뉴

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

  • 공지사항

  • 인기 글

  • 태그

    Hack
    injectionvector
    sqlinjection
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.4
햅삐root
네트워크 이중화 연습 (vlan, 이중화, multilayer 스위치)
상단으로

티스토리툴바