Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
auto lo
iface lo inet loopback
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.39
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
#Seconda scheda WIFI
auto wlan1
allow-hotplug wlan1
iface wlan1 inet static
address 192.168.43.139
netmask 255.255.255.0
broadcast 192.168.43.255
gateway 192.168.43.1
#iface wlan1 inet dhcp
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
The problem is that if I digit ifconfig the wlan0 has not 192.168.1.39 but 192.168.1.148 (from DHCP server, there is not dhcp reservation on the server)
Can I force to disable DHCP?
I am using wpa_supplicant for the two wifi connection and it works properly... the problem is the IP on the wlan0
Someone can help me?
Thanks
Last edited by coppolino97 on 2018-08-07 20:17, edited 1 time in total.
I don't know why that would happen with that interfaces file. If you bring it down and then back up, what happens? Do you see the dhcp request? What debian ver are you using, and are there any other network gui tools installed?
I'm not sure you should assign two separate default gateways like that, interfaces file needs one only? There are some threads on the board here about it.
I don't know why that would happen with that interfaces file. If you bring it down and then back up, what happens? Do you see the dhcp request? What debian ver are you using, and are there any other network gui tools installed?
I'm not sure you should assign two separate default gateways like that, interfaces file needs one only? There are some threads on the board here about it.
On this odroid there is a derived of Debian (Ubuntu Mate).
@wizard10000
Can you explain me what is the difference between this two command?
After some test I have typed "ip addr" and I have seen that on the Wlan0 there are two IP:
- DHCP ip address is the priority
- Static ip address is the secondary ip address (and I does not see with "ifconfig")
coppolino97 wrote:After some test I have typed "ip addr" and I have seen that on the Wlan0 there are two IP:
- DHCP ip address is the priority
- Static ip address is the secondary ip address (and I does not see with "ifconfig")
Rather than offer a vague (and confusing) summary, why not simply post the full output of `ip a` instead? That would be *much* more useful.
odroid@odroid64:~$ systemctl cat network-wireless@.service
# /etc/systemd/system/network-wireless@.service
[Unit]
Description=Wireless network connectivity (%i)
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ip link set dev %i up
ExecStart=/sbin/wpa_supplicant -B -i %i -c /etc/wpa_supplicant/wpa_supplicant.con
ExecStart=/sbin/dhclient %i
ExecStop=/sbin/ip link set dev %i down
[Install]
WantedBy=multi-user.target
odroid@odroid64:~$ systemctl cat network-wireless@.service
# /etc/systemd/system/network-wireless@.service
[Unit]
Description=Wireless network connectivity (%i)
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ip link set dev %i up
ExecStart=/sbin/wpa_supplicant -B -i %i -c /etc/wpa_supplicant/wpa_supplicant.con
ExecStart=/sbin/dhclient %i
ExecStop=/sbin/ip link set dev %i down
[Install]
WantedBy=multi-user.target
That is very strange — I wrote that file myself some time ago Convergent evolution, perhaps?
Disable that unit file (dhclient.service is not enabled):
i have the dhclient active for my wlan0, So will I disable dhcp with before command right?
Probably I did not say you that I am using wpa_supplicant to manage the wireless connection of wlan0 and wlan1...becouse there are two wifi cards connected to this odroid.
Is it possible manage two wifi cards as client? They will connect to two different wireless network or it is better one as client and the other on as AP?
Thanks
coppolino97 wrote:But in this way Will not turn off all service about the wireless connectivity?
No because you also have networking.service (which is configured via /etc/network/interfaces) controlling your connections.
If you want to configure your connections via /etc/network/interfaces then networking.service is the only (network related) unit file that needs to be enabled.
Bolo wrote:Is it possible manage two wifi cards as client? They will connect to two different wireless network or it is better one as client and the other on as AP?
I think so but I'm not sure, I've never tried to set up an access point.
Sorry @Head_on_a_Stick if I did not write a replay for a few days but I haven't time to try this on my odroid board.
Today I have tried with this command:
in the file "systemctl cat network-wireless@.service"?
If you want to use network-wireless@.service (rather than /etc/network/interfaces & networking.service) then replace the `dhclient` lines with commands to assign the IP addresses you want to use, like this: