Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-15-2005, 04:08 PM
|
#1
|
LQ Newbie
Registered: Apr 2004
Location: London, UK
Distribution: Debian
Posts: 4
Rep:
|
ADSL and multiple external static IPs
Hi,
Need to find out how to set up multiple static external IPs on an ADSL modem eg. speedtouch 330 (USB ADSL modem). I've set up a single static IP router (on Debian) before but can't seem to find information on how to manage setting up a block of static IPs and hope that someone here can help. I don't know if it's possible to use the speedtouch for this purpose.
To explain further, my ultimate goal is to have 1 external static IP for my use, another for the my business, another for a bandwidth capped wireless network in my building, another for the test webserver etc. I want to keep the traffic seperated for security and I have other sites I want to connect to externally, which will help with my firewall/iptables configuration on both sides.
Would anyone be able to point me in the right direction?
Will it be a matter of correctly configuring PPPD and maybe using aliases or bridging with the multiple NICs in my router box?
Also any suggestions how to manage the routing would be very useful.
And before anyone suggests it, I also have an ADSL modem router but I'd prefer to use a linux solution.
Thanks in advance
Adam
|
|
|
09-15-2005, 04:45 PM
|
#2
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
If you want the debian router to have all the static IPs (or more than one) you can use interface aliases:
Code:
ifconfig eth0:0 up <IP2>
ifconfig eth0:1 up <IP3>
|
|
|
09-15-2005, 06:40 PM
|
#3
|
LQ Newbie
Registered: Apr 2004
Location: London, UK
Distribution: Debian
Posts: 4
Original Poster
Rep:
|
Thanks Matir for the suggestion.
I assume that you meant that my ppp connection will have aliases eg. ppp:0, ppp:1 etc rather than eth0:0, eth0:1? Or have I misunderstood what I should be doing with my NIC?
I would expect the modem to grab the IPs and not for me to have to manually configure them? I won't be able to check until Tuesday when the ADSL service is activated.
Also if I wanted to restrict ppp:0 traffic to eth0 and ppp:1 to eth1, would that be solely a routing issue or would I need iptables rules as well to be on the safe side?
Thanks,
Adasko
|
|
|
09-15-2005, 07:01 PM
|
#4
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
By default, any given interface will only grab ONE IP. You'll need to tell it about the others. It should predominantly be a routing issue, yes.
|
|
|
All times are GMT -5. The time now is 12:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|