对所学知识日进一寸! |

园龄:粉丝:关注:

DHCP中继配置+2种方式绑定固定地址

路由器环境下中继部署

image-20240506213738097

PC1配置

no ip routing
int e0/0
no shut
ip add dhcp

PC3配置

no ip routing
int e0/0
no shut
ip add dhcp

PC4配置

no ip routing
interface Ethernet0/0
no shut
ip address dhcp client-id Ethernet0/0

Router_relay配置

interface Ethernet0/0
ip address 192.168.10.254 255.255.255.0
ip helper-address 192.168.20.100
duplex auto
!
interface Ethernet0/1
ip address 192.168.20.254 255.255.255.0
duplex auto
!
interface Ethernet0/2
ip address 192.168.30.254 255.255.255.0
ip helper-address 192.168.20.100
duplex auto
!
interface Ethernet0/3
ip address 192.168.40.254 255.255.255.0
ip helper-address 192.168.20.100
duplex auto

server2配置

no ip routing
!
ip dhcp excluded-address 192.168.10.254
ip dhcp excluded-address 192.168.30.254
!
ip dhcp pool vlan10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.254 
!
ip dhcp pool PC3
host 192.168.30.1 255.255.255.0
client-identifier 0063.6973.636f.2d61.6162.622e.6363.3030.2e37.3030.302d.4574.302f.30
default-router 192.168.30.254 
!
ip dhcp pool bind
host 192.168.40.1 255.255.255.0
client-identifier 01aa.bbcc.0090.00
default-router 192.168.40.254 
!
interface Ethernet0/0
ip address 192.168.20.100 255.255.255.0
no ip route-cache
duplex auto
!
interface Ethernet0/1
no ip address
no ip route-cache
shutdown
duplex auto
!
interface Ethernet0/2
no ip address
no ip route-cache
shutdown
duplex auto
!
interface Ethernet0/3
no ip address
no ip route-cache
shutdown 
duplex auto
!
ip default-gateway 192.168.20.254

三层交换机环境下中继部署

image-20240506213834556

唯一区别就是,配置中继命令是在SVI接口下。

本文作者:lemonbusuan

本文链接:https://www.cnblogs.com/lemonbusuan/p/18176014

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   lemonbusuan  阅读(53)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起