Hi here,
I need to add a WAN interface having a static IP address and share it with the LAN. I need a total of 3 WAN ports. For 2 of them, I assigned 2 physical interfaces and it works okay. If I assign 3-rd physical interface for WAN, it works okay as well.
However, I want to free up one Lan port and do something like this.
Since I'm using mwan3, I set up kmod-macvlan.
config device 'veth5'
option name 'veth5'
option type 'macvlan'
option ifname 'eth0'
config interface 'wanc'
option ifname 'veth5'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.2.10'
option metric '10'
WANC is attached to the same firewall group as other wans.
Pinging through this interface gives no results.
tcpdump shows only
12:13:06.260460 ARP, Request who-has 192.168.2.1 tell 192.168.2.35, length 28'
ifconfig shows
veth5 Link encap:Ethernet HWaddr F2:E1:92:5F:AE:29
inet addr:192.168.2.35 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::f0e1:92ff:fe5f:ae29/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:724 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:30860 (30.1 KiB)
Where I should look into? Also, is kmod-macvlan
is a good way to go?
Thanks