You are not logged in.
I am currently setting up my NAS/Homeserver with the almighty Arch Linux. However, I have been running into some trouble regarding the configuration of the static IP on LAN. Although my server is finally connected to the network using a static profile in netctl, the system is not broadcasting its hostname (set as Homeserver in both the netctl profile and /etc/hosts) and is therefore not showing up in the list of connected devices in my DD-WRT router (ASUS RT-N66U).
cat /etc/netctl/static
Description=Static connection enp1s0.
Interface=enp1s0
Connection=ethernet
IP=static
Address=192.168.2.5/24
Gateway=192.168.2.1
DNS=192.168.2.1
Hostname=Homeserver
Broadcast=192.168.2.255
TimeoutUp=300
TimeoutCarrier=300
ExecUpPost='/usr/bin/ethtool -s enp1s0 wol g'
ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether bc:5f:f4:6e:4d:36 brd ff:ff:ff:ff:ff:ff
Could someone point out what I am currently doing wrong?
Bonus question: what parameters for grep should I use to only output the last two lines of ip link?
Offline
1) If it's a static profile, why should it broadcast a hostname? That's a DHCP-only thing and if your server doesn't request anything from your router it doesn't show up in the list, simple as that.
2) 'ip link | tail -2'
1000
Offline
Cool, thanks for the clarification!
However, just being curious, is there any way to make my system appear in the router's list with active clients (which includes some other static addresses) without enabling DHCP?
Offline
you're better off setting up DHCP reservations by MAC on your router.
the only other way I saw a router recognize machine names was with NetBIOS (samba nmbd) broadcasts. no idea if mdns/avahi would work and don't remember DD-WRT.
Offline