Re: cdce0 in ifconfig
On 2015-05-04, Zé Loff zel...@zeloff.org wrote: On Sun, May 03, 2015 at 11:26:26AM +, Jona Joachim wrote: On 2015-04-29, Cristián Edwards cri...@gmail.com wrote: Problem is that only the ugen driver is present... so I think there is no chance of speaking with the modem. Will read the link thoruoughly You have a cdce device. As sthen@ already kindly suggested, you should be able to just do dhclient cdce0. Please understand that this is a bridge device, connected to a modem, as the OP clearly stated. If there is nothing on the other end of the bridge, what's the point of sending DHCP requests? I have a 3g device on my netbook. If I put it in the right mode I get a cdce. I then run dhclient and get an IP address from the mobile network. YMMV but in my case this works perfectly, no messing about with fake serial interfaces to run a PPP session with my device that then gets converted to 3g.
Re: cdce0 in ifconfig
On Tue, May 05, 2015 at 06:59:41PM +, Stuart Henderson wrote: On 2015-05-04, Zé Loff zel...@zeloff.org wrote: On Sun, May 03, 2015 at 11:26:26AM +, Jona Joachim wrote: On 2015-04-29, Cristián Edwards cri...@gmail.com wrote: Problem is that only the ugen driver is present... so I think there is no chance of speaking with the modem. Will read the link thoruoughly You have a cdce device. As sthen@ already kindly suggested, you should be able to just do dhclient cdce0. Please understand that this is a bridge device, connected to a modem, as the OP clearly stated. If there is nothing on the other end of the bridge, what's the point of sending DHCP requests? I have a 3g device on my netbook. If I put it in the right mode I get a cdce. I then run dhclient and get an IP address from the mobile network. YMMV but in my case this works perfectly, no messing about with fake serial interfaces to run a PPP session with my device that then gets converted to 3g. (I'll make this quick and then leave the thread, as at this point it is mostly all noise and no signal as far as the OP's problem is concerned) About a week ago Cristian said DHCP hadn't worked, nor setting a static address, for that matter, so your mileage does indeed vary, hence my reply. No one said anything about PPP sessions over serial interfaces. In the thread I linked to I only refer to ucom devices as in my case I need them to issue two AT commands (1) to bring the radio up and (2) tell the modem to establish the link by activating the appropriate PDP profile (probably this is what you mean by putting it in the right mode). Indeed, after the 3G link is up all I have to do is run dhclient on cdce0, but I need the serial interface to bring up the modem first. Since Cristian said dhclient didn't work, I assume he needs to do the same. Cheers Zé --
Re: cdce0 in ifconfig
On Sun, May 03, 2015 at 11:26:26AM +, Jona Joachim wrote: On 2015-04-29, Cristián Edwards cri...@gmail.com wrote: Problem is that only the ugen driver is present... so I think there is no chance of speaking with the modem. Will read the link thoruoughly You have a cdce device. As sthen@ already kindly suggested, you should be able to just do dhclient cdce0. Please understand that this is a bridge device, connected to a modem, as the OP clearly stated. If there is nothing on the other end of the bridge, what's the point of sending DHCP requests? --
Re: cdce0 in ifconfig
On 2015-04-29, Cristián Edwards cri...@gmail.com wrote: Problem is that only the ugen driver is present... so I think there is no chance of speaking with the modem. Will read the link thoruoughly You have a cdce device. As sthen@ already kindly suggested, you should be able to just do dhclient cdce0.
Re: cdce0 in ifconfig
On older modems a configuration with these similar values worked properly: http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man4/umsm.4?query=umsm sec=4 On Wed, Apr 29, 2015 at 1:02 PM, Fred open...@crowsons.com wrote: On 04/29/15 16:34, Cristián Edwards wrote: Hello, How to configure cdce0 device in OpenBSD? Dmesg: cdce0 at uhub1 port 1 configuration 2 interface 0 Huawei Technologies HUAWEI Mobile rev 2.00/0.00 addr 2 cdce0: address 00:a0:c6:60:85:70 ugen0 at uhub1 port 1 configuration 2 Huawei Technologies HUAWEI Mobile rev 2.00/0.00 addr 2 cdce0: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500lladdr 00:a0:c6:60:85:70priority: 0 ifconfig: cdce0: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500 lladdr 00:a0:c6:60:85:70 priority: 0 Hardware: http://consumer.huawei.com/en/solutions/m2m-solutions/products/tech-specs/mu6 09-en.htm Regards, Cristian something like: ifconfig cdce0 inet 192.168.0.1 255.255.255.0 should do the trick. hth Fred
cdce0 in ifconfig
Hello, How to configure cdce0 device in OpenBSD? Dmesg: cdce0 at uhub1 port 1 configuration 2 interface 0 Huawei Technologies HUAWEI Mobile rev 2.00/0.00 addr 2 cdce0: address 00:a0:c6:60:85:70 ugen0 at uhub1 port 1 configuration 2 Huawei Technologies HUAWEI Mobile rev 2.00/0.00 addr 2 cdce0: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500lladdr 00:a0:c6:60:85:70priority: 0 ifconfig: cdce0: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500 lladdr 00:a0:c6:60:85:70 priority: 0 Hardware: http://consumer.huawei.com/en/solutions/m2m-solutions/products/tech-specs/mu609-en.htm Regards, Cristian
Re: cdce0 in ifconfig
On 04/29/15 16:34, Cristián Edwards wrote: Hello, How to configure cdce0 device in OpenBSD? Dmesg: cdce0 at uhub1 port 1 configuration 2 interface 0 Huawei Technologies HUAWEI Mobile rev 2.00/0.00 addr 2 cdce0: address 00:a0:c6:60:85:70 ugen0 at uhub1 port 1 configuration 2 Huawei Technologies HUAWEI Mobile rev 2.00/0.00 addr 2 cdce0: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500lladdr 00:a0:c6:60:85:70priority: 0 ifconfig: cdce0: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500 lladdr 00:a0:c6:60:85:70 priority: 0 Hardware: http://consumer.huawei.com/en/solutions/m2m-solutions/products/tech-specs/mu609-en.htm Regards, Cristian something like: ifconfig cdce0 inet 192.168.0.1 255.255.255.0 should do the trick. hth Fred
Re: cdce0 in ifconfig
Problem is that only the ugen driver is present... so I think there is no chance of speaking with the modem. Will read the link thoruoughly On Wed, Apr 29, 2015 at 4:27 PM, Zé Loff zel...@zeloff.org wrote: On Wed, Apr 29, 2015 at 12:34:12PM -0300, Cristián Edwards wrote: Hello, How to configure cdce0 device in OpenBSD? Dmesg: cdce0 at uhub1 port 1 configuration 2 interface 0 Huawei Technologies HUAWEI Mobile rev 2.00/0.00 addr 2 cdce0: address 00:a0:c6:60:85:70 ugen0 at uhub1 port 1 configuration 2 Huawei Technologies HUAWEI Mobile rev 2.00/0.00 addr 2 cdce0: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500lladdr 00:a0:c6:60:85:70priority: 0 ifconfig: cdce0: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500 lladdr 00:a0:c6:60:85:70 priority: 0 Hardware: http://consumer.huawei.com/en/solutions/m2m-solutions/products/tech-specs/mu6 09-en.htm Regards, Cristian You probably need to bring up the modem first. See this message (and rest of thread) as well as the thread it quotes: http://marc.info/?l=openbsd-miscm=142213746124451w=2 Cheers Zé --
Re: cdce0 in ifconfig
On Wed, Apr 29, 2015 at 07:36:30PM +0100, Fred wrote: On 04/29/15 17:13, Cristián Edwards wrote: Tried dhcp in hostname.cdce0 and it didn't work, your idea doesn't work either. cdce and cdcef allow ethernet communication over USB - ie you plug two computers together using a usb cable and basically provides a brige between two machines so doing dhcp does make much sense... What is on the other end of the link? A modem. Fred --
Re: cdce0 in ifconfig
On Wed, Apr 29, 2015 at 04:29:05PM -0300, Cristián Edwards wrote: Problem is that only the ugen driver is present... so I think there is no chance of speaking with the modem. Didn't see that on the full dmesg you s... oh wait. ;) Will read the link thoruoughly Without ucom devices I'd say you don't have much luck... Again, a full dmesg would be handy. Maybe it needs a new driver, maybe the kernel just needs to be told how to recognize it. Maybe you just need to upgrade to -current. Have I mentioned that a full dmesg would allow us to know which version you're running? Nagging aside, best of luck. Cheers Zé On Wed, Apr 29, 2015 at 4:27 PM, Z?? Loff zel...@zeloff.org wrote: On Wed, Apr 29, 2015 at 12:34:12PM -0300, Cristi??n Edwards wrote: Hello, How to configure cdce0 device in OpenBSD? Dmesg: cdce0 at uhub1 port 1 configuration 2 interface 0 Huawei Technologies HUAWEI Mobile rev 2.00/0.00 addr 2 cdce0: address 00:a0:c6:60:85:70 ugen0 at uhub1 port 1 configuration 2 Huawei Technologies HUAWEI Mobile rev 2.00/0.00 addr 2 cdce0: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500lladdr 00:a0:c6:60:85:70priority: 0 ifconfig: cdce0: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500 lladdr 00:a0:c6:60:85:70 priority: 0 Hardware: http://consumer.huawei.com/en/solutions/m2m-solutions/products/tech-specs/mu6 09-en.htm Regards, Cristian You probably need to bring up the modem first. See this message (and rest of thread) as well as the thread it quotes: http://marc.info/?l=openbsd-miscm=142213746124451w=2 Cheers Z?? -- --
Re: cdce0 in ifconfig
On 04/29/15 17:13, Cristián Edwards wrote: Tried dhcp in hostname.cdce0 and it didn't work, your idea doesn't work either. cdce and cdcef allow ethernet communication over USB - ie you plug two computers together using a usb cable and basically provides a brige between two machines so doing dhcp does make much sense... What is on the other end of the link? Fred