LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   static routes - gateway (https://www.linuxquestions.org/questions/linux-networking-3/static-routes-gateway-857114/)

realbluntz 01-18-2011 04:42 PM

static routes - gateway
 
I have a temporary system up with wlan0 and eth2. I want the eth0 address to be the gateway for accessing the internet on wlan0.
How do I setup static routes?

I'm not too keen with networking...

Code:

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.1.0    *              255.255.255.0  U    0      0        0 wlan0
10.1.1.0        *              255.255.255.0  U    1      0        0 eth2
default        10.1.1.254      0.0.0.0        UG    0      0        0 eth2


frankbell 01-18-2011 07:26 PM

Your post is a little unclear on the exact architecture of your network. For example, is the computer going to serve as the router connected to the incoming cable (or whatever) or will it be acting like a router connected to the primary router?

Here's a good tutorial. I first read it years ago when it was located at howtosubnet dot com. It is the best intro to networking for the ignorant (which I certainly was at the time) that I ever saw. It keeps it simple and goes slow.

http://www.ralphb.net/IPSubnet/index.html


All times are GMT -5. The time now is 11:47 PM.