FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-19-2012, 04:15 AM
William Kenworthy
 
Default Goodbye to gentoo?

On Sun, 2012-03-18 at 22:44 -0600, Maxim Wexler wrote:
> >
> > Hi Maxim, what changed when the modem stopped working?
>
> Dunno
>
> >
> > Also can you supply the output of the "route -n" and ifconfig commands
> > to give us a chance of seeing if anything has gone adrift there. Also
> > if you are using (and have tested that its not the problem) any firewall
> > running.
>
> I don't use the /etc/conf.d/net file. Also all net hotplug services
> are turned of in rc.conf.
> route -n shows nothing except ppp0
> (this is from ubuntu, but it was the same for gentoo when it was working)
> root@gnubu:~# route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
> 161.184.0.199 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
>
> (also from the ubuntu side)
> root@gnubu:~# ifconfig ppp0
> ppp0 Link encap:Point-to-Point Protocol
> inet addr:161.184.44.73 P-t-P:161.184.0.199 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
> RX packets:5867 errors:0 dropped:0 overruns:0 frame:0
> TX packets:6439 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:3
> RX bytes:1694892 (1.6 MB) TX bytes:746705 (746.7 KB)
>
>
> ifconfig eth0 and wlan0 are empty because I rmmod'd the drivers. I
> only use them when talking to the router or another pc on a lan, I set
> them up manually and take them down when not in use. Otherwise the web
> is unreachable. This true for Ubuntu and gentoo.
>
> There is no firewall as far as I know.
>
> MW
>

The last route looks correct ... the wildcard might or might not be.

Try and remove it and add a normal default route.

Look up the "route" command if not familiar with the how.

Just a comment, when ignoring the networking files in an operating
system to do it yourself manually, dont be surprised if YOU have broken
something. I usually do my own thing too as I am not impressed with the
way gentoo handles its networking, though under openrc its better.

BillK
 
Old 03-19-2012, 04:35 AM
David Haller
 
Default Goodbye to gentoo?

Hello,

On Sun, 18 Mar 2012, Maxim Wexler wrote:
>root@gnubu:~# route -n
>Kernel IP routing table
>Destination Gateway Genmask Flags Metric Ref Use Iface
>0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
>161.184.0.199 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0

I'm on a Suse ATM[1], but as I do my networking config "by hand" that
should not matter. Above looks wrong. It should look like:

# route -n
161.184.0.199 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
[or:161.184.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ppp0]
0.0.0.0 161.184.0.199 0.0.0.0 UG 0 0 0 ppp0
^^^^^^^^^^^^^ ^
your ppp assigned P-t-P gateway flag

So, have a look at how the route gets set. Manually, a

# route del default
# route add default gw 161.184.0.199

should suffice. Don't know the 'ip' syntax, but luckily that doesn't
matter, as both commands just push stuff to the kernel

Looking at my much outdated gentoo's /etc/conf.d/net.eth0, that'd have
to be in your /etc/conf.d/ppp0 (or current equivalent)

====
routes_ppp0=( "default via 161.184.0.199" )
mtu_ppp0="1492"
====

No idea at all how this is handled with dialup on gentoo. When I still
used dialup (>10 years ago, IIRC?), I used wvdial, since then, I used
my own shell-scripts for DSL calling ifconfig/pppd (with pppoe at
first). The scripts/config-files should still be somewhere on disk

If in doubt, do as I do, write your own script containing the relevant
commands to get "your internet" up and running. Even if it'll just be
for future reference in case of trouble.

>(also from the ubuntu side)
>root@gnubu:~# ifconfig ppp0
>ppp0 Link encap:Point-to-Point Protocol
> inet addr:161.184.44.73 P-t-P:161.184.0.199 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
^^^^

That MTU is IIRC too big for PPP. Change that to 1492 or less.

> RX packets:5867 errors:0 dropped:0 overruns:0 frame:0
> TX packets:6439 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:3
> RX bytes:1694892 (1.6 MB) TX bytes:746705 (746.7 KB)

That looks like an established connection (despite the MTU) to the
gateway, as well as you said there a dns got assigned.

-dnh

[1] not enough time to tweak two systems on my main box

--
Me? No, why me? She's much more interesting. An enigma wrapped up in a
riddle with a tail in the middle. -- Harper about Trance Gemini
-- Andromeda 1x14 - Harper 2.0
 
Old 03-19-2012, 09:37 AM
 
Default Goodbye to gentoo?

Hello!

On Sun, 18 Mar 2012 18:44:20 -0600
Canek Peláez Valdés <caneko@gmail.com> wrote:
>
> You need to edit the file to remove duplicates and redundant mirrors
> (I can usually do it inside emacs in two minutes or less), and then
> check what files you already have in /usr/portage/distfiles (with a
> tiny bash script). You get the list of files you need, and only select
> those from the list of URLs, and then you have the files you need to
> download. You go back to the wi-fi cafe, download the files on a USB
> drive, and return home to put them on /usr/portage/distfiles. And then
> you can upgrade world.
>
I just wanted to note that it may be unnecessary to edit a list of
files in editor to remove the extra mirrors. I usually do:

cat files-to-fetch.lst | cut -d " " -f1 | wget -c -i -

and it downloads only using the first mirror for every file. It doesn't
check for the existing files though. So it depends on the situation. I
use my broadband Internet connection at work to fetch any number of
files for my home PC. So it doesn't matter for me whether I download
some files that I already have, but it may be important in your case.
Perhaps, it would be useful if emerge had such a feature - to
generate a list of files that do really need to be downloaded.

Regards,
Vladimir


-----
<v_2e@ukr.net>
 
Old 03-19-2012, 01:15 PM
Neil Bothwick
 
Default Goodbye to gentoo?

On Sun, 18 Mar 2012 22:44:33 -0600, Maxim Wexler wrote:

> route -n shows nothing except ppp0
> (this is from ubuntu, but it was the same for gentoo when it was
> working) root@gnubu:~# route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface 0.0.0.0 0.0.0.0 0.0.0.0 U 0
> 0 0 ppp0 161.184.0.199 0.0.0.0 255.255.255.255 UH
> 0 0 0 ppp0

Why show us what it was when it worked? What does route -n show from
your broken Gentoo now?


--
Neil Bothwick

Shotgun wedding: A case of wife or death.
 
Old 03-19-2012, 01:26 PM
Maxim Wexler
 
Default Goodbye to gentoo?

>
> cat files-to-fetch.lst | cut -d " " -f1 | wget -c -i -
>

I know how to generate a fetch list and wget the files. The problem is
syncing portage on another machine, my netbook, ubuntu-based. Or
maybe, I could boot sysresc on the netbook. It's gentoo based IIRC and
do a re-sync back home as per C P Valdes.
 
Old 03-19-2012, 01:31 PM
Maxim Wexler
 
Default Goodbye to gentoo?

> Why show us what it was when it worked? What does route -n show from
> your broken Gentoo now?
>
>
> --
> Neil Bothwick

Good question. Heading over there now. So if I can't get it working
there's gonna have to be some awkward shuttling back and forth.
 
Old 03-19-2012, 08:48 PM
 
Default Goodbye to gentoo?

Hello!

On Mon, 19 Mar 2012 08:26:21 -0600
Maxim Wexler <maxim.wexler@gmail.com> wrote:

> ... The problem is syncing portage on another machine, my netbook,
> ubuntu-based.
>
You could just download the portage snapshot and unpack it on your
Gentoo machine.

Regards,



-----
<v_2e@ukr.net>
 

Thread Tools




All times are GMT. The time now is 09:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org