fredoldodo Posted August 18, 2014 Share Posted August 18, 2014 Hello, I'm trying to use my USB to RJ45 adapter on the USB port of the pineapple but I'am unable to get an IP address with my PC when i connect to it. Is there a DHCP server to activate (on eth1) ? (I'm using eth0 to connect to a raspberry pi) here is a "ifconfig eth1": eth1 Link encap:Ethernet HWaddr 9C:EB:E8:0D:88:72 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Or perhaps something other to do ? How can I get it working ? Thanks for your help, Frédéric. Quote Link to comment Share on other sites More sharing options...
Darren Kitchen Posted August 18, 2014 Share Posted August 18, 2014 What happens when you try a static IP address? Quote Link to comment Share on other sites More sharing options...
fredoldodo Posted August 18, 2014 Author Share Posted August 18, 2014 Hey, Thank you for your reply. Here is my /etc/config/wireless, but I can't get eth0 and eth1 simultaneously working: config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0'config interface 'lan' option ifname 'eth0' option type 'bridge' option proto 'static' option ipaddr '172.16.42.1' option netmask '255.255.255.0' option gateway '172.16.42.42' option dns '8.8.8.8'config interface 'lan2' option ifname 'eth1' option type 'bridge' option proto 'static' option ipaddr '172.16.42.1' option netmask '255.255.255.0' option gateway '172.16.42.42' option dns '8.8.8.8'config interface 'wan' option proto 'dhcp'config interface 'usb' option ifname 'usb0' option proto 'dhcp'config interface 'wan2' option ifname 'ppp0' option proto '3g' option service 'cdma' option device '/dev/ttyUSB0' option apn 'pinternet.interkom.de' option username ' ' option password ' ' option defaultroute '1' option ppp_redial 'persist' option peerdns '1' option dns ' ' option keepalive '1' option pppd_options ' ' Quote Link to comment Share on other sites More sharing options...
fredoldodo Posted August 18, 2014 Author Share Posted August 18, 2014 Maybe with /etc/config/dhcp ? Quote Link to comment Share on other sites More sharing options...
Darren Kitchen Posted August 18, 2014 Share Posted August 18, 2014 Before mucking about with dhcp and the config files, can you verify that you can achieve what you're after manually? Based on your first message it does seem the interface comes up, so no sense in lsusb. Wondering what chipset however. What do you get in logread when plugging in the device? Are you able to manually give it an IP address in the range of your desired network? Ie ifconfig eth1 192.168.1.101 netmask 255.255.255.0 up Quote Link to comment Share on other sites More sharing options...
bearda Posted August 22, 2014 Share Posted August 22, 2014 Why are eth0 and eth1 both using the same IP? You're never going to route anything like that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.