LinuxQuestions.org
Help answer threads with 0 replies.
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 09-15-2005, 04:08 PM   #1
adasko
LQ Newbie
 
Registered: Apr 2004
Location: London, UK
Distribution: Debian
Posts: 4

Rep: Reputation: 0
Question 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
 
Old 09-15-2005, 04:45 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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>
 
Old 09-15-2005, 06:40 PM   #3
adasko
LQ Newbie
 
Registered: Apr 2004
Location: London, UK
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 09-15-2005, 07:01 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
 
  


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
internet router for multiple static ips shizzilla Linux - Networking 3 11-23-2005 11:20 PM
routing problem with 2 static (external) IPs gjmwalsh Linux - Networking 3 05-23-2004 09:17 PM
shorewall with 2 external static ips and DMZ gjmwalsh Linux - Networking 0 05-10-2004 09:31 PM
ADSL - Routing Static IPs NiM Linux - Networking 1 03-06-2004 06:57 AM
Adding multiple static IPs to one NIC digihlp Linux - Networking 2 06-26-2003 07:13 PM

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

All times are GMT -5. The time now is 12:27 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
Open Source Consulting | Domain Registration