728x90
반응형
- SW1 VRRP Configuration
Switch>en
Switch#conf t
Switch(config)#logging console 0
Switch(config)#hostname SW1
SW1(config)#int vlan 10
SW1(config-if)#ip add 192.168.10.2 255.255.255.0 //IP 설정
SW1(config-if)#vrrp 10 ip 192.168.10.1 //VIP 설정
SW1(config-if)#vrrp 10 priority 150 //우선순위 설정(기본값 100)
SW1(config-if)#vrrp 10 preempt //우선순위가 높으면 Master
SW1(config-if)#no shu
SW1(config-if)#end
SW1#wr //저장
- SW2 VRRP Configuration
Switch>en
Switch#conf t
Switch(config)#logging console 0
Switch(config)#hostname SW2
SW2(config)#int vlan 10
SW2(config-if)#ip add 192.168.10.3 255.255.255.0 //IP 설정
SW2(config-if)#vrrp 10 ip 192.168.10.1 //VIP 설정
SW2(config-if)#vrrp 10 preempt //우선순위가 높으면 Master
SW2(config-if)#no shu
SW2(config-if)#end
SW2#wr //저장
- SW1 DHCP Server Configuration
SW1(config)#ip dhcp pool VLAN10
SW1(dhcp-config)#network 192.168.10.0 255.255.255.0
SW1(dhcp-config)#default-router 192.168.10.1
SW1(dhcp-config)#lease 0 4 0
SW1(dhcp-config)#exit
SW1(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.10
- SW2 DHCP Server Configuration
SW2(config)#ip dhcp pool VLAN10
SW2(dhcp-config)#network 192.168.10.0 255.255.255.0
SW2(dhcp-config)#default-router 192.168.10.1
SW2(dhcp-config)#lease 0 4 0
SW2(dhcp-config)#exit
SW2(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.10
- VPC Configuration
VPCS> ip dhcp
DORA IP 192.168.10.12/24 GW 192.168.10.1
- SW1 shutdown
- VPC - SW2 통신확인
VPCS> sh ip
NAME : VPCS[1]
IP/MASK : 192.168.10.12/24
GATEWAY : 192.168.10.1
DNS :
DHCP SERVER : 192.168.10.2
DHCP LEASE : 14089, 14400/7200/12600
MAC : 00:50:79:66:68:04
LPORT : 20000
RHOST:PORT : 127.0.0.1:30000
MTU : 1500
VPCS> ping 192.168.10.1
84 bytes from 192.168.10.1 icmp_seq=1 ttl=255 time=3.601 ms
84 bytes from 192.168.10.1 icmp_seq=2 ttl=255 time=4.196 ms
84 bytes from 192.168.10.1 icmp_seq=3 ttl=255 time=3.565 ms
84 bytes from 192.168.10.1 icmp_seq=4 ttl=255 time=3.720 ms
84 bytes from 192.168.10.1 icmp_seq=5 ttl=255 time=3.858 ms
VPCS>
728x90
반응형
'IT > Network' 카테고리의 다른 글
Cisco WLC Configuration (0) | 2025.03.31 |
---|---|
Cisco Switch DHCP Server 설정 (0) | 2025.03.30 |