You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a strange issue with cangw and 2 virtual CANs.
cat /etc/network/interfaces.d/vcan0
auto vcan0
iface vcan0 inet manual
pre-up /sbin/ip link add dev $IFACE type vcan
pre-up /sbin/ip link set dev $IFACE mtu 16
up /sbin/ifconfig $IFACE up mtu 16
down /sbin/ifconfig $IFACE down
post-up /usr/bin/cangw -A -s vcan0 -d can0 -e -f 98DA00F1:DFFF00FF
post-up /usr/bin/cangw -A -s can0 -d vcan0 -e -f 98DAF100:DFFFFF00
cat /etc/network/interfaces.d/vcan1
auto vcan1
iface vcan1 inet manual
pre-up /sbin/ip link add dev $IFACE type vcan
pre-up /sbin/ip link set dev $IFACE mtu 16
up /sbin/ifconfig $IFACE up mtu 16
down /sbin/ifconfig $IFACE down
post-up /usr/bin/cangw -A -s vcan1 -d can1 -e -f 98DA00F1:DFFF00FF
post-up /usr/bin/cangw -A -s can1 -d vcan1 -e -f 98DAF100:DFFFFF00
Nothing looks wrong here.
You get traffic from can0 that is routed to vcan0 and you get traffic from vcan1 that is routed to can1.
There is no connection between *can0 and *can1 - or is there some userspace application for this?
Hello.
I have a strange issue with cangw and 2 virtual CANs.
cat /etc/network/interfaces.d/vcan0
cat /etc/network/interfaces.d/vcan1
My cangw rules works strange:
Some of mine packets go to second virtual interface, but should go to first one.
Very strange...
Or my rules are bad?
The text was updated successfully, but these errors were encountered: