Help - Search - Members - Calendar
Full Version: Ethernet Setup In Console
Linuxhelp > Support > Technical Support
Robert83
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 ?


Sincerely
Robert B
hughesjr
you should be able to use:

redhat-config-network
Robert83
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 192.168.1.200/255.255.255.0 and it would need to go out on 192.168.1.250 can you tell me how to do this?



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

route add default gw 192.168.1.250

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

route

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:
CODE
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0    *                    255.255.255.0   U     0      0        0 eth0
127.0.0.0       *                    255.0.0.0           U     0      0        0 lo
default         192.168.1.250   0.0.0.0             UG    0      0        0 eth0
Robert83
THANK YOU! smile.gif smile.gif smile.gif smile.gif
hughesjr
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 192.168.1.250
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-2017 Invision Power Services, Inc.