I have followed the following tutorial to setup Hotspot on RPi with a 4G Dongle.
For 4G Modem i use Sakis 3g Scripts.
It works fine.
But when I try to connect my PC to the ethernet port of the RPi it doesn't work.
I would like to know what changes would be required to done extra to get dhcp service + internet from ppp0 to be provided through eth0. Changes that would be based on the following tutorial
https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/
In particular I want that devices can connect by wifi to the access point and with an cable to the ethernet port. All connected devices (ap and eth) are on the same subnet 172.24.1.0/24
and get an ip address by DHCP from the RasPi. Also all devices should connect to each other and should be able to go into the internet provided by the 4G dongle.
How can I achieve this?
edit for questions by ingo
- Yes. DHCP Server - dnsmasq is running.
- I am not sure about dhcp available from ppp0 - by the way dnsmasq isn't configured for ppp0.
- I also have got wwan0
- ip addr when ppp0 is up is as follows
pi@Numbers:~ $ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:4c:e7:08 brd ff:ff:ff:ff:ff:ff
inet 169.254.168.1/16 brd 169.254.255.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::f3f2:62b6:8d2b:626/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:19:b2:5d brd ff:ff:ff:ff:ff:ff
inet 172.24.1.1/24 brd 172.24.1.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::ba27:ebff:fe19:b25d/64 scope link
valid_lft forever preferred_lft forever
4: wwan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 00:1e:10:1f:00:00 brd ff:ff:ff:ff:ff:ff
inet 169.254.62.145/16 brd 169.254.255.255 scope global wwan0
valid_lft forever preferred_lft forever
inet6 fe80::b0b4:a7ba:fee8:b03/64 scope link
valid_lft forever preferred_lft forever
5: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 3
link/ppp
inet 100.84.30.212 peer 10.64.64.64/32 scope global ppp0
valid_lft forever preferred_lft forever
DNSMASQ.CONF
interface=wlan0
listen-address=172.24.1.1
bind-interfaces
server=8.8.8.8
domain-needed
bogus-priv
dhcp-range=172.24.1.50,172.24.1.150,12h
Regards Kashyap
ip addr
when ppp0 is up?ip route show
when ppp0 is up?