Advertisement
metalx1000

Enable Network Bridge on C.H.I.P. Computer

Mar 30th, 2017
561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #Enable Network Bridge on C.H.I.P. Computer
  2. #[on Desktop]
  3. brctl addbr br0
  4. brctl addif br0 <eth0> #change <eth0> to your network device
  5. ifconfig br0 192.168.1.123 netmask 255.255.0.0
  6. route add default gw 192.168.1.1
  7.  
  8. #[on CHIP]
  9. nmcli connection add type ethernet con-name USB_Bridge ifname usb0
  10. nmcli connection up USB_Bridge
  11.  
  12. #to shutdown [on Desktop]
  13. ifconfig br0 down
  14. brctl delbr br0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement