LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2009, 07:21 AM   #1
TheSharkBait
LQ Newbie
 
Registered: Jan 2009
Posts: 6

Rep: Reputation: 0
Gateway/router


Ive just bought a DLINK DSL-502T with half-bridge support.

Im currently wanting to set up a gateway/router using slackware linux.

Buts its doing my head in trying to figure out how get eth0 on the gateway box an external ip address.

Ive set the modem to half-bridge mode with dhcp enabled to automatically get the external ip but its not working.


Any information how how to get my external interface an external IP address would be greatly appreciated, thank you!
 
Old 02-12-2009, 03:42 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Out of curiosity: what's the benefit of having the external IP on
the computer over having all traffic NATed in your opinion?


Cheers,
Tink
 
Old 02-12-2009, 04:31 PM   #3
TheSharkBait
LQ Newbie
 
Registered: Jan 2009
Posts: 6

Original Poster
Rep: Reputation: 0
From all the guides ive read, you need an external ip on the external interface?
 
Old 02-12-2009, 05:13 PM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
So If I understand you correctly you want your cable modem / dsl modem to be just a modem and use your linux box as a router? Ok so I just reread your post. So what you want to do is take off dhcp on your modem then put it into bypass mode. This will still assign the eth0 on your linux box with the external ip from the ISP. Then you need to setup your eth1 with the lan ip and have it give out dhcp to the lan clients. Then you will need to add the route for 0.0.0.0 to be the next hop which will point to the gateway at your isp.

Last edited by jstephens84; 02-12-2009 at 05:17 PM.
 
Old 02-12-2009, 05:30 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by TheSharkBait View Post
From all the guides ive read, you need an external ip on the external interface?
The guides on what?

As long as you can configure your modem to pass any
incoming traffic on the interesting ports (HTTP,SMTP, ..)
on to your server there's no need for the set-up you're
trying to achieve ... not that it looks overly complicated
(if the modem hardware supports that kind of thing).



Cheers,
Tink
 
Old 02-12-2009, 07:05 PM   #6
servat78
Member
 
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
The DSL-502T is an ADSL Internet Gateway Router, and it will be much easier for you to use that one as the gateway and for port forwarding. It is rather a waste of resources to keep a PC running for a task that can be done with a small specialized piece of hardware that consumes less power and is designed for doing just that.

If you have some specific reasons to support a lot of local PC's with fine-grained control over several local zones etc, then you will need to delve into some heavy routing/firewall howto's. Smoothwall Express is a good choice for such a routing Linux system - needs it's own hard disk and a dedicated system. I would anyway oppose the idea of using the routing PC for other duties like working, web serving, etc.

Debian

Last edited by servat78; 02-19-2009 at 12:19 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Adding new Linux firewall/router on network with pre-existing gateway/router grittyminder Linux - Networking 4 08-13-2008 03:17 AM
linux as router/gateway/firewall to dsl-router sjoerdvvu Linux - Networking 2 02-24-2006 11:56 PM
Router Gateway inescapeableus Linux - Networking 11 09-21-2005 11:39 AM
router-gateway-AP? bigearsbilly Linux - Wireless Networking 1 01-28-2005 08:47 AM
Gateway/router bjojoi Linux - Networking 0 06-16-2003 07:19 AM


All times are GMT -5. The time now is 10:23 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration