?
Solved

network configuration, dhcprealy, routing

Posted on 2004-04-16
1
Medium Priority
?
280 Views
Last Modified: 2010-03-18
I install Linux (Suse distribution). I want to configure server that work as a router. I set the configuration file as follows:

#
# Network configuration for basic server
#
case ”$1” in
      start)
            echo "Starting the network"
            #
            # 1. Hostname
            #
            hostname server17
            #
            # 2. The loopback interface
            #
            ifconfig lo 127.0.0.1
            route add 127.0.0.1 lo
            #
            # 3. The ethernet interfaces
            #
            IPaddr_ext="192.168.149.17"
            Ipaddr_int="192.168.149.177"
            #  Get XXX from the note 'ServerIPaddresses'
            ifconfig eth0 $IPaddr_ext netmask 255.255.255.128
            ifconfig eth1 $IPaddr_int netmask 255.255.255.248
            #
            # 4. The default gateway
            #
            route add default gw 192.168.149.1   #<- this is my dhcp server
            #
            # Enable routing
            #
            echo 1 > /proc/sys/net/ipv4/ip_forward
            ;;
      stop)
            echo ”Stopping the network”
            ifconfig eth0 down
            ifconfig eth1 down
            ifconfig lo down
            ;;
esac


I started dhcprelay. The clients connected to my server don't get IP addresses.

Thans for any help
Best regards

Adam
0
Comment
Question by:adamgasior
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
brabard earned 210 total points
ID: 10848005
The mechanism of dhcpreley is your dhcpd have to listen on 192.168.149.177:bootps , to forward dhcp requests comming to eth1to 192.168.149.1 and to forward the obtaining dhcp information back to the client trough eth1 .
So 2 most possible reasons are dhcpd on eth1 in not listening , or - dhcp server on 192.168.149.1 is not configured with proper pools/permitions .
The best way to find the problem is to use tcpdump on both machines to see what happen with packets .
0

Featured Post

Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question