LinuxQuestions.org
Review your favorite Linux distribution.
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 12-04-2003, 04:46 PM   #1
klnasveschuk
Member
 
Registered: Jun 2003
Location: Plymouth, Massachusetts
Distribution: CentOS, Slackware, Redhat, Ubuntu
Posts: 52

Rep: Reputation: 15
RedHat 8.0 - dhcrelay, ip forwarding not working


Hello,
I have a problem with a stock RedHat 8.0 installation on an HP/COMPAQ ML330 G3 getting IP forwarding and DHCP relay to work.

First, this is a simple setup on a Slackware 8/9 system, but for this application I wanted to be consistent and use RedHat 8.0 for several servers. This is a multihomed system that acts as a router between subnets, LDAP slave and Samba 3.0 server for Windows clients. It also needs to forward DHCP brodcasts to the DHCP server. Samba works, LDAP replicates, but passing data through the server doesn't.

These are the steps I took to get a 2 Nic machine to act as a router:

enable forwarding:

echo 1>/proc/sys/net/ipv4/ip_forward
echo 1>/proc/sys/net/ipv4/tcp_syncookies

output of iptables:

[root@DECAS2 root]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@DECAS2 root]#

command to start DHCP relay:

dhcrelay -i eth0 -i eth1 172.16.0.10

output:

[root@DECAS2 root]# dhcrelay -i eth0 -i eth1 172.16.0.10
Internet Software Consortium DHCP Relay Agent V3.0pl1
Copyright 1997-2000 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Listening on LPF/eth1/00:04:75:ef:6b:cd
Sending on LPF/eth1/00:04:75:ef:6b:cd
Listening on LPF/eth0/00:0b:cd:cf:f4:4b
Sending on LPF/eth0/00:0b:cd:cf:f4:4b
Sending on Socket/fallback
[root@DECAS2 root]#

By all rights this should work. Incidentally, previously I had a Slackware box in here to do this. It was simple to enable IP forwarding and dhcp relay.

I can't get this to work on RedHat 8.0. Anyone have any suggestions?


Kent N
 
Old 12-04-2003, 07:40 PM   #2
klnasveschuk
Member
 
Registered: Jun 2003
Location: Plymouth, Massachusetts
Distribution: CentOS, Slackware, Redhat, Ubuntu
Posts: 52

Original Poster
Rep: Reputation: 15
I answered my own question. This is a syntax error.
This doesn't work:
echo 1>/proc/sys/net/ipv4/ip_forward
echo 1>/proc/sys/net/ipv4/tcp_syncookies

This does work:
echo 1 >/proc/sys/net/ipv4/ip_forward
echo 1 >/proc/sys/net/ipv4/tcp_syncookies

Notice the space after the "1".

Now all is well in Who-ville.
 
  


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
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 12:10 PM
port forwarding? not working?... snip128 Linux - Networking 1 10-07-2005 09:49 AM
X Forwarding not working as planned Neruocomp Linux - Networking 2 02-25-2005 11:09 AM
dhcrelay problem deice Linux - Networking 2 09-23-2004 12:00 PM
port forwarding NOT working :( Avatar Linux - Networking 19 04-23-2004 01:53 AM

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

All times are GMT -5. The time now is 01:49 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