Add additional IP with different MAC

[email protected]

Well-Known Member
Aug 3, 2016
59
5
8
Everywhere
cPanel Access Level
Root Administrator
Hello,

I have a problem by adding a new IP address and I have stuck!

I have a KVM - VPS and I want to add additional IP so I have for one site dedicated IP.

I manage to add IP and also test inside the network ping as successful. But outside the vps the ping don't work and the IP is not reachable. 100% packet loss!

I talk with my provider and told me that I must use separate mac address to that IP to work properly because of "strict IP-MAC binding".

So please can advice me how to add a single IP to WHM with different MAC?

How eventually succeed to add IP and make it reachable?

Thank you!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
I manage to add IP and also test inside the network ping as successful. But outside the vps the ping don't work and the IP is not reachable. 100% packet loss!

I talk with my provider and told me that I must use separate mac address to that IP to work properly because of "strict IP-MAC binding".
Hello,

Could you ask your provide for the specific IP address and MAC address combination you should use?

Thank you.
 

[email protected]

Well-Known Member
Aug 3, 2016
59
5
8
Everywhere
cPanel Access Level
Root Administrator
Hello,

Yes I already know the MAC address and the IP. My problem is when I go from WHM and add this IP (the new that I want for dedicated) it takes the MAC address of the main WHM IP.

How it's possible to add the new IP and make it reachable from outside with different MAC from the main WHM IP?

Thanks both for the replies!
 

[email protected]

Well-Known Member
Aug 3, 2016
59
5
8
Everywhere
cPanel Access Level
Root Administrator
Hello,
I made the below changes until now:


Code:
# virsh domiflist VPS

Interface  Type       Source     Model       MAC
-------------------------------------------------------
vnet0      bridge     br0        virtio      00:00:00:00:00:AB

# virsh attach-interface --domain VPS --type bridge --source br0 --model virtio --mac 00:00:00:00:00:CD --config --live

# virsh domiflist VPS

Interface  Type       Source     Model       MAC
-------------------------------------------------------
vnet0      bridge     br0        virtio      00:00:00:00:00:AB
vnet1      bridge     br0        virtio      00:00:00:00:00:CD
I made also to my kvm VPS the below changes:

Code:
# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth1

# vi /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE="eth1"
BOOTPROTO=none
IPADDR="MYNEWIP"
NETMASK="255.255.255.192"
ONBOOT="yes"
TYPE="Ethernet"
HWADDR=00:00:00:00:00:CD
From WHM I see the newIP and again I can make ping internally! But the problem exist from outside! It's not reachable.

Now I have setup my new IP with my extra MAC and add successfully to WHM but the problem exist!

Any help or other idea is appreciated! :confused:
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.