You are not logged in.
Hi,
I followed this wiki page:
https://wiki.archlinux.org/index.php/Dhcpd
And for the most part it seems to work (the client recieves an IP address using DHCPCD).
Except the client has no internet access.
Here is my /etc/dhcpd.conf:
option domain-name-servers 8.8.8.8, 8.8.4.4;
option subnet-mask 255.255.255.0;
option routers 139.96.30.100;
subnet 139.96.30.0 netmask 255.255.255.0 {
interface enp3s0;
range 139.96.30.150 139.96.30.250;
}
What I am hoping to achiev, is basically a daisy-chain.
The first computer has two interfaces, designated enp3s0 and enp5s0 according to 'ip a'.
Interface enp5s0 is hooked up to the router, while enp3s0 is hooked up to the client computer (both via ethernet).
On the client computer a 'ping -c 1 google.com' takes a good few seconds to say "ping: unknown host google.com".
Any ideas, help or suggestions appreciated!
Facepalm.
Offline
Post the output of the following commands on the client:
ip a s
ip r s
cat /etc/resolv.conf
Also, are you sure that address range (139.96.30.0/24) in your dhcpd.conf is correct? That would usually be a private address range (eg, 192.168.1.0/24) and the router would Source NAT the traffic. Don't take this the wrong way, but if you're in a position to have a public /24 allocation, then I would expect you would know how to setup and troubleshoot basic connectivity.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Also, are you sure that address range (139.96.30.0/24) in your dhcpd.conf is correct?
I am not sure what correct (or incorrect) would be, so no?
That would usually be a private address range (eg, 192.168.1.0/24) and the router would Source NAT the traffic.
Are you saying that one of the IPs in the dhcpd.conf should point to the host's router?
Don't take this the wrong way, but if you're in a position to have a public /24 allocation, then I would expect you would know how to setup and troubleshoot basic connectivity.
By public and /24, do you mean 24 WAN IPs?
If so, then no, I do not have 24 WAN IPs allocated to me.
I am a noob is this department, hence I am trying to learn by doing.
One thing I forgot to mention was that on the client, I had to edit the dhcpcd.conf and comment out "require dhcp_server_identifier", to get it to receive an IP.
ip a s:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s1f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 00:14:c2:64:df:47 brd ff:ff:ff:ff:ff:ff
inet6 fe80::2d77:3d84:dce4:bf71/64 scope link tentative
valid_lft forever preferred_lft forever
3: enp3s1f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:14:c2:64:df:46 brd ff:ff:ff:ff:ff:ff
inet 139.96.30.156/24 brd 139.96.30.255 scope global enp3s1f1
valid_lft forever preferred_lft forever
inet6 fe80::9640:f066:e0de:1948/64 scope link
valid_lft forever preferred_lft forever
ip r s:
default via 139.96.30.100 dev enp3s1f1 metric 203
139.96.30.0/24 dev enp3s1f1 proto kernel scope link src 139.96.30.156 metric 203
/etc/resolv.conf:
# Generated by resolvconf
nameserver 8.8.8.8
nameserver 8.8.4.4
Facepalm.
Offline
Have you seen this?
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
By public and /24, do you mean 24 WAN IPs?
If so, then no, I do not have 24 WAN IPs allocated to me.
I am a noob is this department, hence I am trying to learn by doing.
OK, I understand. The article alphaniner linked to will probably be beneficial to you.
Everything you've posted suggests that your DHCP is working fine, however you need to readdress the "internal" side of the router to use an RFC1918 private address range (such as 192.168.1.0/24). The address range you're using now (139.96.30.0/24) is allocated to "National Electric Vehicle Sweden" aka SAAB Motor vehicles.
I would hazard a guess that your router is not Source NAT'ing the outbound traffic (which is explained in that wiki article).
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Have you seen this?
OK, I understand. The article alphaniner linked to will probably be beneficial to you.
I have now, however it has not changed anything after adding the IPtables rules and setting the fwd thing to 1.
Everything you've posted suggests that your DHCP is working fine, however you need to readdress the "internal" side of the router to use an RFC1918 private address range (such as 192.168.1.0/24). The address range you're using now (139.96.30.0/24) is allocated to "National Electric Vehicle Sweden" aka SAAB Motor vehicles.
Well, I changed everything in the config related to 139.X.X.X.X to 192.X.X.X.X, however this does not seem to do anything other than change the address that gets assigned?
I would hazard a guess that your router is not Source NAT'ing the outbound traffic (which is explained in that wiki article).
How do I fix this?
Facepalm.
Offline
What's your router and how is it configured?
Fixed IP or DHCP, if DHCP what IP range does it offer, the gateway, DNS servers, NAT settings ... everything.
1000
Offline
What's your router and how is it configured?
Fixed IP or DHCP, if DHCP what IP range does it offer, the gateway, DNS servers, NAT settings ... everything.
Here is my /etc/dhcpd.conf file:
option domain-name-servers 8.8.8.8, 8.8.4.4;
option subnet-mask 255.255.255.0;
option routers 192.168.1.100;
subnet 192.168.1.0 netmask 255.255.255.0 {
interface enp3s0;
range 192.168.1.150 192.168.1.250;
}
Or do you mean the info from the router that is providing internet access to the host?
Or do you mean something else?
Facepalm.
Offline
> Or do you mean the info from the router that is providing internet access to the host?
Yes, from the device that's actually connected to the internet.
1000
Offline
How do I fix this?
All the information you need is contained in the wiki article previously linked.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline