ip route add default via... a chaque redémarrage

Bonjour,

J’ai un petit problème plutôt pénible:

Lorsque je redémarre le service networking je n’ai plus internet j’usqu’a ce que je je fasse :
sudo ip route add default via <ip de mon routeur>

Que fait cette commande ?
Comment le mettre automatiquement ?

Merci

> J’ai un petit problème plutôt pénible:
>
> Lorsque je redémarre le service networking je n’ai plus internet
> j’usqu’a ce que je je fasse :
> sudo ip route add default via <ip de mon routeur>
>
> Que fait cette commande ?
> Comment le mettre automatiquement ?

translated via ImTranslator.com, i get (but can’t answer):

--------something like------------
have a small rather hard problem:

When I start again networking service I do not have more Internet
I usqu’ has what I I make:

sudo ip route add default via <ip of my navigator>

???

Andy Sipowicz

Personne à une idee ?

i can’t help you, i let the 10.3 install routine set up my networking
and have not touched it since…i boot, it connects to the internet,
NO problem…

you say when you restart networking it does not–why shut down?


Andy Sipowicz

I don’t have graphic interface.

So I’ve configure my network in
/etc/resolv.conf (DNS)
/etc/sysconfig/network/ifcfg-eth0 (bootproto, ip,mask,gateway…)

I have a a static ip not dhcp !

The problem is that when my system boot up the service network boot up too and if i don’t do :

ip route add default via 192.168.0.254 (my router ip)

i can’t ping google.fr (unknown host).

Help me please

When setting up static IPs you also have to set up default route and entries for the DNS-server(s) yourself.

Looks like you missed that out.

Every time the network start ? !!

Can i do it auto or configure it on a file ?

I’ve configure my static ip only once, now when i boot my system i don’t have to reconfigure the ip …
I can’t do the same with route table ?

Thanks

I have read your last posting three times now and to be honest, I have no idea what you are talking about.

You normally have to set up your networking once (correctly of course) and that’s it.

Excuse me, i’m french and i don’t speek very well english.

So, I’ve configure my network with static ip.
I can ping all the local network but not google or distant machine.

I have search in google why i can’t ping google. I have found that with the command “ip route add default via 192.168.0.254” that will work.

I trie it and that work very good, i can, now ping google.

My problem is that i have to do this command every time the network services start.

So i would like to know what i can do to don’t have to do this command every time i restart my computer !

I hope you understand more now.

Thanks

openSUSE Forums - View Single Post - Getting Your Wireless to Work

Run the script directly after boot when there is no connection. Read the suggestions and the links to possible solutions.

If that does not help, post the output file.

Post also the content of /etc/sysconfig/network/routes.

There is no /etc/sysconfig/network/routes file or directory

So you forgot to set up your default gateway, otherwise it would exist.

How to setup the default gateway ?

It’s not good with “gateway” in ifcfg-eth0 file ? :


BOOTPROTO='static'
IPADDR='192.168.0.10'
NAME='L1 Gigabit Ethernet Adapter'
NETMASK='255.255.255.0'
GATEWAY='192.168.0.254'
STARTMODE='auto'
USERCONTROL='no'

In the Tab “Routing”.

Can you explain more please ?

Where is table routing ?

There is no command to do it ?

Use YaST and open your eyes.

Ok i don’t have graphic interface.
I understand with google that it’s possible to use yast with command.

Yast is good on suse distribution. Suse is easy with yast!

I use to do all without yast in others distrib.

Thanks for your help

So what?

YaST also works without gui.

If you want to edit the config-file by hand, then you should at least know what you are doing.

On Mon April 13 2009 12:16 pm, geekspirit wrote:

>
> Ok i don’t have graphic interface.
> I understand with google that it’s possible to use yast with command.
>
> Yast is good on suse distribution. Suse is easy with yast!
>
> I use to do all without yast in others distrib.
>
> Thanks for your help
>
>
geekspirit;

Try:


su
YaST

Note the lower case “a” in YaST. This should give you a text base copy of
YaST. You can generally navigate with “tab”; “alt-tab”; “shift-tab”; “space”
the “up”, “down” and “enter”. To Quit “alt-Q”

P. V.
“We’re all in this together, I’m pulling for you.” Red Green