Help - Search - Members - Calendar
Full Version: Ethernet Setup In Console
Linuxhelp > Support > Technical Support
I've managed to get ssh , it really COOL thank you smile.gif .

There is a problem, since my bridge has two ethernet cards, and I've gave it a static ip adress , but haven't set up a gateway and dns, in console, where should I enter the gateway for that machine and the dns ?

Robert B
you should be able to use:

It would be working, but not in my situation, I'm using brctl , which mean that I give 2 ethernet card one IP adress,
i managed to set up the dns, but someone told be to use route to set up the gateway.

But no luck

the bridge ip adress is and it would need to go out on can you tell me how to do this?

Robert B
well the route add command for a default gateway would be this:

route add default gw

first make sure you don't already have one with the command:


then add it via the route add command...

then do route again and see if the route is there:

it should look something like this:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface    *             U     0      0        0 eth0       *                     U     0      0        0 lo
default             UG    0      0        0 eth0
THANK YOU! smile.gif smile.gif smile.gif smile.gif
if that works, you can add the command to the bottom of the file /etc/rc.local ... make sure to use the full path to the route command ... so the line to added to /etc/rc.local would be:

/sbin/route add default gw
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.