How to configure different DHCP Servers
Posted: 16 Apr 2017 16:48
Hi. I need help to understand how to work with dhcp relay (ip helper).
I need to set-up the net with two different DHCP servers. The first one is for the WiFi and is an AC controller (it gives the ip address to AP and STA connected), the second one is a PC with a linux system in a virtual machine (windows server 2012 the Host) that is also the gateway. So, how to use the ip helper command. I think I need to use the per vlan ip helper becouse I want the AC working on vlan 2. I wonder how the vlan 1 can give dhcp response to vlan 10. Thanks in advance.
The topology is:
+-----------------+ +--------------------+
|DHCP SERVER | |DHCP SERVER |
|192.168.0.75 | |192.168.2.254 |
| LINUX | |AC CONTROLLER|
+-----------------+ +-------------------+
| |
| |
+-----------------------------------+
|192.168.0.253 192.168.2.253|
| VLAN 1 VLAN 2 |
|OS 6450 |
| VLAN 10 |
| 192.168.10.1 |
+-----------------------------------+
|
|
+-----------------+
| DHCP CLIENT |
| 192.168.10.X |
+------------------+
I start with a configuration like this:
!========================================!
! File: /flash/working/boot.cfg !
!========================================!
! Stack Manager :
! Chassis :
system daylight savings time disable
! Configuration:
! VLAN :
vlan 1 enable name "VLAN 1"
vlan 2 enable name "VLAN 2"
vlan 2 port default 1/1
vlan 2 port default 1/2
vlan 2 port default 1/3
vlan 2 port default 1/4
vlan 2 port default 1/5
vlan 2 port default 1/6
vlan 2 port default 1/7
vlan 2 port default 1/8
vlan 2 port default 1/9
vlan 2 port default 1/10
vlan 2 port default 1/11
vlan 2 port default 1/12
vlan 2 port default 1/13
vlan 2 port default 1/14
vlan 2 port default 1/15
vlan 2 port default 1/16
vlan 2 port default 1/17
vlan 2 port default 1/18
vlan 2 port default 1/19
vlan 2 port default 1/20
vlan 2 port default 1/22
vlan 2 port default 1/24
! VLAN SL:
! IP :
ip service all
ip interface "VLAN 1" address 192.168.0.253 mask 255.255.255.0 vlan 1 ifindex 1
ip interface "vlan_2" address 192.168.2.253 mask 255.255.255.0 vlan 2 ifindex 2
! IPMS :
! AAA :
aaa authentication default "local"
aaa authentication console "local"
aaa authentication telnet "local"
aaa authentication ftp "local"
aaa authentication ssh "local"
! PARTM :
! 802.1x :
! QOS :
! Policy manager :
! Session manager :
session prompt default "SwitchAlcatel->"
! SNMP :
! RIP :
! OSPF :
! ISIS :
! IPv6 :
! IP multicast :
! IPRM :
ip static-route 0.0.0.0/0 gateway 192.168.0.75 metric 1
! RIPng :
! OSPF3 :
! BGP :
! Health monitor :
health threshold temperature 78
! Interface :
! Udld :
! Port Mapping :
! Link Aggregate :
! VLAN AGG:
! 802.1Q :
! Spanning tree :
bridge mode 1x1
! Bridging :
! Bridging :
! Port mirroring :
! UDP Relay :
! System service :
swlog console level info
! SSH :
! VRRP :
! Web :
! AMAP :
! Lan Power :
lanpower start 1
! NTP :
! RDP :
! VLAN STACKING:
! EFM-OAM :
! SAA :
! Loopback-detection :
! ERP :
! TEST-OAM :
! PPPOE-IA :
! DHL :
! LLDP :
! DHCP Server :
! Stack Split-Protection Helper :
! Openflow :
! DHCPv6 :
! TWAMP :
I need to set-up the net with two different DHCP servers. The first one is for the WiFi and is an AC controller (it gives the ip address to AP and STA connected), the second one is a PC with a linux system in a virtual machine (windows server 2012 the Host) that is also the gateway. So, how to use the ip helper command. I think I need to use the per vlan ip helper becouse I want the AC working on vlan 2. I wonder how the vlan 1 can give dhcp response to vlan 10. Thanks in advance.
The topology is:
+-----------------+ +--------------------+
|DHCP SERVER | |DHCP SERVER |
|192.168.0.75 | |192.168.2.254 |
| LINUX | |AC CONTROLLER|
+-----------------+ +-------------------+
| |
| |
+-----------------------------------+
|192.168.0.253 192.168.2.253|
| VLAN 1 VLAN 2 |
|OS 6450 |
| VLAN 10 |
| 192.168.10.1 |
+-----------------------------------+
|
|
+-----------------+
| DHCP CLIENT |
| 192.168.10.X |
+------------------+
I start with a configuration like this:
!========================================!
! File: /flash/working/boot.cfg !
!========================================!
! Stack Manager :
! Chassis :
system daylight savings time disable
! Configuration:
! VLAN :
vlan 1 enable name "VLAN 1"
vlan 2 enable name "VLAN 2"
vlan 2 port default 1/1
vlan 2 port default 1/2
vlan 2 port default 1/3
vlan 2 port default 1/4
vlan 2 port default 1/5
vlan 2 port default 1/6
vlan 2 port default 1/7
vlan 2 port default 1/8
vlan 2 port default 1/9
vlan 2 port default 1/10
vlan 2 port default 1/11
vlan 2 port default 1/12
vlan 2 port default 1/13
vlan 2 port default 1/14
vlan 2 port default 1/15
vlan 2 port default 1/16
vlan 2 port default 1/17
vlan 2 port default 1/18
vlan 2 port default 1/19
vlan 2 port default 1/20
vlan 2 port default 1/22
vlan 2 port default 1/24
! VLAN SL:
! IP :
ip service all
ip interface "VLAN 1" address 192.168.0.253 mask 255.255.255.0 vlan 1 ifindex 1
ip interface "vlan_2" address 192.168.2.253 mask 255.255.255.0 vlan 2 ifindex 2
! IPMS :
! AAA :
aaa authentication default "local"
aaa authentication console "local"
aaa authentication telnet "local"
aaa authentication ftp "local"
aaa authentication ssh "local"
! PARTM :
! 802.1x :
! QOS :
! Policy manager :
! Session manager :
session prompt default "SwitchAlcatel->"
! SNMP :
! RIP :
! OSPF :
! ISIS :
! IPv6 :
! IP multicast :
! IPRM :
ip static-route 0.0.0.0/0 gateway 192.168.0.75 metric 1
! RIPng :
! OSPF3 :
! BGP :
! Health monitor :
health threshold temperature 78
! Interface :
! Udld :
! Port Mapping :
! Link Aggregate :
! VLAN AGG:
! 802.1Q :
! Spanning tree :
bridge mode 1x1
! Bridging :
! Bridging :
! Port mirroring :
! UDP Relay :
! System service :
swlog console level info
! SSH :
! VRRP :
! Web :
! AMAP :
! Lan Power :
lanpower start 1
! NTP :
! RDP :
! VLAN STACKING:
! EFM-OAM :
! SAA :
! Loopback-detection :
! ERP :
! TEST-OAM :
! PPPOE-IA :
! DHL :
! LLDP :
! DHCP Server :
! Stack Split-Protection Helper :
! Openflow :
! DHCPv6 :
! TWAMP :