三层交换机配置
1:三层交换机上配置的VLAN接口为虚接口
Switch(config)# interface vlan vlan-id
2:启用路由功能
Switch(config)# ip routing
3:配置路由接口 (在对应接口上配置)
Switch(config-if)# no switchport
4:DHCP中继的配置
Switch(config) inf vlan 2
Switch(config) ip add ip mask
Switch(config-if)# ip helper-address DHCPsrv-IPAddress
Dhcp服务器开启dhcp,创建地址池
[R1]dhcp enable
[R1]ip pool 20
[R1-ip-pool-20]network 192.168.20.0 mask 255.255.255.0
[R1-ip-pool-20]gateway-list 192.168.20.254
[R1-ip-pool-20]dns-list 8.8.8.8
把VLAN加IP,设置DHCP中继模式
[H1]int vlan 20
[H1-Vlanif20]ip add 192.168.20.254 24
[H1-Vlanif20]dhcp select relay
[H1-Vlanif20]dhcp relay server-ip 192.168.88.1
三层交换机技术
于 2020-04-19 21:25:26 首次发布