Scripts/programs to test FreeBSD ethernet interfaces.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
281 B

  1. ifconfig ue0 -vnet testjail
  2. sleep 2
  3. kldunload if_cdce
  4. #ugen=$(usbconfig | grep "Realtek USB" | awk -F: '{ print $1 }')
  5. #usbconfig $ugen power_off
  6. kldload /boot/modules/if_cdce.ko
  7. #usbconfig $ugen power_on
  8. sleep 1
  9. ifconfig ue0 vnet testjail
  10. jexec testjail ifconfig ue0 172.29.5.5