sebt3
homebrew player (P. & C.)
I wanted usbnet for my pyra to help with the developpement flow.
I bought this :
[ link ]
Setting up was a breath,
On my desktop I made a /etc/network/interfaces.d/usb :
And on the pyra, I made a /etc/network/interfaces.d/usbnet :
And after starting the interfaces on both, I got it working
I bought this :
[ link ]
Setting up was a breath,
On my desktop I made a /etc/network/interfaces.d/usb :
allow-hotplug enp0s20f0u3u1
mapping hotplug
script grep
map enp0s20f0u3u1
iface enp0s20f0u3u1 inet static
address 192.168.2.14
netmask 255.255.255.0
broadcast 192.168.2.255
up echo 1 > /proc/sys/net/ipv4/ip_forward
up iptables -P FORWARD ACCEPT
up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24
down echo 0 > /proc/sys/net/ipv4/ip_forward
down iptables -t nat -F POSTROUTING
mapping hotplug
script grep
map enp0s20f0u3u1
iface enp0s20f0u3u1 inet static
address 192.168.2.14
netmask 255.255.255.0
broadcast 192.168.2.255
up echo 1 > /proc/sys/net/ipv4/ip_forward
up iptables -P FORWARD ACCEPT
up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24
down echo 0 > /proc/sys/net/ipv4/ip_forward
down iptables -t nat -F POSTROUTING
And on the pyra, I made a /etc/network/interfaces.d/usbnet :
auto usb0
iface usb0 inet static
address 192.168.2.15
netmask 255.255.255.0
gateway 192.168.2.14
iface usb0 inet static
address 192.168.2.15
netmask 255.255.255.0
gateway 192.168.2.14
And after starting the interfaces on both, I got it working