LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-07-2003, 07:56 AM   #1
hrr
LQ Newbie
 
Registered: Feb 2003
Location: Sweeden
Distribution: Debian
Posts: 6

Rep: Reputation: Disabled
Unhappy 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
 
Old 03-07-2003, 10:20 AM   #2
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
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.
 
Old 03-07-2003, 12:04 PM   #3
dsltech
Member
 
Registered: Mar 2003
Distribution: mandrake 9, of course
Posts: 31

Rep: Reputation: 15
get more equipment: cisco is the way to go!
 
  


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
Binding multiple IP Addresses to same NIC Harlin Linux - Networking 4 10-26-2005 05:10 AM
multiple ip addresses on 1 nic? houler Linux - Networking 4 04-26-2005 03:53 PM
Multiple addresses on one NIC via DHCP - possible? babzog Linux - Networking 0 03-25-2004 10:43 AM
Binding multiple IP addresses to a nic card Natalie Linux - Networking 9 08-12-2003 08:27 PM
Multiple addresses for a single NIC grub Programming 1 08-04-2003 02:24 AM

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

All times are GMT -5. The time now is 11:40 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