Sample Header Ad - 728x90

Setting up network manually, no dhcp, IPV4 only

0 votes
1 answer
361 views
I’m trying to configure ip (static, so without dhcp), there are some problems that I can't resolve by my self, because I do not understand it in a whole. Sorry if it is already answered, but as I said, I can't find any topic explaining it in a whole. I'm using wpa_supplicant to connect, on a system with openRC as service manager. Here are what I did yet : DNS resolution : /etc/resolve.conf
172.20.10.1
Host name : /etc/hosts
.168.1.150 myname.name.net
Interfaces : /etc/network/interfaces
lo
iface lo inet loopback

auto eth0

auto wlan0
iface wlan0 inet static
    address 192.168.1.150
    netmask 255.255.255.0
    gateway 192.168.1.1
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
-ip a(ddress) : gives me an ip for the interface wlan0, but no netmask, not gateway. -arp :
? (192.168.1.1) at  on wlan0
-ip r(oute)
192.168.1.1 dev wlan0 metric 1 onlink
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.150
With this, I can't connect to a routeur, but looks like I can only send packets,
stackoverflow.com
returns error. My questions are : 1. Why arp is incomplete, and how to fixe it ? 2. Why
a
doesn't print netsmak and gateway for device wlan0 ? 3. What's the use of netmask and gateway ? Thanks to anyone who takes time to answer to an apprentice.
Asked by anothereality444 (1 rep)
Jul 13, 2024, 04:48 PM
Last activity: Jul 13, 2024, 07:34 PM