Forums

michaelk
michaelk
Offline
Resolved
0 votes
Hello,

Is it possible to make 1 IP range for 2 LAN's ?
I have tried different settings, and used the Search and google i cannot find a solution.

I have 3 NIC's

WAN > **.**.**.**
LAN1 1 GBit connection > 192.168.1.1 1 Gbit > Switch for homenetwork.
LAN2 10 Gbit connection > 192.168.2.1 1 NIC for a 10 Gbit connection. (only 1 serverPC)

Can i configurate my network like this, both LAN cards using the same IP range?
So my serverPC get a 192.168.1.* IP and not in the 192.168.2.* range.

LAN1
\
192.168.1.1
/
LAN2


If i set in IP Settings:

LAN1 192.168.1.1 Range: 192.168.1.100 ~ 192.168.1.200 SUB: 255.255.255.0
LAN2 192.168.1.1 Range: 192.168.1.50 ~ 192.168.1.99 SUB: 255.255.255.0

I get a IP in the DHCP Server tab, but my ServerPC gives a error: IP already used.


Thank you in advance!
Saturday, January 30 2016, 02:04 PM
Share this post:
Responses (5)
  • Accepted Answer

    michaelk
    michaelk
    Offline
    Sunday, January 31 2016, 10:00 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    Out of interest, how does that leave your /etc/sysconfig/network-scripts/ifcfg- files?


    That files are not adapted.
    so i did a reboot this morning, now all the settings are back to the point bevore the bridge. :(

    Wierd i setup your guide one more time, now is it working!!!
    I can do a reboot, all the settings are saved no errors anymore!

    ifcfg-br0

    DEVICE=br0
    TYPE="Bridge"
    ONBOOT="yes"
    USERCTL="no"
    BOOTPROTO="static"
    IPADDR="192.168.11.1"
    NETMASK="255.255.255.0"
    BRIDGE_STP="yes"


    ifcfg-enp1s0

    DEVICE=enp1s0
    TYPE="Ethernet"
    IPV6INIT="yes"
    ONBOOT="yes"
    USERCTL="no"
    BRIDGE=br0
    PROMISC="yes"


    ifcfg-enp4s0

    DEVICE=enp4s0
    TYPE="Ethernet"
    IPV6INIT="yes"
    ONBOOT="yes"
    USERCTL="no"
    BRIDGE=br0
    PROMISC="yes"


    Maybe dit change

    brctl addif br0 enp1s0

    brctl addif br0 enp4s0


    something in the system...
    Anywhay, thanks for your help!
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, January 31 2016, 07:40 AM - #Permalink
    Resolved
    0 votes
    Out of interest, how does that leave your /etc/sysconfig/network-scripts/ifcfg- files?
    The reply is currently minimized Show
  • Accepted Answer

    michaelk
    michaelk
    Offline
    Sunday, January 31 2016, 02:09 AM - #Permalink
    Resolved
    0 votes
    I didn't get it to work with your guide :(

    I used this guide the "Configuring ClearOS" part: http://macbruins.com/2011/12/01/setting-up-clearos-as-wi-fi-access-point/


    To set up the Ethernet bridge

    cd /etc/sysconfig/network-scripts


    brctl addbr br0


    ifconfig enp1s0 inet 0.0.0.0

    ifconfig enp4s0 inet 0.0.0.0


    brctl addif br0 enp1s0

    brctl addif br0 enp4s0


    ifconfig br0 up


    Add in IP Settings on br0 the IP information

    Then edit br0 in DHCP Server.

    It works now, i did not find out any trouble yet...

    I use ClearOS 7.1 Final 64x

    Thank you that you point me in the right direction!
    The reply is currently minimized Show
  • Accepted Answer

    michaelk
    michaelk
    Offline
    Saturday, January 30 2016, 03:39 PM - #Permalink
    Resolved
    0 votes
    Thank you, I give this a try later tonight!
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, January 30 2016, 02:59 PM - #Permalink
    Resolved
    0 votes
    Yes, it is possible. You need to bridge your interfaces. If it goes wrong when making the changes, be prepared to edit from the console using the nano editor as you may lose network connectivity. Once you restart your network, you'll need to either reboot your workstation or release and renew its IP lease to pick up a new IP address.

    Can I also suggest you avoid the 192.168.0.0/24 and 192.168.1.0/24 subnets to avoid future issues?
    The reply is currently minimized Show
Your Reply