LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-20-2007, 11:09 PM   #1
FrancescoPx
LQ Newbie
 
Registered: Dec 2006
Posts: 24

Rep: Reputation: 0
ubuntu network problem


Hi,
I have a problem with network on a ubuntu dapper drake laptop

(" # uname -a" gives "Linux barbara-laptop 2.6.17-10-386 #2 Tue Dec 5 22:26:18 UTC 2006 i686 GNU/LINUX")

I cannot connect to the network with this laptop, by the cable ADSL modem, while another laptop (with Debian sarge) does it without problems.

I give in the following the information that can be useful. The result is that any browser cannot connect.

That's what I do (cronologically):
root@barbara-laptop:~# ifup eth0
There is already a pid file /var/run/dhclient.eth0.pid with pid 134993416
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:02:3f:64:71:ff
Sending on LPF/eth0/00:02:3f:64:71:ff
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER from 129.82.11.89
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 129.82.11.89
bound to 129.82.213.166 -- renewal in 241041 seconds.
Then I suppose I receive an IP from 129.82.11.89
But if I try to ping it:
root@barbara-laptop:~# ping 129.82.11.89
PING 129.82.11.89 (129.82.11.89) 56(84) bytes of data.
ping: senmsg: Operation not permitted
ping: senmsg: Operation not permitted
0 received, 100% lost
This is my ifconfig:
root@barbara-laptop:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:3F:64:71:FF
inet addr:129.82.213.166 Bcast:129.82.213.255 Mask:255.255.255.0
inet6 addr: fe80::202:3fff:fe64:71ff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:362 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38036 (37.1 KiB) TX bytes:5076 (4.9 KiB)
Interrupt:10 Base address:0x6000

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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Maybe a problem with IPTABLES (that I do not know well)? so I cleaned the rules, and now
iptables -L
gives nothing, i.e. all the chains are empty.

The route -n gives:
root@barbara-laptop:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
129.82.213.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 129.82.213.1 0.0.0.0 UG 0 0 0 eth0
If I shut down the interface, I get
root@barbara-laptop:~# ifdown eth0
There is already a pid file /var/run/dhclient.eth0.pid with pid 5427
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:02:3f:64:71:ff
Sending on LPF/eth0/00:02:3f:64:71:ff
Sending on Socket/fallback
DHCPRELEASE on eth0 to 129.82.11.89 port 67
send_packet: Operation not permitted
And no connection to the network.
Can anybody help me?
Thanks
 
Old 06-22-2007, 05:45 AM   #2
therapist
LQ Newbie
 
Registered: Mar 2006
Location: Durban, South Africa
Distribution: Debian and Suse
Posts: 21

Rep: Reputation: 15
lo

you said "I cannot connect to the network with this laptop, by the cable ADSL modem, while another laptop (with Debian sarge) does it without problems."

Question: is this a USB ADSL modem, or is it an external one with an RJ45 interface that's going into your network card?

the bonus is Ubuntu's based on debain anyway, so your basic cofig should be the same to get it to work.

If you boot live off the cd does it work? ditto for the sarge laptop? (yes, i know it's a mission, but let's see if it's a Ubuntu specific problem)

IP tables primarily deals with fowarding etc - makes your local PC into a gateway/proxy server.
 
Old 06-22-2007, 02:43 PM   #3
FrancescoPx
LQ Newbie
 
Registered: Dec 2006
Posts: 24

Original Poster
Rep: Reputation: 0
The modem is external with an RJ45 interface that goes into the network card.
it is a good idea to compare the settings of the two computers.
for now, I can see that /etc/network/interfaces is the same for both:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
what else should I compare exactly?
Thanks
 
Old 07-28-2007, 12:42 PM   #4
FrancescoPx
LQ Newbie
 
Registered: Dec 2006
Posts: 24

Original Poster
Rep: Reputation: 0
on the same laptop I also have windows, and it can connect to internet , so it is a configuration of Ubuntu that fails.

in /var/log/syslog I get many lines like:

Code:
localhost kernel: [17234769.896000] IN= OUT=eth0 SRC=129.82.213.97 DST=129.82.11.89 LEN=328 TOS=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=68 DPT=67 LEN=308

localhost dhclient: send_packet: Operation not permitted
In the first line there is " IN= " without anything, isn't it strange? shouldn't it be eth0 there?

Thanks
 
  


Reply

Tags
network


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu wifi problem - can see network but cannot connect pugsley Linux - Wireless Networking 2 11-25-2006 11:51 PM
Big problem with network install Ubuntu JBull Linux - General 1 04-15-2006 01:08 AM
Network problem with Ubuntu kevcart3 Linux - Networking 3 04-15-2005 07:54 PM
problem in ubuntu regarding accessing through network pranith Debian 1 02-17-2005 08:14 AM


All times are GMT -5. The time now is 04:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration