[one-users] Netmask setting

Javier Fontan jfontan at opennebula.org
Fri Feb 14 01:47:23 PST 2014


Can you send us the VM definition (onevm show 20 -a). It looks like
the network info is not in the context section.

On Wed, Feb 12, 2014 at 10:21 PM, SysSolutions99
<syssolutions99 at gmail.com> wrote:
> Hi,
>
> The netmask on my network is 255.255.0.0, yet the VMs get plumbed with
> 255.255.255.0.
> I have tried setting up the netmask using the onevnet command but I am not
> able to.  Please help.
>
> here are the network details of the main host
>
> - # ifconfig br0
> br0       Link encap:Ethernet  HWaddr 00:25:90:E2:C5:98
>           inet addr:172.16.192.60  Bcast:172.16.255.255  Mask:255.255.0.0
>           inet6 addr: fe80::225:90ff:fee2:c598/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:10352600 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:5714417 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:6383539896 (5.9 GiB)  TX bytes:8971371821 (8.3 GiB)
>
> # netstat -rn
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window  irtt
> Iface
> 192.168.122.0   0.0.0.0         255.255.255.0   U         0 0          0
> virbr0
> 169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 br0
> 172.16.0.0      0.0.0.0         255.255.0.0     U         0 0          0 br0
> 0.0.0.0         172.16.192.1    0.0.0.0         UG        0 0          0 br0
>
>
> Here are the networking details of the VM:
>
> # ifconfig eth0
> eth0      Link encap:Ethernet  HWaddr 02:00:AC:10:C0:40
>           inet addr:172.16.192.64  Bcast:172.16.192.255  Mask:255.255.255.0
>           inet6 addr: fe80::acff:fe10:c040/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:165669946 errors:0 dropped:1041 overruns:0 frame:0
>           TX packets:170954965 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:27122115947 (25.2 GiB)  TX bytes:41114623111 (38.2 GiB)
>           Interrupt:10
>
> # netstat -rn
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window  irtt
> Iface
> 172.16.192.0    0.0.0.0         255.255.255.0   U         0 0          0
> eth0
> 0.0.0.0         172.16.192.1    0.0.0.0         UG        0 0          0
> eth0
>
>
>
> Here is the onevnet definition -
>
> [oneadmin at fermi ~]$ onevnet show 0
> VIRTUAL NETWORK 0 INFORMATION
> ID             : 0
> NAME           : private
> USER           : oneadmin
> GROUP          : oneadmin
> CLUSTER        : -
> TYPE           : FIXED
> BRIDGE         : br0
> VLAN           : No
> USED LEASES    : 4
>
> PERMISSIONS
> OWNER          : um-
> GROUP          : ---
> OTHER          : ---
>
> VIRTUAL NETWORK TEMPLATE
> GATEWAY="172.16.192.1"
> NETMASK="255.255.0.0"
>
> USED LEASES
> LEASE=[ MAC="02:00:ac:10:c0:40", IP="172.16.192.64",
> IP6_LINK="fe80::400:acff:fe10:c040", USED="1", VID="20" ]
> LEASE=[ MAC="02:00:ac:10:c0:55", IP="172.16.192.85",
> IP6_LINK="fe80::400:acff:fe10:c055", USED="1", VID="13" ]
> LEASE=[ MAC="02:00:ac:10:c0:56", IP="172.16.192.86",
> IP6_LINK="fe80::400:acff:fe10:c056", USED="1", VID="9" ]
> LEASE=[ MAC="02:00:ac:10:c0:5c", IP="172.16.192.92",
> IP6_LINK="fe80::400:acff:fe10:c05c", USED="1", VID="19" ]
>
> FREE LEASES
> LEASE=[ MAC="02:00:ac:10:c0:57", IP="172.16.192.87",
> IP6_LINK="fe80::400:acff:fe10:c057", USED="0", VID="-1" ]
> LEASE=[ MAC="02:00:ac:10:c0:58", IP="172.16.192.88",
> IP6_LINK="fe80::400:acff:fe10:c058", USED="0", VID="-1" ]
> LEASE=[ MAC="02:00:ac:10:c0:59", IP="172.16.192.89",
> IP6_LINK="fe80::400:acff:fe10:c059", USED="0", VID="-1" ]
> LEASE=[ MAC="02:00:ac:10:c0:5a", IP="172.16.192.90",
> IP6_LINK="fe80::400:acff:fe10:c05a", USED="0", VID="-1" ]
> LEASE=[ MAC="02:00:ac:10:c0:5b", IP="172.16.192.91",
> IP6_LINK="fe80::400:acff:fe10:c05b", USED="0", VID="-1" ]
> LEASE=[ MAC="02:00:ac:10:c0:5d", IP="172.16.192.93",
> IP6_LINK="fe80::400:acff:fe10:c05d", USED="0", VID="-1" ]
>
> VIRTUAL MACHINES
>
>     ID USER     GROUP    NAME            STAT UCPU    UMEM HOST
> TIME
>      9 oneadmin oneadmin testvm9         runn    0    512M test    32d 20h47
>     13 oneadmin oneadmin testvm1         runn    0      2G test    29d 02h33
>     19 oneadmin oneadmin testvm2         runn    0      2G test    3d 17h13
>     20 oneadmin oneadmin testvm3         runn    1      2G test    3d 15h54
> [oneadmin at fermi ~]$
>
>
> Regards.
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan



More information about the Users mailing list