-
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
![Quote](images/misc/quote_icon.png)
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
![IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD) picture](/store/img/M~sAAOSwFVlkVr-r/s-l225//IBM-System-X3250-M3-Server-8GB-RAM-Intel-Xeon-x344.jpg)
IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD)
$41.99
![IBM System x3250 M4 Server Intel Xeon E31220/3.10Ghz RAM 16GB HDD 2TB picture](/store/img/faAAAOSwNpBmmurh/s-l225//IBM-System-x3250-M4-Server-Intel-Xeon-E31220-3-10G.jpg)
IBM System x3250 M4 Server Intel Xeon E31220/3.10Ghz RAM 16GB HDD 2TB
$79.00
![IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System picture](/store/img/xiEAAOSwwGtmRmN6/s-l225//IBM-Power-S822-8284-22A-12SFF-Power8-3-89GHz-6Core.jpg)
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System
$314.99
![IBM System x3250 M4 Server Intel Xeon E31220/3.10Ghz RAM 16GB HDD 1TB picture](/store/img/faAAAOSwNpBmmurh/s-l225//IBM-System-x3250-M4-Server-Intel-Xeon-E31220-3-10G.jpg)
IBM System x3250 M4 Server Intel Xeon E31220/3.10Ghz RAM 16GB HDD 1TB
$79.00
![IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 512GB RAM No HDD Server picture](/store/img/gB8AAOSwbdlmoAB0/s-l225//IBM-Power-S822-8284-22A-12SFF-Power8-3-89GHz-6Core.jpg)
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 512GB RAM No HDD Server
$999.00
![IBM Server Rack Cabinet Machine Type 9308 Model 42P w/ Mounting Accessories picture](/store/img/9r4AAOSw0lNmkTwe/s-l225//IBM-Server-Rack-Cabinet-Machine-Type-9308-Model-42.jpg)
IBM Server Rack Cabinet Machine Type 9308 Model 42P w/ Mounting Accessories
$379.99
![IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD picture](/store/img/oRsAAOSw~pRmQitC/s-l225//IBM-System-x3550-M3-Dual-Intel-Xeon-X5650-2-67GHz-.jpg)
IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD
$68.50
![IBM System X3650 M4 7915AC1 Server 2*Intel Xeon E5-2640 2.5GHz 32GB SEE NOTES picture](/store/img/GXwAAOSwPUBmlreB/s-l225//IBM-System-X3650-M4-7915AC1-Server-2-Intel-Xeon-E5.jpg)
IBM System X3650 M4 7915AC1 Server 2*Intel Xeon E5-2640 2.5GHz 32GB SEE NOTES
$59.00
![IBM EServer Xseries 220 Desktop Computer Intel Pentium 3 1GHz 512MB Ram No HDD picture](/store/img/u88AAOSw9sxmltD4/s-l225//IBM-EServer-Xseries-220-Desktop-Computer-Intel-Pen.jpg)
IBM EServer Xseries 220 Desktop Computer Intel Pentium 3 1GHz 512MB Ram No HDD
$224.99
![IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU picture](/store/img/YXgAAOSwzGNjh6tH/s-l225//IBM-x3650-M4-2x-Xeon-E5-2670-2-6ghz-16-Core-64GB-M.jpg)
IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU
$229.99