You are not logged in.

#1 2023-10-04 07:41:48

Derson5
Member
Registered: 2010-07-29
Posts: 34

Can't see any network in computer connected to made by me router

I'm trying to make a router from one computer and hide the other behind it as a server. The problem is that the second computer does not see the network at all.
I tried to use this as reference https://wiki.archlinux.org/title/router
I made two fresh installs on both machines.
On router site (I used this as it have 4xIntel i225-V B3 2.5GRJ45 LANs):
1. systemctl enable systemd-networkd.service
2. systemctl enable systemd-resolved.service
3. Create 10-extern0.link

[Match]
MACAddress=

[Link]
Description=Connecting with outside world router

4. Create 15-intern0.link

[Match]
MACAddress=

[Link]
Description=My server
Name=intern0

5. Crate 20-wired.network

[Match]
Name=extern0

[Network]
DHCP=yes

6. Crate 25-wired.network

[Match]
Name=intern0

[Network]
Address=10.0.0.1/24
Gateway=10.0.0.1
DNS=10.0.0.2

7. Installed dnsmasq as DHCP server and changed it configuration /etc/dnsmasq.conf:

port=5353
interface=intern0
dhcp-range=10.0.0.2,10.0.0.255,255.255.255.0,1h

8. Installed bind as DNS server but didn't changed anything in /etc/named.conf

9. systemctl enable nftables.service and tried to allow everything, block everything, flushed every time without success - second machine doesn't show any IP address.

Offline

#2 2023-10-09 12:36:00

Koatao
Member
Registered: 2018-08-30
Posts: 96

Re: Can't see any network in computer connected to made by me router

Hi,

I'm guessing that, in the .link config files, MACAddress has the value of the MAC address of the corresponding interface.

I find it weird to see the DNS of the router to be 10.0.0.2 on the intern0 interface but to include 10.0.0.2 in the DHCP range. 10.0.0.2 should be fixed by some kind of identifier (usually by MAC Address) to the DNS server network interface on the LAN.
I'm pretty sure that the dhcp-range value in the dnsmasq config file is messed up. 10.0.0.255 is the broadcast address of the 10.0.0.0/24 network.

In addition of config files, we need logs and/or output of current actual configuration status.

On the router, please, provide the output of:

ip a
networkctl link
nft list ruleset

If you are confident in your router configuration, you can manually set the network configuration on the other host and check if LAN connectivity is up.

Last edited by Koatao (2023-10-09 13:58:32)

Offline

Board footer

Powered by FluxBB