Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : Public IP for VM in KVM



Threaded Mode | Print  

 Public IP for VM in KVM, Public IP for VM in KVM (3 Replies, Read 7867 times)
goodcloud
Group: Member
Post Group: Newbie
Posts: 2
Status:
Hello,
I am trying to set public IP on VPS working uder KVM.
At the begging I would like inform that I didn't met problem with setting public IP for VPS working under openVZ. Problem only exists in KVM.
I am using Virtualizor for dedicated server which I bought in OVH.

In case of openvz I just add public IP address and local IP in vps configuration wizard, under creation moment. It normally works.  My vps is accessible from main host, and from internet via public IP.

In case on KVM it won't works in the same way. Any suggestions how to make it works ?
IP: --   

Public IP for VM in KVM
goodcloud
Group: Member
Post Group: Newbie
Posts: 2
Status:
maybe I will add some symptoms&configuration

kvm network setup for affected VPS;
Code

  <interface type='network'>
      <mac address='00:16:3e:68:c5:c9'/>
      <source network='natbr1'/>
      <target dev='viifv1001'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>



Network cards configuration on VPS, eth0:0 has assigned public IP.

Code

[root@test2 ~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:16:3E:68:C5:C9
          inet addr:192.168.2.51  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe68:c5c9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:59 errors:0 dropped:0 overruns:0 frame:0
          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7024 (6.8 KiB)  TX bytes:8277 (8.0 KiB)
          Interrupt:11

eth0:0    Link encap:Ethernet  HWaddr 00:16:3E:68:C5:C9
          inet addr:188.165.x.x  Bcast:188.165.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:11

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Routing table on VPS.
Code

[root@test2 ~]# route -n
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.2.0    0.0.0.0        255.255.255.0  U    0      0        0 eth0
188.165.20.0    0.0.0.0        255.255.255.0  U    0      0        0 eth0
169.254.0.0    0.0.0.0        255.255.0.0    U    1002  0        0 eth0
0.0.0.0        192.168.2.1    0.0.0.0        UG    0      0        0 eth0


Network cards configuration on main hosts:
Code

[root@goodcloud ~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:25:90:7B:43:B0
          inet6 addr: 2001:41d0:2:aa25::/64 Scope:Global
          inet6 addr: fe80::225:90ff:fe7b:43b0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:135237 errors:0 dropped:0 overruns:0 frame:0
          TX packets:122895 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9813303 (9.3 MiB)  TX bytes:91553082 (87.3 MiB)
          Interrupt:16 Memory:fbce0000-fbd00000

eth1      Link encap:Ethernet  HWaddr 00:25:90:7B:43:B1
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:16 Memory:fbde0000-fbe00000

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:65536  Metric:1
          RX packets:9293 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9293 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4541242 (4.3 MiB)  TX bytes:4541242 (4.3 MiB)

natbr1    Link encap:Ethernet  HWaddr 52:54:00:0D:52:26
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:151 errors:0 dropped:0 overruns:0 frame:0
          TX packets:371 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:14900 (14.5 KiB)  TX bytes:24880 (24.2 KiB)

natbr1-nic Link encap:Ethernet  HWaddr 52:54:00:0D:52:26
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet6 addr: fe80::1/128 Scope:Link
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:235 errors:0 dropped:0 overruns:0 frame:0
          TX packets:260 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:24948 (24.3 KiB)  TX bytes:20810 (20.3 KiB)

viifbr0  Link encap:Ethernet  HWaddr 00:25:90:7B:43:B0
          inet addr:188.165.mainPublicIP  Bcast:188.165.223.255  Mask:255.255.255.0
          inet6 addr: fe80::225:90ff:fe7b:43b0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:133925 errors:0 dropped:0 overruns:0 frame:0
          TX packets:98194 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7181415 (6.8 MiB)  TX bytes:89341655 (85.2 MiB)

viifv1001 Link encap:Ethernet  HWaddr FE:16:3E:68:C5:C9
          inet6 addr: fe80::fc16:3eff:fe68:c5c9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:88 errors:0 dropped:0 overruns:0 frame:0
          TX packets:283 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:12955 (12.6 KiB)  TX bytes:21284 (20.7 KiB)


OVH said they add failover Public IP to my already existed IP address.
IP: --   

Public IP for VM in KVM
jevingala
Group: Virtualizor Team
Post Group: Super Member
Posts: 742
Status:
Hi,

You can check this guide to add ips on panel.

http://www.virtualizor.com/wiki/Setup_OVH

Please follow the guide properly and then you will not face issues with KVM vps.

Note:Ips assigned to  OpenVZ vps will not require mac to be generated.


-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/
IP: --   

Public IP for VM in KVM
Elizine
Group: Member
Post Group: Newbie
Posts: 32
Status:
Use a console to manually set up the IP in the operating system as if it were the host machine.

-----------------------
Fully Managed Web Hosting Provider
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 29, 2024, 1:26 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.041