LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-25-2008, 05:58 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
DHCRELAY setup


Here is the network:

PHP Code:
Router/Firewall/DHCP/SERVER(eth1-192.168.3.1)
  +
  +
  +
Catalyst 2924
  
+
  +
  +
RADIUS/SAMBA/Server/DHCRELAY
  
+
  +
  +
Wireless Clients(192,168.3.0/27
How would I setup a dhcrelay on the server?

PHP Code:
dhcrelay --i eth0 -m 192.168.3.1 
It doesnt work!
 
Old 02-26-2008, 11:03 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well you only have one network there... what network do you want to relay for? the -m command requires an option too, so not suprising it didn't work.
 
Old 02-26-2008, 12:21 PM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Acid_keypie to the rescue. This is the situation:
PHP Code:
router/firewall/dhcp server
       eth1.3
/VLAN3-192.168.3.1
          
+
          +
          +                  (
AP 192.168.3.5)
   
Cisco Catalyst 2924 + + + Cisco Aironet 1200 ++++++++ Wireless Clients
          
+
          +
          +
       
freeRADIUS server 
This was working before until the power cut off in the office. When my wireless clients are authenticated by the RADIUS server they are unable to obtain an ip address from the router/firewall/dhcp server. I got it to work by adding dhcp to the radius server and having it assign ip's like:

PHP Code:
     router/firewall
       eth1.3
/VLAN3-192.168.3.1
          
+
          +
          +                  (
AP 192.168.3.5)
   
Cisco Catalyst 2924 + + + Cisco Aironet 1200 ++++++++ Wireless Clients
          
+
          +
          +
   
freeRADIUS/dhcp server 
so for a better understanding, how would I have setup dhcrelay if I take out the dhcp server from the RADIUS box?
 
Old 02-26-2008, 01:16 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well you would use a dhcp relay if you have the dhcp server on a different network to that where you want to serve dhcp. the only network listed here is 192.168.3.0/27 from your diagram. if you are taking this /27 from the wider /24 then that's not going to play ball, as when the dhcp server on 3.0/24 then that's just going to look like a local request to that network. I've a feeling that you're possibly confusing notional informal assignment of address ranges with formal CIDR defined subnets... is this /27 actually "real" or just the desired ranges for wireless clients?
 
Old 02-26-2008, 01:29 PM   #5
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
PHP Code:
router/firewall/dhcp server
       eth1.3
/VLAN3-192.168.3.1/27
          
+
          +
          +                  (
AP 192.168.3.5/27)
   
Cisco Catalyst 2924 + + + Cisco Aironet 1200 ++++++++ Wireless Clients
          
+
          +
          +
       
freeRADIUS server 
192.168.3.0/27 is the only subnet that I have.
 
Old 02-26-2008, 01:48 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, so there's nothing to need a relay as far as i can see. are you having trouble running the dhcp server on the linux box? tried wireshark (oh yes) on it to see if you get the DHCPDISCOVER messages?
 
Old 02-26-2008, 02:10 PM   #7
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Wireshark to the rescue. It worked before and I have changed nothing on the server(dhcpd.conf) only on the catalyst 2924 to get the vlans working. Ever since that power outage the @#$!@$!#@ stopped working. Thats ok. I do have it working now. I just added dhcp to another box in VLAN 3 and it worked. So I will follow an old american adage " If it works dont @$%$@#% with it"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Webmail setup problem in Thunderbird - Hotmail and Yahoo setup arindom Linux - Software 7 03-25-2008 11:27 AM
Error Message during 802.11b setup for Intersil Card ( prism2_usb ) setup in SoC archak Linux - Wireless Networking 0 10-13-2004 03:21 AM
dhcrelay problem deice Linux - Networking 2 09-23-2004 12:00 PM
[SUSE 9.1 PROF] How can I copy the setup files to my harddisk and start the setup? TheRealFalcon Linux - Distributions 1 08-07-2004 11:49 PM
RedHat 8.0 - dhcrelay, ip forwarding not working klnasveschuk Linux - Networking 1 12-04-2003 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration