S
S
SysUtils2017-04-08 21:03:42
linux
SysUtils, 2017-04-08 21:03:42

How to change the standard ip address of an external Wi-Fi adapter?

Good evening everyone. There is an external Wi-Fi adapter connected to a PC, the computer is connected to a wi-fi router with its network card, and the adapter distributes the Internet from this PC. Everything works, but there is one thing. How to change the address issued when connected to this adapter by other devices? Command ip addr add 192.169.2.1/24 dev wlxc04a002f9202where wlxc04a002f9202- external adapter, changes only the address in ifcconfig and there are times when the Internet stops being distributed after that. By default, the address that is distributed to devices is 10.42.0.1 and dnsmasq hangs in netstat with exactly the same address, therefore, dnsmasq determines what address the adapter and the client connected to it will have. How can it be changed? Dnsmasq starts only when wi-fi is distributed from this adapter, until this moment it is turned off. There is nothing in /etc/dnsmasq.conf but commented out lines, and the settings have never been changed, because I did not use it. Here is what netstat says

tcp        0      0 10.42.0.1:53            0.0.0.0:*               LISTEN      5596/dnsmasq    
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      1013/cupsd      
tcp6       0      0 ::1:631                 :::*                    LISTEN      1013/cupsd      
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           981/avahi-daemon: r
udp        0      0 0.0.0.0:48729           0.0.0.0:*                           981/avahi-daemon: r
udp        0      0 10.42.0.1:53            0.0.0.0:*                           5596/dnsmasq    
udp        0      0 0.0.0.0:67              0.0.0.0:*                           5596/dnsmasq    
udp        0      0 0.0.0.0:68              0.0.0.0:*                           1540/dhclient   
udp        0      0 10.42.0.1:123           0.0.0.0:*                           1359/ntpd       
udp        0      0 192.168.1.24:123        0.0.0.0:*                           1359/ntpd       
udp        0      0 127.0.0.1:123           0.0.0.0:*                           1359/ntpd       
udp        0      0 0.0.0.0:123             0.0.0.0:*                           1359/ntpd       
udp        0      0 0.0.0.0:631             0.0.0.0:*                           1069/cups-browsed
udp6       0      0 :::5353                 :::*                                981/avahi-daemon: r
udp6       0      0 :::36367                :::*                                981/avahi-daemon: r
udp6       0      0 fe80::c24a:ff:fe2f::123 :::*                                1359/ntpd       
udp6       0      0 fe80::2f48:7caa:3f7:123 :::*                                1359/ntpd       
udp6       0      0 ::1:123                 :::*                                1359/ntpd       
udp6       0      0 :::123                  :::*                                1359/ntpd       
raw6       0      0 :::58                   :::*                    7           971/NetworkManager

What do you say? Where to look to change the address?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vreitech, 2017-04-09
@fzfx

not quite clear.
what is the address of the adapter?
all devices should not be given one address 10.42.0.1, each should have its own.
The dhcpd service is responsible for distributing network settings to clients.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question