Layer 3 switch configuration routing and DHCP relay


experiment

Note: vlan10-192.168.10.0/24

Vlan20-192.168.20.0 / 24

look back192.168.1.1/32

R2 to R3-192.168.0.0/30

Create valn10 and vlan20 on SW1 and divide port f0/0 to vlan10 , and port f1/2 to vlan20.

Configure routing on SW1 and R2 , which is network interoperability.

Configure DHCP on R1 and DHCP relay on SW1 so that the PC can automatically obtain the IP address and default gateway address.

Can ping the same R1 and lookback on the PC

 image.png

Set up R2

Create vlan 10 , 20

 

 image.png

Add f1/2 and f1/1 to vlan20

 

 image.png

Configure the DHCP relay port

 image.png

Configure IP address

 image.png

Configure static routing

 

 image.png

 

Placement R1

Configure f0/0IP address

 image.png

Configure the default route

 image.png

Configuring vlan10 , 20 of DHCP

 image.png

 

Configure R3

Configure IP address

 image.png

Configure the default route

image.png

 

 

pcDHCP obtains and verifies the interoperability of the entire network

 image.png

verification

 image.png

 

Guess you like

Origin blog.51cto.com/15070926/2678234