Solved

DHCP

Posted on 2004-09-25
6
376 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
  • 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now