您的当前位置:首页正文

基于单臂路由的DHCP中继

2021-12-13 来源:小奈知识网


基于单臂路由的DHCP中继

一、 实验目的:

1. 单臂路由的配置 2. 中继配置 3. DHCP的配置

4. 静态和默认路由的配置

二、 实验拓扑:

三、 实验步骤: 1.R1:配置: en conf t hostname R1 line c 0

exec-t 0 0 logg syn exit

no ip domain lookup int f1/0 no shut int f1/0.1

encapsulation dot1q 10

ip add 192.168.10.254 255.255.255.0 ip help 192.168.2.1 no shut int f1/0.2

encapsulation dot1q 20

ip add 192.168.20.254 255.255.255.0 ip help 192.168.2.1 no shut int f0/0

ip add 192.168.0.1 255.255.255.252 no shut exit

ip route 192.168.2.0 255.255.255.0 192.168.0.2 exit

wr

SW1:配置: en conf t hostname sw1 line c 0 exec-t 0 0 logg syn exit

no ip domain lookup exit

vlan database vlan 10 vlan 20 exit conf t int f0/1

sw ac vlan 10 int f0/2 sw ac vlan 20 int f0/0 sw mo tr exit exit wr show run

SW2:配置: en conf t hostname sw2 line c 0 exec-t 0 0 logg syn exit

no ip domain lookup

exit

vlan database vlan 10 vlan 20 exit conf t int f0/0 no sw

ip add 192.168.3.2 255.255.255.252 no shut int vlan 1

ip add 192.168.2.254 255.255.2555.0 no shut exit

ip route 0.0.0.0 0.0.0.0 192.168.3.1 end wr

R4:配置:

en conf t hostname R4 line c 0 exec-t 0 0 logg syn exit

no ip domain lookup int f0/0

ip add 192.168.0.2 255.255.255.252 no shut int f1/0

ip add 192.168.3.1 255.255.255.252 no shut exit

ip route 0.0.0.0 0.0.0.0 192.168.0.1

ip route 192.168.2.0 255.255.255.0 192.168.3.2 exit wr

四、实验总结:

因篇幅问题不能全部显示,请点此查看更多更全内容