hello, for automatic configuration my recommendation is (if you have a router or a modem/router who work with dhcp services):<br>in your /etc/network/interfaces only stay this:<br><br>auto lo<br>iface lo inet loopback<br><br>
next.. you open a terminal and put this:<br><br>sudo dhclient eth0<br><br>if you will have an ip, it's ok.<br><br>next<br>ping <a href="http://www.google.com.ar">www.google.com.ar</a><br><br>regards!<br>christian<br><br>
<div class="gmail_quote">2009/1/21 Leonard Chatagnier <span dir="ltr"><<a href="mailto:lenc5570@sbcglobal.net">lenc5570@sbcglobal.net</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
--- On Wed, 1/21/09, Bas Roufs <<a href="mailto:basroufs@gmail.com">basroufs@gmail.com</a>> wrote:<br>
<br>
> From: Bas Roufs <<a href="mailto:basroufs@gmail.com">basroufs@gmail.com</a>><br>
> Subject: Re: Is it possible to manually activate an eth0 connection?<br>
> To: "Ubuntu user technical support, not for general discussions" <<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a>><br>
> Cc: "Kubuntu Help and User Discussions" <<a href="mailto:kubuntu-users@lists.ubuntu.com">kubuntu-users@lists.ubuntu.com</a>><br>
> Date: Wednesday, January 21, 2009, 6:08 AM<br>
> Dear Everybody<br>
><br>
> Thanks for all your useful advise so far. However, I still<br>
> get stuck<br>
> in my attempts to connect my laptop to the internet. In<br>
> this message,<br>
> I summarise how recent advises from some amongst you worked<br>
> out in the<br>
> case of Kubuntu 8.10 at my laptop - a Medion 5400, 40 GB,<br>
> Pentium 4/<br>
> 2,5 Ghz processor.<br>
><br>
> I start with the file /etc/network/interfaces.<br>
><br>
> > > auto lo<br>
> > > iface lo inet loopback<br>
> ><br>
> > modify the file to include _only_ those two lines. You<br>
> can comment out<br>
> > the rest by placing a # in front if you wish:<br>
> ><br>
> > # auto eth0<br>
> > # iface eth0 inet static<br>
> > # address 192.168.1.20<br>
> > # netmask 255.255.255.0<br>
> > # gateway 192.18.1.1<br>
> ><br>
> > or delete them. It does not matter.<br>
><br>
> After carrying out this advise in at least 2 ways, I did<br>
> not manage<br>
> any more to ping my router (192.168.1.254) and desktop<br>
> (192.168.1.33).<br>
> The 'destination host' was in both cases<br>
> 'unreachable', according to<br>
> the Unix terminal feedback. Also an attempt to ping an<br>
> external<br>
> website ended up in an 'unknown host' feedback.<br>
><br>
> That's why I have re-edited etc/network/interfaces back<br>
> to as it was<br>
> at the 19th of January:<br>
><br>
> auto eth0<br>
> iface eth0 inet static<br>
> address 192.168.1.20<br>
> netmask 255.255.255.0<br>
> gateway 192.168.1.254<br>
><br>
> After saving the file re-edited like this, I manage again<br>
> to "ping"<br>
> the router and desktop. The terminal test feedbacks were<br>
> again like<br>
> those in the alinea after this one. "^C" = the<br>
> control-C command meant<br>
> to manually stop the 'ping' process. (Thanks for<br>
> that idea, NoOp!)<br>
><br>
> bas@Viaconsensus2:~$ ping 192.168.1.254<br>
> PING 192.168.1.254 (192.168.1.254) 56(84) bytes of data.<br>
> 64 bytes from <a href="http://192.168.1.254" target="_blank">192.168.1.254</a>: icmp_seq=1 ttl=254 time=1.00<br>
> ms<br>
> 64 bytes from <a href="http://192.168.1.254" target="_blank">192.168.1.254</a>: icmp_seq=2 ttl=254 time=0.971<br>
> ms<br>
> 64 bytes from <a href="http://192.168.1.254" target="_blank">192.168.1.254</a>: icmp_seq=3 ttl=254 time=1.00<br>
> ms<br>
> ^C<br>
> --- 192.168.1.254 ping statistics ---<br>
> 3 packets transmitted, 3 received, 0% packet loss, time<br>
> 2007ms<br>
> rtt min/avg/max/mdev = 0.971/0.993/1.008/0.015 ms<br>
><br>
> However, I still do not yet manage to ping <a href="http://google.com" target="_blank">google.com</a> or<br>
> any other<br>
> external website. At a terminal, the fruitless attempt<br>
> looked like<br>
> this:<br>
> bas@Viaconsensus2:~$ ping <a href="http://google.com" target="_blank">google.com</a><br>
> ping: unknown host <a href="http://google.com" target="_blank">google.com</a><br>
><br>
> With respect to the /etc/network/interfaces file, an advise<br>
> came in to<br>
> replace this: ...<br>
> > iface eth0 inet static<br>
> ...with this:<br>
> > iface eth0 inet dhcp<br>
> After doing so, attempts to ping my router<br>
> ('unreachable'), desktop<br>
> ('unreachable') and an external website<br>
> ('unknown host') were all<br>
> fruitless.<br>
> That's why, I put back 'inet static' in the<br>
> interfaces file. After<br>
> doing so, attempts to ping the desktop and router were<br>
> successful, but<br>
> pinging <a href="http://google.com" target="_blank">google.com</a> still did not work out.<br>
><br>
> A core issue is now, whether it is possible to manually<br>
> configure an<br>
> eth0 connection via 'KNetwork', the network manager<br>
> of Kubuntu 8.10.<br>
> With respect to this issue, this advise recently came in:<br>
><br>
> > Now open the intrepid network manager and click on the<br>
> Wired tab and<br>
> > entry for "Wired connection 1" then click<br>
> "Edit". In IPv4 Settings:<br>
> ><br>
> > Method: Manual<br>
> > Addresses:<br>
> > Address - 192.168.1.20<br>
> > Netmask - 255.255.255.0<br>
> > Gateway - 192.168.1.254<br>
> > DNS Servers: enter the dns servers for your ISP ...<br>
> With respect to this issue, I get this info via<br>
> <a href="http://www.whatsmyip.org" target="_blank">http://www.whatsmyip.org</a><br>
> NameServer: <a href="http://NS-PRI.RIPE.NET" target="_blank">NS-PRI.RIPE.NET</a><br>
> NameServer: <a href="http://NS3.NIC.FR" target="_blank">NS3.NIC.FR</a><br>
> NameServer: <a href="http://SEC1.APNIC.NET" target="_blank">SEC1.APNIC.NET</a><br>
> NameServer: <a href="http://SEC3.APNIC.NET" target="_blank">SEC3.APNIC.NET</a><br>
> NameServer: <a href="http://SUNIC.SUNET.SE" target="_blank">SUNIC.SUNET.SE</a><br>
> NameServer: <a href="http://TINNIE.ARIN.NET" target="_blank">TINNIE.ARIN.NET</a><br>
><br>
> The same site <a href="http://whatsmyip.org" target="_blank">whatsmyip.org</a> clarifies the "external<br>
> IP" of my DESKTOP<br>
> PC, from which I am writing this message: 82.169.250.209<br>
> At a terminal on the desktop, I carried out a dig test with<br>
> this IP<br>
> number. This was the outcome:<br>
><br>
> bas@Viaconsensus1:~$ dig 82.169.250.209<br>
> ; <<>> DiG 9.5.0-P2 <<>><br>
> 82.169.250.209<br>
> ;; global options: printcmd<br>
> ;; Got answer:<br>
> ;; ->>HEADER<<- opcode: QUERY, status:<br>
> NXDOMAIN, id: 34038<br>
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1,<br>
> ADDITIONAL: 0<br>
><br>
> ;; QUESTION SECTION:<br>
> ;82.169.250.209. IN A<br>
><br>
> ;; AUTHORITY SECTION:<br>
> . 10800 IN SOA<br>
> <a href="http://A.ROOT-SERVERS.NET" target="_blank">A.ROOT-SERVERS.NET</a>.<br>
> <a href="http://NSTLD.VERISIGN-GRS.COM" target="_blank">NSTLD.VERISIGN-GRS.COM</a>. 2009012000 1800 900 604800 86400<br>
><br>
> ;; Query time: 28 msec<br>
> ;; SERVER: 192.168.1.254#53(192.168.1.254)<br>
> ;; WHEN: Tue Jan 20 12:11:19 2009<br>
> ;; MSG SIZE rcvd: 107<br>
><br>
> If I understand you correctly, NoOp, my 'DNS'<br>
> should be, as a matter<br>
> of consequence: "192.168.1.254".<br>
> In KNetworkmanager, the manual menu for wired connections<br>
> contains two<br>
> lines I need to fill in with respect to DNS: 'DNS<br>
> Addresses' and 'DNS<br>
> Search'. First I filled in the 'name servers'<br>
> coming out of<br>
> <a href="http://whatsmyip.org" target="_blank">whatsmyip.org</a> in the line 'DNS Addresses' and<br>
> "192.168.1.254" (without<br>
> the "-signs) in the line 'DNS Search'. But<br>
> after saving, closing and<br>
> re-opening this output, the 'name server' names in<br>
> the DNS Addresses<br>
> line vanished. Three attempts worked out like that.<br>
> Than I put the DNS info inversely: '192.168.1.254'<br>
> in 'DNS Addresses'<br>
> and the 'name servers' in 'DNS Search'.<br>
> KNETWORKMANAGER does maintain<br>
> this input after saving and closing. However, even the<br>
> option 'save<br>
> and connect' does not yet result in an effectively<br>
> working internet<br>
> connection from my laptop. On the other hand, it did not<br>
> harm anything<br>
> neither. I still DO manage to ping my router and desktop<br>
> from the<br>
> laptop.<br>
><br>
> > Now click on the "Wired" tab and enter the<br>
> mac address for your eth0<br>
> > (from your ifconfig output):<br>
> ><br>
> > MAC Address: 00:40:ca:bc:9e:88<br>
> > MTU: 1500<br>
><br>
> In 'KNetworkmanager' I did not find any tab or<br>
> option to fill in the<br>
> 'MAC Adress' and 'MTU'. Do I overlook<br>
> anything? Is there any other<br>
> option to manually fill in such information?<br>
><br>
> > Now click OK. You'll get a password prompt: enter<br>
> your password.<br>
> In KNetworkmanager, it did not work out like this.<br>
><br>
> From a terminal at the laptop, I carried out some tests,<br>
> advised to me<br>
> in this thread.<br>
><br>
> > cat /etc/resolv.conf<br>
> The test "cat /etc/resolv.conf" delivered only<br>
> this feedback:<br>
> # generated by NetworkManager<br>
><br>
> Then, I tried to run 'NetWorkManager' as root, from<br>
> the terminal. But<br>
> nothing happened: no menu popped up, but also no<br>
> information about any<br>
> mistake.<br>
><br>
> > cat /etc/hosts<br>
> This test worked out in the feedback below and above the<br>
> ==== lines.<br>
><br>
> =======================<br>
> bas@Viaconsensus2:~$ cat /etc/hosts<br>
> 127.0.0.1 localhost<br>
> 127.0.1.1 Viaconsensus2<br>
><br>
> # The following lines are desirable for IPv6 capable hosts<br>
> ::1 ip6-localhost ip6-loopback<br>
> fe00::0 ip6-localnet<br>
> ff00::0 ip6-mcastprefix<br>
> ff02::1 ip6-allnodes<br>
> ff02::2 ip6-allrouters<br>
> ff02::3 ip6-allhosts<br>
> ========================<br>
><br>
> > ping <a href="http://google.com" target="_blank">google.com</a><br>
> As mentioned above, this ping test is fruitless:<br>
> ping: unknown host <a href="http://google.com" target="_blank">google.com</a><br>
><br>
> > ping 192.168.1.1<br>
> This test worked out as indicated in between the === lines.<br>
><br>
> =====================<br>
> bas@Viaconsensus2:~$ ping 192.168.1.1<br>
> PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.<br>
> From 192.168.1.20 icmp_seq=2 Destination Host Unreachable<br>
> From 192.168.1.20 icmp_seq=3 Destination Host Unreachable<br>
> .....seq=4.....sec=5 ...etc. ...sec=29 Destination Host<br>
> Unreachable<br>
><br>
> --- 192.168.1.1 ping statistics ---<br>
> 29 packets transmitted, 0 received, +21 errors, 100% packet<br>
> loss, time 28029ms<br>
> , pipe 3<br>
> =======================<br>
><br>
> This ping test was fruitless. On the other hand: as<br>
> indicated above, I<br>
> DO manage to ping the router and desktop.<br>
><br>
> > cat /etc/udev/rules.d/70-persistent-net.rules<br>
><br>
> The outcome of this test in between the === lines.<br>
><br>
> ================================<br>
> bas@Viaconsensus2:~$ cat<br>
> /etc/udev/rules.d/70-persistent-net.rules<br>
> # This file maintains persistent names for network<br>
> interfaces.<br>
> # See udev(7) for syntax.<br>
> #<br>
> # Entries are automatically added by the<br>
> 75-persistent-net-generator.rules<br>
> # file; however you are also free to add your own entries.<br>
><br>
> # PCI device 0x10ec:0x8139 (8139too)<br>
> SUBSYSTEM=="net", ACTION=="add",<br>
> DRIVERS=="?*",<br>
> ATTR{address}=="00:40:ca:bc:9e:88",<br>
> ATTR{type}=="1", KERNEL=="eth*",<br>
> NAME="eth0"<br>
><br>
> # PCI device 0x115d:0x0003 (xircom_cb)<br>
> SUBSYSTEM=="net", ACTION=="add",<br>
> DRIVERS=="?*",<br>
> ATTR{address}=="00:10:a4:75:ba:4a",<br>
> ATTR{type}=="1", KERNEL=="eth*",<br>
> NAME="eth1"<br>
> ====================================<br>
><br>
> Finally, I provide you with possibly useful information<br>
> that I got via<br>
> <a href="http://whatsmyip.org" target="_blank">whatsmyip.org</a>:<br>
><br>
> External IP: 82.169.250.209<br>
> (= desktop?)<br>
> Hostname: <a href="http://82-169-250-209.ip.telfort.nl" target="_blank">82-169-250-209.ip.telfort.nl</a><br>
> Proxy: No Proxy or Invisible Proxy<br>
> Used<br>
> Internal (LAN) IP: 192.168.1.33<br>
> Outgoing Port: 12639<br>
> (...)<br>
><br>
> ReferralServer: whois://<a href="http://whois.ripe.net:43" target="_blank">whois.ripe.net:43</a><br>
><br>
> NetRange: 82.0.0.0 - 82.255.255.255<br>
> CIDR: <a href="http://82.0.0.0/8" target="_blank">82.0.0.0/8</a><br>
> NetName: 82-RIPE<br>
> NetHandle: NET-82-0-0-0-1<br>
> Parent:<br>
> NetType: Allocated to RIPE NCC<br>
> NameServer: <a href="http://NS-PRI.RIPE.NET" target="_blank">NS-PRI.RIPE.NET</a><br>
> NameServer: <a href="http://NS3.NIC.FR" target="_blank">NS3.NIC.FR</a><br>
> NameServer: <a href="http://SEC1.APNIC.NET" target="_blank">SEC1.APNIC.NET</a><br>
> NameServer: <a href="http://SEC3.APNIC.NET" target="_blank">SEC3.APNIC.NET</a><br>
> NameServer: <a href="http://SUNIC.SUNET.SE" target="_blank">SUNIC.SUNET.SE</a><br>
> NameServer: <a href="http://TINNIE.ARIN.NET" target="_blank">TINNIE.ARIN.NET</a><br>
> (.....)<br>
> % Information related to '82.169.224.0 -<br>
> 82.169.255.255'<br>
> (....)<br>
> inetnum: 82.169.224.0 - 82.169.255.255<br>
> netname: NL-TELFORT-DSL<br>
> descr: Telfort internet<br>
> descr: Internet Service Provider<br>
> descr: DSL Customer Network<br>
> country: NL<br>
> admin-c: GITR1-RIPE<br>
> tech-c: GITR1-RIPE<br>
> status: ASSIGNED PA<br>
> mnt-by: WOLTECH-MNT<br>
> source: RIPE # Filtered<br>
><br>
> admin-c: MH6157-RIPE<br>
> tech-c: RP1269-RIPE<br>
> tech-c: MH6157-RIPE<br>
> nic-hdl: GITR1-RIPE<br>
> mnt-by: WOLADM-MNT<br>
> source: RIPE # Filtered<br>
><br>
> % Information related to '<a href="http://82.168.0.0/14AS5615" target="_blank">82.168.0.0/14AS5615</a>'<br>
><br>
> route: <a href="http://82.168.0.0/14" target="_blank">82.168.0.0/14</a><br>
> descr: Green ISP B.V.<br>
> origin: AS5615<br>
> mnt-by: WISH-MNT<br>
> mnt-by: WOLADM-MNT<br>
> source: RIPE # Filtered<br>
><br>
> To finish this message: nearly 3 days of testing still do<br>
> not result<br>
> in a working eth0-connection from my laptop. So, I hope get<br>
> some extra<br>
> feedback which could possibly enable me to fill in the<br>
> white spots on<br>
> my map...... My next possibility to carry out tests and to<br>
> get back to<br>
> you will be next Saturday or Sunday.<br>
><br>
> Respectfully yours,<br>
><br>
> Bas.<br>
><br>
I read your entire reply and suspect your may be overwhelming<br>
yourself with all the details. One thing I noticed is that as<br>
you pointed out there is no info in /etc/resolv.conf where there<br>
should be. Why don't you just not change anything else and edit<br>
the /etc/resolv.conf file with your favorite editor adding the<br>
needed info. I use "sudo nano /etc/resolv.conf" and the data<br>
to add looks like this:<br>
search <a href="http://gateway.2wire.net" target="_blank">gateway.2wire.net</a><br>
nameserver 192.168.1.254<br>
<br>
Where "<a href="http://gateway.2wire.net" target="_blank">gateway.2wire.net</a>" is the name of my gateway/dns server. Use<br>
yours as you setup in knetwork manager. then try to connect and report<br>
back before doing/changing anything else. I'm no expert, but have set<br>
up wired/wireless connections before with help but can usually do it<br>
myself now. It's not that hard if you know the basics. good luck<br>
and HTH a little.<br>
<br>
Leonard Chatagnier<br>
<a href="mailto:lenc5570@sbcglobal.net">lenc5570@sbcglobal.net</a><br>
<br>
<br>
> --<br>
> ===============<br>
> Viaconsensus<br>
> Bas G. Roufs M.A.<br>
> Van 't Hoffstraat 1<br>
> NL-3514 VT Utrecht<br>
> M. +31.6.446.835.10<br>
> T. +31.30.785.20.40<br>
> <a href="mailto:BasRoufs@gmail.com">BasRoufs@gmail.com</a><br>
> ===============<br>
><br>
> --<br>
> ubuntu-users mailing list<br>
> <a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
> Modify settings or unsubscribe at:<br>
> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
<font color="#888888"><br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></blockquote></div><br>