IP config on proxmox host defect?

shatter

Member
Nov 27, 2009
74
0
6
Hi *,

my proxmox host has two network interfaces (eth0,vmbr0) configured to the same network (192.168.1.0):

Code:
nwi:/etc/init.d# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:24:8c:93:e2:17
          inet addr:192.168.1.140  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::224:8cff:fe93:e217/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:843417 errors:0 dropped:0 overruns:0 frame:0
          TX packets:342637 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:193722834 (184.7 MiB)  TX bytes:372082841 (354.8 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:49969 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49969 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:16743529 (15.9 MiB)  TX bytes:16743529 (15.9 MiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:2031 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2886 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:285811 (279.1 KiB)  TX bytes:218600 (213.4 KiB)

vmbr0     Link encap:Ethernet  HWaddr 00:24:8c:93:e2:17
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::224:8cff:fe93:e217/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:265249 errors:0 dropped:0 overruns:0 frame:0
          TX packets:135601 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:155251376 (148.0 MiB)  TX bytes:357607515 (341.0 MiB)

Is that normal? If not: where to change it?

If I try to ping an external host from a container, I get an error message containing the -140 ip address; the hosts address should be -100.

/etc/network/interfaces
Code:
auto lo
iface lo inet loopback

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        gateway 192.168.1.254
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

Any Ideas?

Thanx,

Joachim
 
Hi *,

my proxmox host has two network interfaces (eth0,vmbr0) configured to the same network (192.168.1.0):

Code:
nwi:/etc/init.d# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:24:8c:93:e2:17
          inet addr:192.168.1.140  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::224:8cff:fe93:e217/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:843417 errors:0 dropped:0 overruns:0 frame:0
          TX packets:342637 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:193722834 (184.7 MiB)  TX bytes:372082841 (354.8 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:49969 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49969 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:16743529 (15.9 MiB)  TX bytes:16743529 (15.9 MiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:2031 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2886 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:285811 (279.1 KiB)  TX bytes:218600 (213.4 KiB)

vmbr0     Link encap:Ethernet  HWaddr 00:24:8c:93:e2:17
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::224:8cff:fe93:e217/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:265249 errors:0 dropped:0 overruns:0 frame:0
          TX packets:135601 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:155251376 (148.0 MiB)  TX bytes:357607515 (341.0 MiB)
Is that normal? If not: where to change it?

If I try to ping an external host from a container, I get an error message containing the -140 ip address; the hosts address should be -100.

/etc/network/interfaces
Code:
auto lo
iface lo inet loopback

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        gateway 192.168.1.254
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
Any Ideas?

Thanx,

Joachim
Hi Joachim,
no that's not normal.
eth0 is the device from the bridge vmbr0. Normaly only the bridge should have an ip-address. the underlaying networkdevices should have none address.
If you have more than one bridge, only the first need a ip-address for the host.

eg:
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address  0.0.0.0
    netmask  0.0.0.0

iface vmbr0 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        gateway 192.168.1.254
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

Udo