LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ubuntu network problem (https://www.linuxquestions.org/questions/linux-networking-3/ubuntu-network-problem-563347/)

FrancescoPx 06-20-2007 11:09 PM

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

therapist 06-22-2007 05:45 AM

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.

FrancescoPx 06-22-2007 02:43 PM

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

FrancescoPx 07-28-2007 12:42 PM

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


All times are GMT -5. The time now is 03:17 PM.