Solved

DHCP

Posted on 2004-09-25
6
417 Views
Last Modified: 2010-03-18
i need help on setting up my dhcp on my linux...

i have static ip from isp which is 214.123.121.210, netmask 255.255.255.252, gateway 214.123.121.209

in my linux i have 2 network card where eth0 is connect to the modem

and eth1 is connect to router . i want to enable the dhcp for eth1

here is my dhcp setting...could you check what is wrong here?

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;


subnet 192.168.1.0 netmask 255.255.255.0 {


# --- eth1
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;

      option nis-domain            "mydomain.com";
      option domain-name            "mydomain.com";
      option domain-name-servers      192.168.1.1;

      option time-offset            -18000;

      range dynamic-bootp 192.168.1.2 192.168.1.254;

      }



0
Comment
Question by:lilie795
[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
  • 2
  • 2
6 Comments
 

Author Comment

by:lilie795
ID: 12150477
and after i use cross cable to connect to a single pc from eth1, the sending packet is bigger than receiving ( in network status of the pc which is installed XP)...why is that?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12151633
With two network interfaces in a machine and only a single subnet declaration in dhcpd.conf you'll need to restrict dhcpd to only use your inside interface. This is done by  specifying the interface(s) the dhcpd should use as arguments to the dhcpd command (dhcpd eth1).  On a RedHat system or similar editing /etc/sysconfig/dhcpd and setting "DHCPDARGS=eth1" will cause the service to start with that restriction. Other systems would require an edit to the boot time init script in /etc/rc.d/init.d.

I have no idea what you are talking about in your comment.
0
 

Author Comment

by:lilie795
ID: 12153634
the problem is...from eth1 to a single pc in my LAN, i connect it by using cross cable...but the connection in lan is slow. for example in lan i check the network traffic. and i see the sent packet is bigger size than recieve packet. which part is the problem actually...any idea?
0
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 12155400
It isn't unusual to have a link mode negotitation problme when using a cross-over cable. What happens there is that one end of the link is running in Half Duplex and the other in Full Duplex. Such a link will work, but transfer speeds will be very slow, perhaps in the 10's of Kb/sec rather than the normal 10Mb/sec  (for a 100Mpbs link). Placing a hub or switch in between the two will usually solve the problem, or you can force each end of the link to the same mode.  On the Linux system many of the NIC's one might use can be interrogated or set with mii-tool.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 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