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.
|
|
03-07-2003, 08:56 AM
|
#1
|
LQ Newbie
Registered: Feb 2003
Location: Sweeden
Distribution: Debian
Posts: 6
Rep:
|
Multiple IP addresses on one NIC
Hello
I need to bind several IP addresses to a single NIC on one of my firewalls.
I am using kernel 2.4.20 with iptables 1.2.7a on a host with 3 NICs.
NIC1 = Internal LAN
NIC2 = Sister organisation
NIC3 = Internet
What I need is the ability to spoof one or more hosts on the internal LAN, by representing them as individual addresses on NIC2.
All other hosts on the internal LAN that want to talk to "Sister organisation" are simply SNAT'ed by the standard NIC2 IP, and this is working fine.
How do I bind the extra IP adresses to NIC2, so I can use these in nat and filter rules, host the same services for more than one internal host etc?
Preferably there should be no binding between the host part of the IP adress on the inside and the outside - i.e. inside the host could be called 192.168.0.10 and outside 10.11.12.13 or something.
Regards,
Henning
|
|
|
03-07-2003, 11:20 AM
|
#2
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
Use the following designations for your ethernet devices:
eth0:0
eth0:1
eth0:2
You will probably need to read up on routing as well, since each of
these IP addresses will probably need a different routing table.
|
|
|
03-07-2003, 01:04 PM
|
#3
|
Member
Registered: Mar 2003
Distribution: mandrake 9, of course
Posts: 31
Rep:
|
get more equipment: cisco is the way to go!
|
|
|
All times are GMT -5. The time now is 08:18 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
|
|