目录
路由器环境下中继部署
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
三层交换机环境下中继部署
唯一区别就是,配置中继命令是在SVI接口下。
标签:中继,no,ip,Ethernet0,绑定,192.168,address,interface,DHCP
From: https://www.cnblogs.com/lemonbusuan/p/18176014