E5776 Huawei route via USB



  • Hello!

    I want to connect my 4G-router Huawei to pfSense via USB. pfSense works in VmWare ESXi 4.1. To use that router under VmWare I had to passthrough PCI device of USB-controller. pfSense have seen router. dmesg output shows it:

    Root mount waiting for: usbus0
    ugen0.2: <huawei technology="">at usbus0
    umodem0: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus0
    umodem0: data interface 0, has no CM over data, has no break
    umass0: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus0
    umass0:  SCSI over Bulk-Only; quirks = 0x0000
    umass0:1:0:-1: Attached to scbus1
    umodem1: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus0
    umodem1: data interface 2, has no CM over data, has no break
    cdce0: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus0
    cdce0: faking MAC addresscd0 at umass-sim0 bus 0 scbus1 target 0 lun 0
    
    cd0: ue0: <huawei mass="" storage="" 2.31="">Removable CD-ROM SCSI-2 device <usb ethernet="">on cdce0
    cd0: 40.000MB/s transfers
    
    cd0: cd present [65536 x 2048 byte records]
    umass1: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus0
    umass1:  SCSI over Bulk-Only; quirks = 0x0000
    umass1:2:1:-1: Attached to scbus2
    umodem2: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus0
    umodem2: data interface 5, has no CM over data, has no break
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
    (probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error
    (probe0:umass-sim1:1:0:0): SCSI status: Check Condition
    (probe0:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    da1 at umass-sim1 bus 1 scbus2 target 0 lun 0
    da1: <huawei tf="" card="" storage="" 2.31="">Removable Direct Access SCSI-2 device
    da1: 40.000MB/s transfers
    da1: Attempt to query device size failed: NOT READY, Medium not present
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 ff ff 0 0 1 0
    (cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
    (cd0:umass-sim0:0:0:0): SCSI status: Check Condition
    (cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR info:ffff asc:11,0 (Unrecovered read error)
    (cd0:umass-sim0:0:0:0): cddone: got error 0x5 back</huawei></huawei></huawei></usb></huawei></huawei></huawei></huawei></huawei></huawei> 
    

    Question: how to setup interface for that router?



  • It works! On the "Interfaces: Assign network ports" I made new interface binded to "ue0". Done.


  • Netgate Administrator

    You will need to be careful with that. Notice in your logs:

    cdce0: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 1.02,="" addr="">on usbus0
    cdce0: faking MAC addresscd0 at umass-sim0 bus 0 scbus1 target 0 lun 0</huawei> 
    

    The cdce(4) driver cannot read the MAC address from the USB device correctly so it makes one up. That's fine but if you ever disconnect it or reboot pfSense it will make up a new MAC address causing trouble. At least that has been my experience with similar devices.

    Steve


Log in to reply