Home > LDom > Assign VNET ID

Assign VNET ID

Today, I found that vnet mac-addresses are not matching between guest OS and ldm primary domain configuration. i.e.

At guest OS level, the vnet2 mac-address is “0:14:4f:f8:8a:74”

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
vnet2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.100.200 netmask ffffff00 broadcast 192.168.100.255
ether 0:14:4f:f8:8a:74

At Primary Domain, the vnet3 mac-address is “00:14:4f:f9:e9:19 “
# ldm list-bindings ldg2

NETWORK
NAME             SERVICE                     ID   DEVICE     MAC               MODE   PVID VID                  MTU   LINKPROP
vnet2            primary-vsw0                0               00:14:4f:f9:e9:19        1
vnet1            primary-vsw2                1               00:14:4f:f8:8a:74        1

===============================================================

Finally, I found that the ID is used to match the vnet interface at guest OS.

ID=0 –> vnet0, ID=1 –> vnet1, ID=2 –> vnet2

Therefore, I reassign the vnet to guest with ID to make sure the vnet mac-address consistent between guest OS and LDM primary domain

1. Assign the vnet to guest with id

# ldm add-vnet id=0 vnet0 primary-vsw1 ldg2

# ldm add-vnet id=1 vnet1 primary-vsw2 ldg2

# ldm add-vent id=2 vnet2 primary-vsw0 ldg2

# ldm list-bindings ldg2

NETWORK
NAME             SERVICE                     ID   DEVICE     MAC               MODE   PVID VID                  MTU   LINKPROP
vnet1            primary-vsw2                1               00:14:4f:f8:8a:74        1
vnet2            primary-vsw0                2               00:14:4f:f9:e9:19        1
vnet0            primary-vsw1                0               00:14:4f:f9:2b:c4        1

DISK

2. Bind the guest ldg2

# ldm bind ldg2
# ldm start ldg2
LDom ldg2 started

3. Verify the mac-address of guest.

Check them at Guest OS level

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
vnet0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 0.0.0.0 netmask 0
ether 0:14:4f:f9:2b:c4
vnet1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
inet 0.0.0.0 netmask 0
ether 0:14:4f:f8:8a:74
vnet2: flags=4001000842<BROADCAST,RUNNING,MULTICAST,IPv4,DUPLICATE> mtu 1500 index 2
inet 192.168.100.200 netmask ffffff00 broadcast 192.168.100.255
ether 0:14:4f:f9:e9:19

4. All mac-address are matching set at LDM primary primary

 

Advertisements
Categories: LDom
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: