L3 Switch

L3 Switch

layer2, 3 (둘다지원)


 

라우터에서 DHCP구현

  • SVI(Switched Virtual Interface)

  • Routed Port


L2 스위치는 IP연결 x 

L3는 가능(no switchport 사용)


 

(스위치)

en

conf t

int g0/1

no switchport

ip address 10.0.0.1 255.255.255.252

no shutdown

exit

(전역설정모드)

ip routing


 

(오른쪽꺼)

en

conf t

int g0/1

no switchport

ip address 10.0.0.2 255.255.255.252

no shutdown

exit

(전역설정모드)

ip routing


 

>Routed Port (왼쪽)

각각의 인터페이스에 GW설정해 줘야하는데 IP충돌이남 (중간에 스위치 필요) 


 

> SVI(오른쪽)

VLAN에 IP를 넣어줌

(vlan은 interface를 대표하는 기능)



 

(왼쪽)

int f0/1

no sw

ip add 1.0.0.254 255.255.255.0

no sh

do wr

exit

vl 10

name admin

vl 20

name sales

int r f0/1-5

sw a vl 10

int r f0/6

no sw

ip add 2.0.0.254 255.255.255.0

no sh

do wr


 

(오른쪽)

vlan 10

name admin

vl 20

name sales

do wr

int r f0/1-5

sw a vl 10

int r f0/6-10

sw a vl 20

do wr

int vlan10

ip add 1.0.0.254 255.255.255.0

no sh 

do wr

exit

int vlan20

ip add 2.0.0.254 255.255.255.0

no sh 

do wr


 

(왼쪽)

exit

ip dhcp pool babo10

network 1.0.0.0 255.255.255.0

default-router 1.0.0.254

dns-server 1.0.0.1

exit

ip dhcp excluded-address 1.0.0.1 1.0.0.30

ip dhcp excluded-address 1.0.0.254

ip dhcp pool babo20

network 2.0.0.0 255.255.255.0

default-router 2.0.0.254

dns-server 1.0.0.1

exit

ip dhcp excluded-address 2.0.0.1 2.0.0.30

ip dhcp excluded-address 2.0.0.254

ip route 0.0.0.0 0.0.0.0 10.0.0.2


 

(오른쪽)

exit

ip route 0.0.0.0 0.0.0.0 10.0.0.1

do wr

int vlan10

ip helper-address 10.0.0.1

int vlan20

ip helper-address 10.0.0.1

do wr


 

> 설계를 잘못함. 스위치끼리 trunk port를 사용 했어야함




 

'네트워크' 카테고리의 다른 글

Routing Protocol  (0) 2019.10.04
VTP  (0) 2019.10.04
InterVLAN  (0) 2019.10.04
공유기 설정  (0) 2019.10.04
VLAN  (0) 2019.10.04
더보기

댓글,

白柯