Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
this is a deb system. so that's the terminology that i'll be using.
what i'm looking at doing is setting up my laptop to act as a dhcp3-server, for one install of a base system. the system that i'm installing to is a soekris box, and will need to use tftpd.
the basic how to that i found on the soekris mailing list, for setting this up, tells me to make sure that my dhcpd server is running properly. so i've been stuck for the last couple of hours trying to figure it out.
the laptop has eth0 (dhcpd server), and ath0 (wireless). i'm testing it out on the workstation's extra nic.
if i put a gateway in the /etc/network/interfaces for eth0, then i get network unreachable when i try and bring up the interface. if i don't have that, then i can bring it up. so i don't have it.
when i do an ifconfig, eth0 is UP BROADCAST MULTICAST, yet no RUNNING.
i don't need this to get to the outside, yet i'm getting nothing for an acknowledgement, DHCPACK, on the workstation.
i don't want to have to set up the dhcp on my server for something that will only be used once, maybe twice at most.
I've never set up tftpd, but I have set up a few dhcpd servers. One hint... your eth0 needs to have a static IP if it's going to be a dhcpd server. Gateway should be immaterial.
this is the config, /etc/dhcp3/dhcp.conf-
subnet 10.5.5.0 netmask 255.255.255.224 {
range 10.5.5.2 10.5.5.5;
}
the authoritative is set, so i don't have to play with that.
this is the ifconfig-
eth0 Link encap:Ethernet HWaddr 00:10:A4:84:B4:F4
inet addr:10.5.5.1 Bcast:10.5.5.31 Mask:255.255.255.224
inet6 addr: fe80::210:a4ff:fe84:b4f4/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:17 dropped:0 overruns:0 carrier:17
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:1350 (1.3 KiB)
and the results of trying to ping the wireless card in the same system.
ping -I eth0 192.168.1.100
PING 192.168.1.100 (192.168.1.100) from 10.5.5.1 eth0: 56(84) bytes of data.
From 10.5.5.1 icmp_seq=1 Destination Host Unreachable
From 10.5.5.1 icmp_seq=2 Destination Host Unreachable
From 10.5.5.1 icmp_seq=3 Destination Host Unreachable
and since i have set up dhcp servers before also, yet they all had another way out with a similar class c number. this is why it is such a stumper to me.
May 5 21:25:36 styx dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 16
May 5 21:25:52 styx dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
May 5 21:25:59 styx dhclient: No DHCPOFFERS received.
May 5 21:25:59 styx dhclient: No working leases in persistent database - sleeping.
May 5 21:25:33 localhost dhcpd: DHCPDISCOVER from 00:11:2f:24:fb:c4 via eth0
May 5 21:25:33 localhost dhcpd: DHCPOFFER on 190.5.5.30 to 00:11:2f:24:fb:c4 via eth0
May 5 21:25:49 localhost dhcpd: DHCPDISCOVER from 00:11:2f:24:fb:c4 via eth0
May 5 21:25:49 localhost dhcpd: DHCPOFFER on 190.5.5.30 to 00:11:2f:24:fb:c4 via eth0
so the dhcp server is listening to the discovers, yet no offer is being accepted.
this is really messing me up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.