LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 02-05-2016, 10:25 AM   #1
Bashed
Member
 
Registered: Jul 2015
Posts: 133

Rep: Reputation: Disabled
Add new subnets to KVM Host


I need to assign a handful of /27 subnets to my KVM host node (Centos 6). I routed them correctly at the Cisco switch, so that's all go.

Traceroute & ping works fine on gateway on each subnet, but not on the public IPs.

I tried this method, didn't work.
http://www.ducea.com/2006/07/15/linu...based-systems/

I created ifcfg-eth0-range1, added below and restarted network. Still can't ping public IPs.

Code:
IPADDR_START=xx.xx.98.66  
IPADDR_END=xx.xx.98.90    
CLONENUM_START=0
The /27 subnets are already assigned to the Ubuntu KVM VM itself.

Even MTR doesn't work

Code:
$ mtr --no-dns -rw xx.xx.42.188
Start: Fri Feb 5 16:42:14 2016
HOST: castle Loss% Snt Last Avg Best Wrst StDev
1.|-- 192.168.88.1 0.0% 10 0.9 1.3 0.9 2.5 0.3
2.|-- 94.246.207.117 0.0% 10 2.5 2.1 1.5 3.0 0.3
3.|-- 89.221.64.2 0.0% 10 1.5 4.3 1.5 11.8 3.3
4.|-- 81.20.144.98 0.0% 10 1.6 3.1 1.4 12.2 3.2
5.|-- 81.20.144.98 0.0% 10 2.8 4.7 1.5 24.9 7.1
6.|-- 217.159.159.122 0.0% 10 3.5 11.3 2.1 34.6 12.3
7.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
8.|-- 194.126.123.2 0.0% 10 4.6 3.8 1.9 8.7 2.1
9.|-- 62.115.34.133 0.0% 10 3.0 4.5 1.8 18.9 5.1
10.|-- 62.115.134.220 0.0% 10 12.4 13.2 12.4 14.6 0.5
11.|-- 62.115.141.201 0.0% 10 12.8 14.9 12.4 20.7 3.2
12.|-- 4.68.110.225 90.0% 10 18.2 18.2 18.2 18.2 0.0
13.|-- 4.69.156.5 0.0% 10 122.5 121.1 119.8 122.5 0.8
14.|-- 4.69.156.5 0.0% 10 120.4 120.5 119.8 122.3 0.6
15.|-- 4.28.184.174 0.0% 10 124.7 124.8 123.5 128.7 1.4
16.|-- xx.xx.19.52 50.0% 10 145.1 130.3 124.4 145.1 8.8 (core router)
17.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
 
Old 02-05-2016, 03:25 PM   #2
Bashed
Member
 
Registered: Jul 2015
Posts: 133

Original Poster
Rep: Reputation: Disabled
Code:
[root@kvm1 network-scripts]# ip addr show br1
30: br1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN 
    link/ether 26:7e:4a:b2:9a:e3 brd ff:ff:ff:ff:ff:ff
    inet xx.xx.98.66/27 brd xx.xx.98.95 scope global br1
    inet6 fe80::247e:4aff:feb2:9ae3/64 scope link 
       valid_lft forever preferred_lft forever

[root@kvm1 network-scripts]# ip addr show br0
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN 
    link/ether 00:25:90:a1:76:06 brd ff:ff:ff:ff:ff:ff
    inet xx.xx.200.2/24 brd xx.xx.200.255 scope global br0
    inet6 fe80::fc16:3cff:fe9d:705b/64 scope link 
       valid_lft forever preferred_lft forever
[root@kvm1 network-scripts]# ip route
xx.xx.98.64/27 dev br1  proto kernel  scope link  src xx.xx.98.66 
10.0.0.0/24 dev eth1  proto kernel  scope link  src 10.0.0.9 
xx.xx.200.0/24 dev br0  proto kernel  scope link  src xx.xx.200.2 
169.254.0.0/16 dev eth1  scope link  metric 1003 
169.254.0.0/16 dev br0  scope link  metric 1004 
169.254.0.0/16 dev br1  scope link  metric 1030 
default via xx.xx.200.1 dev br0 

[root@kvm1 network-scripts]# service network restart
Shutting down interface br0:                               [  OK  ]
Shutting down interface eth0:                              [  OK  ]
Shutting down interface eth1:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface br1:  Determining if ip address xx.xx.98.66 is already in use for device br0...
Error, some other host already uses address xx.xx.98.66.
                                                           [FAILED]
Bringing up interface eth0:                                [  OK  ]
Bringing up interface eth1:  Determining if ip address 10.0.0.9 is already in use for device eth1...
                                                           [  OK  ]
Bringing up interface br0:  Determining if ip address xx.xx.200.2 is already in use for device br0...
                                                           [  OK  ]
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] KVM guests and host cannot see each other TheLibertarian Linux - Virtualization and Cloud 3 02-10-2019 11:51 AM
Host with KVM and samba stgiaf Linux - Server 9 02-03-2014 01:41 PM
Redirect logs from KVM guest to KVM host essential1 Linux - Virtualization and Cloud 2 10-08-2013 03:29 PM
Redhat, KVM, how to tell if you are on a VM and who the host is? thllgo Linux - Server 4 02-04-2013 07:57 AM
LXer: Scripting KVM with Python, Part 2: Add a GUI to manage KVM with libvirt and Python LXer Syndicated Linux News 0 01-17-2012 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration