linux-router
linux-router copied to clipboard
Can't change the network ip address
I'm trying to set a custom network address, but unfortunately it never changes.
I'm running the access point using this command:
sudo ./lnxrouter --ap ap@wlan0 MyAccessPoint -p MyPassPhrase -g 10.10.10.10
When I look at my ip address, I have this:
4: ap@wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether e4:5f:01:5c:51:af brd ff:ff:ff:ff:ff:ff
inet 192.168.4.1/24 brd 192.168.4.255 scope global ap@wlan0
valid_lft forever preferred_lft forever
inet 10.10.10.10/24 brd 10.10.10.255 scope global ap@wlan0
valid_lft forever preferred_lft forever
The first one never changes, regardless of what I give in -g or even if i set -g.
I can ping 10.10.10.10 from the host itself, but not from a connected client.
Concerning the clients, they got an a dress in 192.168.4.0 too:
3: wlp59s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether a8:7e:ea:30:ad:09 brd ff:ff:ff:ff:ff:ff
inet 192.168.4.49/24 brd 192.168.4.255 scope global dynamic noprefixroute wlp59s0
valid_lft 3597sec preferred_lft 3597sec
inet6 fe80::30ce:702d:cbdf:a5cb/64 scope link noprefixroute
valid_lft forever preferred_lft forever