LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-18-2011, 04:42 PM   #1
realbluntz
Member
 
Registered: Jun 2010
Location: the D
Distribution: arch x86_64
Posts: 57

Rep: Reputation: 3
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

Last edited by realbluntz; 01-18-2011 at 04:46 PM.
 
Old 01-18-2011, 07:26 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,345
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
static routes fdelval Linux - Newbie 1 08-03-2010 07:03 PM
Static routes using routes/ifroutes-eth-id.. files and default gateway disabled TimtheEagle Linux - Networking 0 05-31-2008 07:08 PM
Static Routes not Working tself Linux - Networking 5 09-19-2007 08:04 AM
Problem with Static Routes kewlemer Linux - Networking 5 07-06-2006 01:18 AM
automatic static routes? eantoranz Linux - Networking 5 07-19-2005 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration