Go to advanced search

by SurferTim
Thu Aug 02, 2018 4:53 pm
Forum: Troubleshooting
Topic: Wwan and wifi connection priority
Replies: 10
Views: 613

Re: Wwan and wifi connection priority

I haven't tried this with a ppp interface, but I have with other types.

Open /etc/dhcpcd.conf with a text editor and add this at the bottom.

Code: Select all

interface ppp0
metric 500
Reboot.
Check if the metric on the route has changed.
by SurferTim
Thu Aug 02, 2018 4:17 pm
Forum: Troubleshooting
Topic: Wwan and wifi connection priority
Replies: 10
Views: 613

Re: Wwan and wifi connection priority

adi1525 wrote: In another devices where Internet work, there is not default gateway too. It's important to work ?
There is always a default gateway if you can connect to the internet. Your device must know where to forward packets that have a destination IP not on your localnet.
by SurferTim
Thu Aug 02, 2018 3:39 pm
Forum: Troubleshooting
Topic: Wwan and wifi connection priority
Replies: 10
Views: 613

Re: Wwan and wifi connection priority

I don't see a default gateway for wlan0, only ppp0.
by SurferTim
Thu Aug 02, 2018 2:52 pm
Forum: Troubleshooting
Topic: Wwan and wifi connection priority
Replies: 10
Views: 613

Re: Wwan and wifi connection priority

It appears that the ppp0 interface is your gateway. It has a metric of 0. It will be used if the interface is active, regardless of the cash remaining in your account. If possible, set the metric of the ppp0 interface higher than the wlan interface. That way it will use the wlan interface when you a...
by SurferTim
Thu Aug 02, 2018 2:35 pm
Forum: Troubleshooting
Topic: Wwan and wifi connection priority
Replies: 10
Views: 613

Re: Wwan and wifi connection priority

I don't see where your wwan has a default gateway. The wlan0 interface has a gateway. However, I don't understand why there is the second gateway here: 0.0.0.0 192.168.10.1 0.0.0.0 UG 10 0 0 wlan0 0.0.0.0 0.0.0.0 0.0.0.0 U 10 0 0 wlan0 Is 192.168.10.1 the IP of your wireless localnet?
by SurferTim
Wed Aug 01, 2018 7:25 pm
Forum: Troubleshooting
Topic: Raspberry pi 3 time sync on reboot
Replies: 3
Views: 245

Re: Raspberry pi 3 time sync on reboot

marciokoko wrote: So when I saw the July 31st maybe it was still the saved time instead of the ntp updated time.
Most likely.
by SurferTim
Wed Aug 01, 2018 3:15 pm
Forum: Troubleshooting
Topic: apt-get update won't work on older rpi
Replies: 4
Views: 555

Re: apt-get update won't work on older rpi

If you don't have an internet connection, you can't do an update or upgrade.
If you do have an internet connection, maybe your network settings are not correct.
by SurferTim
Wed Aug 01, 2018 2:58 pm
Forum: Troubleshooting
Topic: Raspberry pi 3 time sync on reboot
Replies: 3
Views: 245

Re: Raspberry pi 3 time sync on reboot

The RPi saves the current time on the SD card regularly. When the RPi reboots, it retrieves this saved time, then tries a NTP update. If the NTP update fails, the last time will be kept.
by SurferTim
Wed Aug 01, 2018 12:13 pm
Forum: Networking and servers
Topic: Hotspot bridge
Replies: 3
Views: 579

Re: Hotspot bridge

Using wlan1 as the WAN interface is easy. Connect wlan1 to your WAN AP. Change your masquerade to wlan1 instead of eth0. Edit: Just a word of advice. Try to set your RPi AP on a frequency that is at least 2 channels from your WAN AP channel. That will help minimize interference and may help with net...
by SurferTim
Mon Jul 30, 2018 12:25 pm
Forum: Networking and servers
Topic: Hotspot bridge
Replies: 3
Views: 579

Re: Hotspot bridge

You can use the tutorial here. Use the NAT setup. Don't use the bridge. You can't bridge a wifi client interface to any other network interface.
https://www.raspberrypi.org/documentati ... s-point.md
by SurferTim
Fri Jul 27, 2018 1:55 pm
Forum: Networking and servers
Topic: MAC address of USB adapters change upon reboot
Replies: 6
Views: 422

Re: MAC address of USB adapters change upon reboot

I haven't tried this with ethernet interfaces, but it works with wifi. Create file /etc/udev/rules.d/72-static-name.rules Add these, changing the mac addresses accordingly. ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:c0:ca:96:d8:8b", KERNEL=="e*",NAME="eth0" ACTION=="add", SUB...
by SurferTim
Thu Jul 26, 2018 11:35 am
Forum: Networking and servers
Topic: Networkbridge RasPI and AccessPoint
Replies: 2
Views: 290

Re: Networkbridge RasPI and AccessPoint

What is the notebook IP/netmask? What is the bridge IP/netmask?
by SurferTim
Wed Jul 25, 2018 9:56 pm
Forum: Troubleshooting
Topic: Bridge eth0 and eth1 under stretch
Replies: 1
Views: 1805

Re: Bridge eth0 and eth1 under stretch

I haven't tried it yet with two ethernet interfaces, but this should work. Install bridge utilites. sudo apt-get install bridge-utils Create a bridge. sudo brctl addbr br0 Add eth0 and eth1 to the bridge. sudo brctl addif br0 eth0 eth1 Open /etc/dhcpcd.conf with a text editor and add this line. deny...
by SurferTim
Wed Jul 25, 2018 9:47 pm
Forum: Networking and servers
Topic: MAC address of USB adapters change upon reboot
Replies: 6
Views: 422

Re: MAC address of USB adapters change upon reboot

What you are experiencing is the usb numbers changing for each mac address? What usb numbers are you seeing? Like usb0 and usb1?
by SurferTim
Wed Jul 25, 2018 1:08 pm
Forum: Networking and servers
Topic: changing DNS-servers
Replies: 4
Views: 5380

Re: changing DNS-servers

This page might help you find your setting.
https://wiki.debian.org/NetworkConfigur ... ameservers
by SurferTim
Sat Jul 21, 2018 7:11 pm
Forum: Networking and servers
Topic: Need help to make an hostapd AP on an RPI2 Raspbian Stretch
Replies: 30
Views: 4401

Re: Need help to make an hostapd AP on an RPI2 Raspbian Stretch

That is a good sign. It would appear the dns server (or servers) may be malfunctioning. If you remove the static settings, does the dnsmasq service show a dhcp request? sudo service dnsmasq status It should show a dhcp request on wlan0. Edit: The reason I used a plural (servers) above is in all my y...
by SurferTim
Sat Jul 21, 2018 5:32 pm
Forum: Networking and servers
Topic: Need help to make an hostapd AP on an RPI2 Raspbian Stretch
Replies: 30
Views: 4401

Re: Need help to make an hostapd AP on an RPI2 Raspbian Stretch

Darkyere wrote:
Sat Jul 21, 2018 4:47 pm
And after setting

IP address: 192.168.1.8
Subnet mask: 255.255.255.0
Default gateway: 192.168.10.1

Preferred DNS server: 8.8.8.8
Those network settings should cause the gateway to be unreachable. The gateway should be in the same localnet as the IP (192.168.1.x).
by SurferTim
Sat Jul 21, 2018 1:29 pm
Forum: Networking and servers
Topic: Need help to make an hostapd AP on an RPI2 Raspbian Stretch
Replies: 30
Views: 4401

Re: Need help to make an hostapd AP on an RPI2 Raspbian Stretch

Your post shows hostapd service is working. You have a client Jul 21 11:13:35 raspberrypi hostapd[702]: wlan0: STA 00:22:fa:8d:e8:4c IEEE 802.11: associated I would suspect either your masquerade or dns isn't working. Is your internet access totally unavailable, or just by domain name? Edit: Check t...
by SurferTim
Sat Jul 21, 2018 12:42 pm
Forum: Networking and servers
Topic: Need help to make an hostapd AP on an RPI2 Raspbian Stretch
Replies: 30
Views: 4401

Re: Need help to make an hostapd AP on an RPI2 Raspbian Stretch

Did you add this to your entry in dhcpcd.conf?

Code: Select all

interface wlan0
    static ip_address=192.168.10.1/24
    nohook wpa_supplicant
Note the new addition of the nohook line.
by SurferTim
Fri Jul 20, 2018 11:39 am
Forum: Networking and servers
Topic: Need help to make an hostapd AP on an RPI2 Raspbian Stretch
Replies: 30
Views: 4401

Re: Need help to make an hostapd AP on an RPI2 Raspbian Stretch

I had problems getting hostapd service to run with wlan1 as the AP. I had to use wlan0 for the AP. I used this to change the interface names. Create file /etc/udev/rules.d/72-static-name.rules ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:c0:ca:96:d8:8b", KERNEL=="w*",NAME="wlan...
by SurferTim
Thu Jul 19, 2018 3:15 am
Forum: Networking and servers
Topic: How to setup static eth0 and dhcp wlan0 on stretch?
Replies: 13
Views: 32228

Re: How to setup static eth0 and dhcp wlan0 on stretch?

mattpenna wrote: Hi SurferTim I followed your instructions but for some reason my network doesnt show up when I search for it on other devices. Do you know what could be wrong?
Yes. If you are using the same wifi device for both an AP and a client, you will find it slow and unreliable.
by SurferTim
Mon Jul 16, 2018 3:43 pm
Forum: Troubleshooting
Topic: Yet another "Wifi country is not set" problem
Replies: 15
Views: 13048

Re: Yet another "Wifi country is not set" problem

Mine has worked fine with the RPi Zero W and the RPi3B and B+. Maybe I am just lucky?
by SurferTim
Mon Jul 16, 2018 11:24 am
Forum: Troubleshooting
Topic: hostapd problems after upgrade to 4.14.50
Replies: 69
Views: 10245

Re: hostapd problems after upgrade to 4.14.50

Did you file a bug report?
by SurferTim
Mon Jul 16, 2018 1:56 am
Forum: Beginners
Topic: [SOLVED]: LAN->PI->Wifi->Internet
Replies: 3
Views: 295

Re: LAN->PI->Wifi->Internet

Considering you already established a wifi connection to your router: Set a static IP on the ethernet interface. Open /etc/dhcpcd.conf and add interface eth0 static ip_address=192.168.4.1/24 If you want a dhcp server on the ethernet interface sudo apt-get install dnsmasq sudo mv /etc/dnsmasq.conf /e...
by SurferTim
Sun Jul 15, 2018 4:35 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3 B+ Wifi Wont work
Replies: 29
Views: 19064

Re: Raspberry Pi 3 B+ Wifi Wont work

Code: Select all

channel 60 (5300 MHz), width: 20 MHz, center1: 5300 MHz
I don't think the onboard wifi supports A mode.

Go to advanced search