Results 1 to 4 of 4

Thread: Using 2 IP addresses

  1. #1
    Junior Member
    Join Date
    Nov 2005
    Location
    --
    Posts
    1

    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.

  2. #2
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441

    Re: Using 2 IP addresses

    Quote 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.

  3. #3
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    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

  4. #4
    Senior Member registered user
    Join Date
    Apr 2005
    Location
    italy
    Posts
    245

Similar Threads

  1. How do you block website addresses in Knoppix?
    By Levi32 in forum Networking
    Replies: 2
    Last Post: 03-30-2007, 09:33 PM
  2. 2 eth addresses but only one "card"
    By master_b in forum Networking
    Replies: 0
    Last Post: 05-26-2004, 05:09 AM
  3. 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
  •  


IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD) picture

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

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

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

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

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

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

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

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

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

IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU

$229.99