Two Physical NICs WAN / LAN

Discussion in 'Networking Questions' started by Edrick Smith, Mar 16, 2016.

  1. Edrick Smith

    Edrick Smith Bit Poster

    Messages:
    2
    Well I seem to have taken a few steps back and have no network access to the virtual machines now.

    Basically I have the hardware node which has

    em1 - LAN Network
    em2 - WAN Network

    Before I started this little project LAN traffic was working fine over em1 to the container. However now I can't get any traffic when I add the net device I get:

    [root@localhost ~]# prlctl set FreePBX --device-add net --network LAN --ipadd 10.0.1.226/24 --gw 10.0.1.1 --adapter-type e1000

    Enable automatic reconfiguration for this network adapter.

    VM configuration validation result(s) :

    * The physical network adapter connected to virtual network adapter 1 does not exist. Do you want to save the virtual machine configuration anyway?If you click Yes now, this virtual network adapter will not be connected at the virtual machine startup.

    Creating net0 (+) dev='' ifname='eth0' network='WAN' mac=001C429C25FE card=e1000 ips='10.0.1.226/255.255.255.0 ' gw='10.0.1.1'


    Created net0 (+) dev='vme429c25fe' network='WAN' mac=001C429C25FE card=e1000 ips='10.0.1.226/255.255.255.0 ' gw='10.0.1.1'



    The VM has been successfully configured.

    [root@localhost ~]#

    ------


    If I list the interfaces

    [root@localhost ~]# prlsrvctl net list

    Network ID Type Bound To Bridge

    LAN bridged em1 br0

    WAN bridged em2 br1

    Host-Only host-only virbr1

    [root@localhost ~]#

    ------

    My em1 config:

    DEVICE="em1"
    ONBOOT=yes
    UUID="b9df6ca0-3708-4d9a-9dc3-a9f472b091bd"
    TYPE=Ethernet
    BRIDGE="br0"

    ------

    My em2 config:

    DEVICE="em2"
    ONBOOT=yes
    UUID="ba6e0cfd-ef66-4ffd-912c-37ecb66438cb"
    TYPE=Ethernet
    BRIDGE="br1"

    -------

    My br0

    DEVICE="br0"
    NAME="em1"
    ONBOOT=yes
    NETBOOT=yes
    IPV6INIT=yes
    BOOTPROTO=dhcp
    TYPE="Bridge"
    DELAY="2"
    STP="off"

    ----

    My br1

    DEVICE="br1"
    NAME="em2"
    ONBOOT=yes
    NETBOOT=yes
    IPV6INIT=yes
    BOOTPROTO=dhcp
    TYPE="Bridge"
    DELAY="2"
    STP="off"
     
  2. Pavel

    Pavel A.I. Auto-Responder Staff Member

    Messages:
    475
    Hello Edrick,

    Can you share your container's configuration file?
    You can find it in /etc/vz/conf/<CTID>.conf

    Also, please run "ip a l" and "ip r l" inside of a container and post results here.
    And if you have any iptables rules set - I'd like to take a look.

    That should be sufficient for beginning.
     
  3. Edrick Smith

    Edrick Smith Bit Poster

    Messages:
    2
    I do not see the config for the machines

    [root@localhost ~]# cat /etc/vz/conf/

    networks_classes ve-vswap.1024MB.conf-sample ve-vswap.512MB.conf-sample

    ve-basic.conf-sample ve-vswap.2048MB.conf-sample ve-vswap.plesk.conf-sample

    ve-confixx.conf-sample ve-vswap.256MB.conf-sample vps.vzpkgtools.conf-sample

    ---

    [root@localhost ~]# ip a l

    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN

    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

    inet 127.0.0.1/8 scope host lo

    inet6 ::1/128 scope host

    valid_lft forever preferred_lft forever

    2: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000

    link/ether 00:1c:42:b2:a6:25 brd ff:ff:ff:ff:ff:ff

    3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000

    link/ether 00:1c:42:85:18:d0 brd ff:ff:ff:ff:ff:ff

    inet 10.0.1.226/24 brd 10.0.1.255 scope global eth0

    inet6 fe80::21c:42ff:fe85:18d0/64 scope link

    valid_lft forever preferred_lft forever

    [root@localhost ~]#
    -----

    [root@localhost ~]# ip r l

    10.0.1.0/24 dev eth0 proto kernel scope link src 10.0.1.226

    169.254.0.0/16 dev eth0 scope link metric 1003

    default via 10.0.1.1 dev eth0

    [root@localhost ~]#
     
  4. Pavel

    Pavel A.I. Auto-Responder Staff Member

    Messages:
    475
    Hello Edrick,

    Thanks for the output! "/etc/vz/conf/" didn't have the necessary information because it is a virtual machine, not a container (someplace in your initial report you've referenced it as a container, so I got that stuck in my mind).

    Following message when you added the adapter looks very suspicious:
    * The physical network adapter connected to virtual network adapter 1 does not exist. Do you want to save the virtual machine configuration anyway?If you click Yes now, this virtual network adapter will not be connected at the virtual machine startup."
    I'd say something is wrong with em1 - it might be down. However, output you have provided is a bit confusing. I can see you add it to a "LAN" network, but then "validation" output shows "WAN" instead of "LAN" network. Excuse me, but I have to ask - was the output geniune or did you adjust it some way?

    If that is a genuine output - that smells like a bug since it looks like it attached the wrong network.
    Either way, please provide following information:
    1) current VM configuration:
    # prlctl list FreePBX -if
    2) network configuration on a node side:
    # ifconfig em1; ifconfig em2; ifconfig br0; ifconfig br1
    You can mask the IP addresses if you want, I just want to see the adapter state.
    3) Problem report from the hardware node (it will upload configuration and system/virtuozzo logs):
    # prlsrvctl problem-report --send
    I'll need you to tell me the number this command will return to you.

    Thanks in advance!
     

Share This Page