中继DHCP配置实验

实验大纲

1.构建网络拓扑结构图

2.对路由器进行配置

3.对DHCP服务器进行配置

4.对交换机S1进行配置(创建vlan)

5.配置路由器,并分配逻辑接口

1.构建网络拓扑结构图

2.对路由器进行配置

复制代码
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface f0/0
Router(config-if)#ip add 192.1.1.254 255.255.255.0
Router(config-if)#no shutdown

3.对DHCP服务器进行配置

4.对交换机S1进行配置(创建vlan)

复制代码
Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#VLAN 2
Switch(config-vlan)#NAME V2
Switch(config-vlan)#interface f0/2
Switch(config-if)#switchport mode access 
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit
Switch(config)#vlan 3
Switch(config-vlan)#name v3
Switch(config-vlan)#interface f0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 3
Switch(config-if)#exit
Switch(config)#interface f0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch(config)#

5.配置路由器,并分配逻辑接口

复制代码
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface f0/1
Router(config-if)#no shutdown
​
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
​
Router(config-if)#exit
Router(config)#interface f0/1.1
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/1.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.1, changed state to up
​
Router(config-subif)#encap dot1q 2
Router(config-subif)#ip add 192.1.2.254 255.255.255.0
Router(config-subif)#ip helper 192.1.1.1
Router(config-subif)#exit
Router(config)#interface f0/1.2
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/1.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.2, changed state to up
​
Router(config-subif)#encap dot1q 3
Router(config-subif)#ip add 192.1.3.254 255.255.255.0
Router(config-subif)#ip helper 192.1.1.1
Router(config-subif)#end
相关推荐
Zguigo1 天前
lesson19-23计算机网络数据链路层完全指南:从帧封装到滑动窗口协议
网络·计算机网络
肠畔码农1 天前
Redis 主从复制内核深潜:从物理模型到全量增量同步的本质
网络·redis·php
CDN3601 天前
360CDN发布HTTP/3(QUIC)弱网加速方案:实测首屏提速40%,彻底终结移动端接口超时与频繁断连
网络·网络协议·http
随风而飘1861 天前
安立(Anritsu)MT8820C无线综合测试仪(手机综测仪)
网络·功能测试·测试工具·5g·智能手机
SWAGGY..1 天前
【C++ 初阶】:(12)深入理解C++ stack:容器适配器、底层容器与算法实战
网络·网络协议·rpc
嵌入式阿蔡1 天前
项目实战 02:智能家居环境网关——ESP32 做 BLE 中心 + 本地联动
网络·单片机·嵌入式硬件·esp32·智能家居·嵌入式实时数据库
Doraemomo1 天前
Linux编程-socket网络编程之TCP
linux·网络·tcp/ip
猫咪宝妖1 天前
信息安全工程师-网络信息安全
网络
Brilliantwxx1 天前
【Linux】 进程(3)深度解析:从查看进程到进程状态
linux·服务器·网络·c++
我星期八休息1 天前
Linux—五种IO模型与非阻塞IO
linux·运维·服务器·网络·数据库·网络协议