for Dhcp and dns i use dnsmasq (see wiki),for vpn i have openvpn (server) running
Hello,
I configure static ip on all interface, but not possible to use wan interface.
For wan connexion, I must use a lan port.
When I configure and plug wan interface, no internet connexion (no led work on wan interface)
Do you have an idea for solved this issue ?
How is possible to disable WLAN interface
Thank you for your help
Can you plwase make
ip a
?
Blockquote
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group defaul t 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
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP gr oup default qlen 1000
link/ether a2:e3:2f:53:70:f0 brd ff:ff:ff:ff:ff:ff
3: wan@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether a2:e3:2f:53:70:f0 brd ff:ff:ff:ff:ff:ff
4: lan0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 08:02:f3:45:63:4e brd ff:ff:ff:ff:ff:ff
inet 192.168.101.254/24 brd 192.168.101.255 scope global lan0
valid_lft forever preferred_lft forever
5: lan1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 08:02:f3:45:34:69 brd ff:ff:ff:ff:ff:ff
inet 192.168.97.254/24 brd 192.168.97.255 scope global lan1
valid_lft forever preferred_lft forever
6: lan2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 08:02:f3:45:2e:90 brd ff:ff:ff:ff:ff:ff
inet 192.168.19.254/24 brd 192.168.19.255 scope global lan2
valid_lft forever preferred_lft forever
7: lan3@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 08:02:f3:76:f3:35 brd ff:ff:ff:ff:ff:ff
inet 192.168.57.1/24 brd 192.168.57.255 scope global lan3
valid_lft forever preferred_lft forever
8: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qle n 1000 link/ether 00:08:22:00:b9:fb brd ff:ff:ff:ff:ff:ff
When a connect an equipment on same switch that lan0. I have some issue for resolve dns and access to bpi-R2 or internet.
With same configuration on a BPI-R1 i don’ have issue
Thank you for your help
are all ports connected to switch with/without vlan?
All lan port are connected to switch vlan are enable on switch
Each port has separate vlan? Have you tried connecting only 1/2 ports to the switch?
each port has separate vlan.
I make a test with only 2 ports connected to switch but I have same issue
I used kernel 4.14.36-bpi-r2-main
Do you used tagged frames between switch and r2 (set ip to this vlan) or vlans only inside switch (port vlan-id)?
vlan are only inside switch
mhm, every port has its own ip-subnet, different mac-adress and not directly bridged together so i have currently no idea whats wrong…
can you connect the r2 on these ips over the switch?
Yes only wan ip is directly connected to my internet access, if I use wan port no connexion to internet.
Maybe make tests with another kernel
So you can access r2 but not internet? These traffic has to be routed and also need nat if you have only 1 public ip. Default-gateway on clients need to be r2,on r2 next hop from your isp
I have access to internet if I configure lan3 with ip for internet if I configure wan interface no internet (no led on wan interface)
Another issue with lan0 a laptop obtain an IP from DHCP server on R2, but not possible to access to R2 or ping R2.
Thank you.
Tomorrow I upgrade my kernel to 4.14.62
4.14.62 contains second gmac…so you have to set eth1 to up before configure wan
Yes I see that, but with this update all lan interface are ok.
For use wan
On /etc/network/interfaces
auto eth1
iface eth1 inet manual
pre-up ip link set $IFACE up
post-down ip link set $IFACE down
After configure wan
And same for eth0
?
I have access to all service DNS, SSH. But after add lan3 for internet access, I lost DNS and SSH.
I think maybe issue is when routing is activate