Re: Is it possible to manually activate an eth0 connection?




--- On Wed, 1/21/09, Bas Roufs <basroufs@xxxxxxxxx> wrote:

From: Bas Roufs <basroufs@xxxxxxxxx>
Subject: Re: Is it possible to manually activate an eth0 connection?
To: "Ubuntu user technical support, not for general discussions" <ubuntu-users@xxxxxxxxxxxxxxxx>
Cc: "Kubuntu Help and User Discussions" <kubuntu-users@xxxxxxxxxxxxxxxx>
Date: Wednesday, January 21, 2009, 6:08 AM
Dear Everybody

Thanks for all your useful advise so far. However, I still
get stuck
in my attempts to connect my laptop to the internet. In
this message,
I summarise how recent advises from some amongst you worked
out in the
case of Kubuntu 8.10 at my laptop - a Medion 5400, 40 GB,
Pentium 4/
2,5 Ghz processor.

I start with the file /etc/network/interfaces.

auto lo
iface lo inet loopback

modify the file to include _only_ those two lines. You
can comment out
the rest by placing a # in front if you wish:

# auto eth0
# iface eth0 inet static
# address 192.168.1.20
# netmask 255.255.255.0
# gateway 192.18.1.1

or delete them. It does not matter.

After carrying out this advise in at least 2 ways, I did
not manage
any more to ping my router (192.168.1.254) and desktop
(192.168.1.33).
The 'destination host' was in both cases
'unreachable', according to
the Unix terminal feedback. Also an attempt to ping an
external
website ended up in an 'unknown host' feedback.

That's why I have re-edited etc/network/interfaces back
to as it was
at the 19th of January:

auto eth0
iface eth0 inet static
address 192.168.1.20
netmask 255.255.255.0
gateway 192.168.1.254

After saving the file re-edited like this, I manage again
to "ping"
the router and desktop. The terminal test feedbacks were
again like
those in the alinea after this one. "^C" = the
control-C command meant
to manually stop the 'ping' process. (Thanks for
that idea, NoOp!)

bas@Viaconsensus2:~$ ping 192.168.1.254
PING 192.168.1.254 (192.168.1.254) 56(84) bytes of data.
64 bytes from 192.168.1.254: icmp_seq=1 ttl=254 time=1.00
ms
64 bytes from 192.168.1.254: icmp_seq=2 ttl=254 time=0.971
ms
64 bytes from 192.168.1.254: icmp_seq=3 ttl=254 time=1.00
ms
^C
--- 192.168.1.254 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time
2007ms
rtt min/avg/max/mdev = 0.971/0.993/1.008/0.015 ms

However, I still do not yet manage to ping google.com or
any other
external website. At a terminal, the fruitless attempt
looked like
this:
bas@Viaconsensus2:~$ ping google.com
ping: unknown host google.com

With respect to the /etc/network/interfaces file, an advise
came in to
replace this: ...
iface eth0 inet static
...with this:
iface eth0 inet dhcp
After doing so, attempts to ping my router
('unreachable'), desktop
('unreachable') and an external website
('unknown host') were all
fruitless.
That's why, I put back 'inet static' in the
interfaces file. After
doing so, attempts to ping the desktop and router were
successful, but
pinging google.com still did not work out.

A core issue is now, whether it is possible to manually
configure an
eth0 connection via 'KNetwork', the network manager
of Kubuntu 8.10.
With respect to this issue, this advise recently came in:

Now open the intrepid network manager and click on the
Wired tab and
entry for "Wired connection 1" then click
"Edit". In IPv4 Settings:

Method: Manual
Addresses:
Address - 192.168.1.20
Netmask - 255.255.255.0
Gateway - 192.168.1.254
DNS Servers: enter the dns servers for your ISP ...
With respect to this issue, I get this info via
http://www.whatsmyip.org
NameServer: NS-PRI.RIPE.NET
NameServer: NS3.NIC.FR
NameServer: SEC1.APNIC.NET
NameServer: SEC3.APNIC.NET
NameServer: SUNIC.SUNET.SE
NameServer: TINNIE.ARIN.NET

The same site whatsmyip.org clarifies the "external
IP" of my DESKTOP
PC, from which I am writing this message: 82.169.250.209
At a terminal on the desktop, I carried out a dig test with
this IP
number. This was the outcome:

bas@Viaconsensus1:~$ dig 82.169.250.209
; <<>> DiG 9.5.0-P2 <<>>
82.169.250.209
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status:
NXDOMAIN, id: 34038
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1,
ADDITIONAL: 0

;; QUESTION SECTION:
;82.169.250.209. IN A

;; AUTHORITY SECTION:
. 10800 IN SOA
A.ROOT-SERVERS.NET.
NSTLD.VERISIGN-GRS.COM. 2009012000 1800 900 604800 86400

;; Query time: 28 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Tue Jan 20 12:11:19 2009
;; MSG SIZE rcvd: 107

If I understand you correctly, NoOp, my 'DNS'
should be, as a matter
of consequence: "192.168.1.254".
In KNetworkmanager, the manual menu for wired connections
contains two
lines I need to fill in with respect to DNS: 'DNS
Addresses' and 'DNS
Search'. First I filled in the 'name servers'
coming out of
whatsmyip.org in the line 'DNS Addresses' and
"192.168.1.254" (without
the "-signs) in the line 'DNS Search'. But
after saving, closing and
re-opening this output, the 'name server' names in
the DNS Addresses
line vanished. Three attempts worked out like that.
Than I put the DNS info inversely: '192.168.1.254'
in 'DNS Addresses'
and the 'name servers' in 'DNS Search'.
KNETWORKMANAGER does maintain
this input after saving and closing. However, even the
option 'save
and connect' does not yet result in an effectively
working internet
connection from my laptop. On the other hand, it did not
harm anything
neither. I still DO manage to ping my router and desktop
from the
laptop.

Now click on the "Wired" tab and enter the
mac address for your eth0
(from your ifconfig output):

MAC Address: 00:40:ca:bc:9e:88
MTU: 1500

In 'KNetworkmanager' I did not find any tab or
option to fill in the
'MAC Adress' and 'MTU'. Do I overlook
anything? Is there any other
option to manually fill in such information?

Now click OK. You'll get a password prompt: enter
your password.
In KNetworkmanager, it did not work out like this.

From a terminal at the laptop, I carried out some tests,
advised to me
in this thread.

cat /etc/resolv.conf
The test "cat /etc/resolv.conf" delivered only
this feedback:
# generated by NetworkManager

Then, I tried to run 'NetWorkManager' as root, from
the terminal. But
nothing happened: no menu popped up, but also no
information about any
mistake.

cat /etc/hosts
This test worked out in the feedback below and above the
==== lines.

=======================
bas@Viaconsensus2:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 Viaconsensus2

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
========================

ping google.com
As mentioned above, this ping test is fruitless:
ping: unknown host google.com

ping 192.168.1.1
This test worked out as indicated in between the === lines.

=====================
bas@Viaconsensus2:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.20 icmp_seq=2 Destination Host Unreachable
From 192.168.1.20 icmp_seq=3 Destination Host Unreachable
.....seq=4.....sec=5 ...etc. ...sec=29 Destination Host
Unreachable

--- 192.168.1.1 ping statistics ---
29 packets transmitted, 0 received, +21 errors, 100% packet
loss, time 28029ms
, pipe 3
=======================

This ping test was fruitless. On the other hand: as
indicated above, I
DO manage to ping the router and desktop.

cat /etc/udev/rules.d/70-persistent-net.rules

The outcome of this test in between the === lines.

================================
bas@Viaconsensus2:~$ cat
/etc/udev/rules.d/70-persistent-net.rules
# This file maintains persistent names for network
interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the
75-persistent-net-generator.rules
# file; however you are also free to add your own entries.

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add",
DRIVERS=="?*",
ATTR{address}=="00:40:ca:bc:9e:88",
ATTR{type}=="1", KERNEL=="eth*",
NAME="eth0"

# PCI device 0x115d:0x0003 (xircom_cb)
SUBSYSTEM=="net", ACTION=="add",
DRIVERS=="?*",
ATTR{address}=="00:10:a4:75:ba:4a",
ATTR{type}=="1", KERNEL=="eth*",
NAME="eth1"
====================================

Finally, I provide you with possibly useful information
that I got via
whatsmyip.org:

External IP: 82.169.250.209
(= desktop?)
Hostname: 82-169-250-209.ip.telfort.nl
Proxy: No Proxy or Invisible Proxy
Used
Internal (LAN) IP: 192.168.1.33
Outgoing Port: 12639
(...)

ReferralServer: whois://whois.ripe.net:43

NetRange: 82.0.0.0 - 82.255.255.255
CIDR: 82.0.0.0/8
NetName: 82-RIPE
NetHandle: NET-82-0-0-0-1
Parent:
NetType: Allocated to RIPE NCC
NameServer: NS-PRI.RIPE.NET
NameServer: NS3.NIC.FR
NameServer: SEC1.APNIC.NET
NameServer: SEC3.APNIC.NET
NameServer: SUNIC.SUNET.SE
NameServer: TINNIE.ARIN.NET
(.....)
% Information related to '82.169.224.0 -
82.169.255.255'
(....)
inetnum: 82.169.224.0 - 82.169.255.255
netname: NL-TELFORT-DSL
descr: Telfort internet
descr: Internet Service Provider
descr: DSL Customer Network
country: NL
admin-c: GITR1-RIPE
tech-c: GITR1-RIPE
status: ASSIGNED PA
mnt-by: WOLTECH-MNT
source: RIPE # Filtered

admin-c: MH6157-RIPE
tech-c: RP1269-RIPE
tech-c: MH6157-RIPE
nic-hdl: GITR1-RIPE
mnt-by: WOLADM-MNT
source: RIPE # Filtered

% Information related to '82.168.0.0/14AS5615'

route: 82.168.0.0/14
descr: Green ISP B.V.
origin: AS5615
mnt-by: WISH-MNT
mnt-by: WOLADM-MNT
source: RIPE # Filtered

To finish this message: nearly 3 days of testing still do
not result
in a working eth0-connection from my laptop. So, I hope get
some extra
feedback which could possibly enable me to fill in the
white spots on
my map...... My next possibility to carry out tests and to
get back to
you will be next Saturday or Sunday.

Respectfully yours,

Bas.

I read your entire reply and suspect your may be overwhelming
yourself with all the details. One thing I noticed is that as
you pointed out there is no info in /etc/resolv.conf where there
should be. Why don't you just not change anything else and edit
the /etc/resolv.conf file with your favorite editor adding the
needed info. I use "sudo nano /etc/resolv.conf" and the data
to add looks like this:
search gateway.2wire.net
nameserver 192.168.1.254

Where "gateway.2wire.net" is the name of my gateway/dns server. Use
yours as you setup in knetwork manager. then try to connect and report
back before doing/changing anything else. I'm no expert, but have set
up wired/wireless connections before with help but can usually do it
myself now. It's not that hard if you know the basics. good luck
and HTH a little.

Leonard Chatagnier
lenc5570@xxxxxxxxxxxxx


--
===============
Viaconsensus
Bas G. Roufs M.A.
Van 't Hoffstraat 1
NL-3514 VT Utrecht
M. +31.6.446.835.10
T. +31.30.785.20.40
BasRoufs@xxxxxxxxx
===============

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Primary DNS Suffix is blank
    ... " Mine is just a standalone machine. ... What DNS setting are you using? ... Ethernet adapter Local Area Connection: ... Ping statistics for 204.127.202.10: ...
    (microsoft.public.win2000.dns)
  • Re: Cant access broadband
    ... isn't working very well, ping it and look at the responses, if it varies ... from when it's not bad then it could point to a connection issue. ... be mitigated by a DNS caching/proxy problem. ... Not necessarily - could still be a DNS issue, where maybe invalid responses ...
    (microsoft.public.windowsxp.network_web)
  • Re: pppd daemon
    ... Yeah I knew I left ping on too long..I wasn't sure if it exited on its ... your connection is indeed working but you have no DNS. ... > which confirmed that you are indeed receiving the IPs of the DNS ... > complexity which could have more devastating effects if you're root. ...
    (Debian-User)
  • Re: No one answered my question?
    ... but I can't ping anything therefore I'm not "really" connected. ... 36mbps connection but doesn't connect to the Internet nor can I ping ... I'm just getting started with wireless connectivity. ... If you can access the rtr page on the wireless, it may be a DNS issue. ...
    (alt.internet.wireless)
  • Fedora 8 VPN Client for Microsoft PPTP VPN server: routing problem
    ... Seems that the VPN PPTP connection to MS PPTP server is OK as from the ... I tried ping 172.25.9.64 but it hanged up, ... ping: sendmsg: Operation not permitted ...
    (Fedora)