-
Using 2 IP addresses
Hello, I am at work.
We have migrated to a new system, Web.
and we would like to start using linux, (cheaper in some point)
however I have a little difficulty.
Our network has been done by a weird person, so now each computer need to have 2 IP addresses so a UNISYS computer can provide the service. One IP for LAN and another for internet (WAN).
OK, now I need to set the two IP addresses on one NIC interface to be able to access all resourses.
how can I set it. The network configuration wizard knopix or auditor show me just let me add one IP address.
Obviously I need to add it using code, however; how.
-
Administrator
Site Admin-
Re: Using 2 IP addresses

Originally Posted by
Grendal1982
Our network has been done by a weird person,
You are trying to make things very difficult; I doubt that you are going to get a quick fix the way the problem is stated.
What was your old system and how exactly did the weird person manage to get it to use 2 IP addresses for one NIC? And how does the NIC decide which IP address to use for any packet?
Of course, you may manage to get software to dynamically change the IP address depending on what the user is doing; but that's not going to work well if there are incoming requests on the network when the card is in the other mode (but since the card is really addresses by it's unique MAC address there may be a way to make it work).
I would seriously consider fixing what the weird person has done. An alternate and inexpensive solution might be to add a secod NIC to the systems, each NIC can have it's own setting.
-
Senior Member
registered user
The ifconfig command is what you need. It is also know as IP aliasing. You may have to edit the /etc/network/interfaces file.
http://www.faqs.org/docs/Linux-mini/IP-Alias.html
http://gentoo-wiki.com/HOWTO_IP_Aliasing
-
Senior Member
registered user
Similar Threads
-
By Levi32 in forum Networking
Replies: 2
Last Post: 03-30-2007, 09:33 PM
-
By master_b in forum Networking
Replies: 0
Last Post: 05-26-2004, 05:09 AM
-
By mabhatter in forum Ideas
Replies: 7
Last Post: 04-13-2003, 09:05 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN
$145.00

OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN
$298.00

Cisco ASA 5506-X Network Security Firewall Appliance- No Adapter
$50.00

Firewalla Purple Gigabit Firewall Router Factory Reset Excellent Cond G2U
$245.00

Fortinet FortiGate FortiWiFi 80F Network Security Firewall (FG-80F)
$73.49

10GbE OPNsense Firewall VPN AES QAT 4-Core Atom C3558 2.20GHz 8GB DDR4 128GB SSD
$165.00

PfSense/OPNsense - 2x1Gb, 4x2.5Gb, 2x10Gb, C3558, 4GB, 128GB NVMe, AES-NI, QAT
$259.00

Fortinet FortiGate 60F FG-60F P24286-03-13 Network Firewall Security Appliance
$155.75

SonicWall SOHO Wireless Network Security Appliance 01-SSC-0218
$199.00

SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED
$1149.99