Hi everybody, i’m trying to make a DHCP RELAY on opensuse 11.0 but it doesn’t seem to work.
Description:
i’ve got an adsl box which provide an IP on the first interface (eth0) of my openSuse server (which will be a proxy under squid). I’ve got another interface (eth1) on the same server which is connected to a wifi access point. The point is that i want that people could get a dynamical ip when they connect to the access point. the dhcp relay beetween eth0 and eth1 should be useful to do that but it doesn’t work.
The dhcp-relay agent has been launched with interfaces names and the dhcp server’s name which is the adsl box notified on the sysconfig.dhcrelay and in the command line but still no result. No pc connected can recover a valid ip address. What could i do?
help me please…
Your server’s interfaces will be on different subnets. Is the ADSL router prepared to give out addresses in a different subnet? Usually DHCP servers in such equipment only serve their own subnet.
DHCP is a non-routing protocol, e.g. it won’t be routed into another subnet by itslef. You will need to setup a ip helper service to pass on the DHCP requests from the workstation network to the ADSL router network or setup eth0 and eth1 as bridge.
With the helper (dhcp-relay) setup the way you describe the ADSL router would also have to give out addresses for the subnet where the workstations are, which is different then the one it’s on. I’m guessing the ADSL router only services it’s own subnet (as most routers can only do).
Also if you want to use the openSUSE box as proxy server for the other workstations, it would be safer/better to setup a DHCP (and caching DNS) service on the openSUSE box and let openSUSE give the needed address details to the other workstations.
The wifi ap should also be able to hand out DHCP addresses.
I think the quickest way to get things setup is to configure the access point to act as DHCP server - and just set the workstations to get a DHCP address. This is assuming the workstations are on the same network as the ap.
For the workstations, & once you have your ip address, set the needed services (also don’t forget YaST > Proxy) to go through the openSUSE proxy service you’ve setup.
Test it on one workstation first… when that works the way you want > configure the other workstations in the same manner.
hello, i’ve succeeded to route traffic between eth0 and eth1. Now i need to help workstations to get DHCP addresses when they connect to the Access point. But who will give an ip address to the Access point knowing that it hasn’t got any ip address itself yet because my DCHP RELAY still doesn’t work and the Cisco Access point can’t work as DHCP server
Instead of trying to use DHCP relay (and it’s still not clear if your ADSL router will serve subnets other than its own), why not install a real DHCP server listening on eth1?
If the AP does not act as dhcp server you can configure the openSUSE server to do this.
Using YaST > Software Management add the packages
dhcp-server
yast2-dhcp-server
You can then configure the service via YaST > DHCP Server