On Thursday, November 2, 2017 at 7:04:06 PM UTC+11, Casper H.S. Dik wrote:
# ipadm
Thanks for your response. This is sort of what I had already tried,
but with 192.168.1.100 as the interface address as this is what the
host is supposed to be. I've checked this with the device running on
a Windows machine. And the gateway is 192.168.1.1. It is confusing
because both addresses really refer to the same device it seems.
I have been using a different huawei modem for PPP up till now:
# ipadm
NAME CLASS/TYPE STATE UNDER ADDR
lo0 loopback ok -- --
lo0/v4 static ok --
127.0.0.1/8
lo0/v6 static ok -- ::1/128
sppp0 ip ok -- --
sppp0/? static ok -- 10.90.144.91->192.168.1.1
This 192.168.1.1 is associated with a different modem/PPP setup not
the one I am trying to get set up with the usbecm device.
So, after plugging the device in, I have this:
# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet unknown 0 unknown e1000g0
net1 Ethernet down 10 full usbecm2
# dladm show-phys -m
LINK SLOT ADDRESS INUSE CLIENT
net0 primary 0:23:7d:50:6d:6f no --
net1 primary ea:b6:b9:88:92:e0 no --
I don't have a real ethernet network, so can't use the e1000g0 device.
The following was done after unconfiguring the modem/PPP (unplugging).
When I tried what you suggested I got a very interesting error:
# ipadm create-ip usbecm2
ipadm: cannot create interface usbecm2: Insufficient memory
So, I tried just plain old net1:
# ipadm create-ip net1
# ipadm create-addr -T static -a local=
192.168.1.100/24 net1/v4static1
# ipadm
NAME CLASS/TYPE STATE UNDER ADDR
lo0 loopback ok -- --
lo0/v4 static ok --
127.0.0.1/8
lo0/v6 static ok -- ::1/128
net1 ip ok -- --
net1/v4static1 static ok --
192.168.1.100/24
This looks fine so far, so I try to ping 192.168.1.1 and the problem
here is that ARP Who is 192.168.1.1 is being sent out, and it seems
the device isn't replying. I honestly don't if this is what is supposed
to happen or not. I might try to add to the arp table, the ethernet
address which appears on the 'dladm show-phys -m' output and see if
that works.
As you probably know, these devices normally appear, initially, as
storage, and they have to be 'switched' to 'rndis' mode. I assume
the usbecm driver is doing this.
And in answer to your questions, I don't think there is 'another'
host, like in a PPP link, since it is simply a USB device masquerading
as in ethernet interface. That is the extent of my knowledge.
Noel Hunt