Results 1 to 6 of 6

Thread: 1 Computer 2 Networks 1 IP address

  1. #1
    Join Date
    Sep 2007
    Beans
    297

    1 Computer 2 Networks 1 IP address

    Hi everyone,

    I have a computer with 2 LAN ports.

    SERVER 1 has 2 LAN ports:
    LAN port 1 will connect to LAN "A"
    LAN port 2 will connect to LAN "B"

    The Computers connected to LAN "A" are different from the computers connected to LAN "B"...

    My question:

    Can I setup the 2 LAN ports so that they will have the same IP address? In this way if I transfer a computer from LAN "A" to LAN "B", I don't need to change their settings, they will continue looking for the same server address and it should work.

    I think this will work but my IT says it will create a conflict so he doesn't want to go with it. However, thanks to your help in previous posts, I was able to disprove him on a few topics regarding our network.

    Thanks so much.

  2. #2
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: 1 Computer 2 Networks 1 IP address

    if you mean the same network subnet for both LANs, such as 192.168.6.0/24, while every computer has a unique IP address, and can be switched between the 2 LANs without any network reconfiguration on anything, then the answer is yes, if you set up bridging on the machine connected to both of them.
    Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer

  3. #3
    Join Date
    Jun 2019
    Location
    Australia
    Beans
    33

    Re: 1 Computer 2 Networks 1 IP address

    For this you'd be better setting up a separate independent system in a virtual machine on the server and task it with acting as a simple router which can link the systems. I recommend Zeroshell. It's what I use.

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: 1 Computer 2 Networks 1 IP address

    Are the computers in LAN A in the same IP address space as LAN B? If they both share the same subnet, and addresses are allocated by a router or server running DHCP, you shouldn't need to use the two ports at all. If you want the computer to have the same address when connected to LAN A as it has connected to LAN B, use an address-reservation on the DHCP server based on the computer's MAC address.

    If the LANs have separate IP address spaces, like 192.168.1.0/24 for LAN A and 192.168.2.0/24 for LAN B, then the DHCP servers for each subnet should give you the right address when you connect to either. Again there is no need to use both LAN ports on the computer.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,702

    Re: 1 Computer 2 Networks 1 IP address

    If they are separate networks (not connected to each other), then no. It would not know which interface to send out on, because they are both on the same network in IP terms (same address space). Don't even think about trying to do that.

  6. #6
    Join Date
    Sep 2007
    Beans
    297

    Re: 1 Computer 2 Networks 1 IP address

    Hi the cog, yes. Basically they will be on the same subnet but different network. I think your answer makes the most sense. Thank you. I will try something else then.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •