Hi,
I have a raspberry with only one lan-interface.
I have tried to follow the documentation on:
I have tree networks.
-
The "lan" is only for backup purposes to connect my Desktop localy to the device in case the network connections do fail
-
The "intranet" is routet to my Intranet, where also my Desktop Computer is attached to.
-
The "gwlan", which is the network for my "Guest WLAN". "gwlan" has VLAN 114.
Generally, the connection works, "intranet" and "gwlan" get IP-addresses from the related dhcp-server of my central router.
For testing, I have deactivated the "intranet", to make sure all communication runs through "gwlan".
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
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 fq_codel state UP qlen 1000
link/ether b8:27:eb:51:1f:86 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fd5e:b1d3:bb3e::1/60 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::ba27:ebff:fe51:1f86/64 scope link
valid_lft forever preferred_lft forever
3: gwlan_ap: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether b8:27:eb:04:4a:d3 brd ff:ff:ff:ff:ff:ff
inet6 fe80::ba27:ebff:fe04:4ad3/64 scope link
valid_lft forever preferred_lft forever
5: eth0.114@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether b8:27:eb:51:1f:86 brd ff:ff:ff:ff:ff:ff
inet 192.168.114.5/24 brd 192.168.114.255 scope global eth0.114
valid_lft forever preferred_lft forever
inet6 fe80::ba27:ebff:fe51:1f86/64 scope link
valid_lft forever preferred_lft forever
Ping to my router through the "gwlan"-network woks:
ping 192.168.114.1
PING 192.168.114.1 (192.168.114.1): 56 data bytes
64 bytes from 192.168.114.1: seq=0 ttl=64 time=0.713 ms
64 bytes from 192.168.114.1: seq=1 ttl=64 time=0.609 ms
64 bytes from 192.168.114.1: seq=2 ttl=64 time=0.587 ms
64 bytes from 192.168.114.1: seq=3 ttl=64 time=0.582 ms
64 bytes from 192.168.114.1: seq=4 ttl=64 time=0.548 ms
file /etc/config/network:
cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd5e:b1d3:bb3e::/48'
option packet_steering '1'
config interface 'lan'
option device 'eth0'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'intranet'
option device 'eth0'
option proto 'dhcp'
option type 'bridge'
config interface 'intrav6'
option device 'eth0'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
option norelease '1'
option type 'bridge'
option disabled '1'
config interface 'gwlan'
option proto 'dhcp'
option device 'eth0.114'
option metric '2'
option type 'bridge'
config rule
option in 'intranet'
option out 'intranet'
option src '0.0.0.0/0'
option dest '0.0.0.0/0'
option disabled '1'
config rule
option in 'gwlan'
option out 'gwlan'
option src '0.0.0.0/0'
option dest '0.0.0.0/0'
option disabled '1'
config rule6
option in 'intrav6'
option out 'intrav6'
option disabled '1'
config interface 'gwlanv6'
option proto 'dhcpv6'
option device 'eth0.114'
option reqaddress 'try'
option reqprefix 'auto'
option norelease '1'
option disabled '1'
option type 'bridge'
config route
option interface 'intranet'
option target '0.0.0.0/0'
option gateway '192.168.110.1'
option source '192.168.110.17'
option disabled '1'
config route
option interface 'gwlan'
option target '0.0.0.0/0'
option gateway '192.168.114.1'
option source '192.168.114.5'
file /etc/config/wireless:
cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/3f300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
option band '5g'
option channel '36'
option htmode 'VHT80'
option cell_density '0'
option country 'DE'
config wifi-iface 'default_radio0'
option device 'radio0'
option mode 'ap'
option ssid 'FAM Gast'
option encryption 'none'
option ifname 'gwlan_ap'
option network 'gwlan'
file /etc/config/dhcp:
cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
My rounting looks like:
ip r
default via 192.168.114.1 dev eth0.114 src 192.168.114.5 metric 2
192.168.1.0/24 dev eth0 scope link src 192.168.1.1
192.168.114.0/24 dev eth0.114 scope link metric 2
On my SmartPhone I can see the WiFi-Network provided by the device. I can connect and the SmartPhone wants to obtain an IP-Address but does not get one.
The only what I can see in the logs of the device is:
Mon Jun 9 13:56:31 2025 daemon.warn odhcpd[992]: No default route present, overriding ra_lifetime to 0!
Any help apreciated!