How to build LAN drivers with no internet access
Dotan Cohen
dotancohen at gmail.com
Mon Jul 2 16:48:42 IDT 2012
On Mon, Jul 2, 2012 at 3:51 PM, Baruch Siach <baruch at tkos.co.il> wrote:
>> What should I do now?
>
> The driver automatically loads the firmware, which in you case seems to be
> rtl8168e-3.fw. Just set an IP address for eth0 and ping away.
>
I cannot seem to add an IP address:
shelly at neptune:~$ ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:264 errors:0 dropped:0 overruns:0 frame:0
TX packets:264 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19712 (19.7 KB) TX bytes:19712 (19.7 KB)
shelly at neptune:~$ sudo ifconfig eth0 192.168.0.110 netmask 255.255.255.0
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
shelly at neptune:~$ sudo route add default gw 192.168.0.1 eth0
SIOCADDRT: No such device
shelly at neptune:~$
Reference information from another computer on the LAN that gets its
address via DHCP:
- saturn:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1f:c6:85:0c:8e
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21f:c6ff:fe85:c8e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5873203 errors:0 dropped:0 overruns:0 frame:0
TX packets:4508575 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8605892859 (8.6 GB) TX bytes:353677967 (353.6 MB)
Interrupt:42 Base address:0x2000
- saturn:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
- saturn:~$
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
More information about the Linux-il
mailing list