I want to use KVM on my new F19 installation. My blocker for using Fedora's standard KVM for virtual machines was that the machines were masked from the rest of my network by NAT. Turning off NetworkManager and adding a bridge were(are) outside my comfort zone so I've waited for several releases hoping things would get simpler ( for me).
Nothing has changed so I guess I will have to. Most of the material I have found is aimed at RedHat 6 configuration with the exception of a good howto guide circa F15 by stevea.
I've assembled the following plan, but I would appreciate assistance/input either with the following plan or a good guide at F19 level of development.
My concerns with following include:
1) can I edit the ifctl-enp5s0 file and effect the P14p1 interface? (p14p1 does not exist in network-scripts)
2) is /etc/sysctl.conf still the right place for the forwarding flag? there's nothing in the file right now
3) do I need to do anything else for network.service to start on boot?
Viewers please DON'T use the attached plan without seeing feedback from any more knowledgeable members. I have low confidence in it at this at this point.
The plan:
---------------------------------------------------------
Operate as root.
su –
# Locate the NIC device to be bridged and take it down.
ifconfig
.
.
.
p14p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.1.109 netmask 255.0.0.0 broadcast 10.255.255.255
inet6 fe80::xxxx:xxxx:xxxx:xxxx prefixlen 64 scopeid 0x20<link>
ether 90:2b:34:d2:ba:7a txqueuelen 1000 (Ethernet)
RX packets 140636 bytes 202161513 (192.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 83067 bytes 5755709 (5.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
.
.
ifdown p14p1
# In '/etc/sysconfig/network-scripts' find the ifcfg-*** file which contains a
# HWADDR= line that matches the ether address for p14p1. Edit it to add a line
# BRIDGE=brg0 .
# The file /etc/sysconfig/network-scripts/ifcfg-enp5s0 contains:
PEERROUTES="yes"
IPV6INIT="yes"
UUID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" (I masked out UUID)
IPV6_PEERDNS="yes"
DEFROUTE="yes"
PEERDNS="yes"
IPV4_FAILURE_FATAL="no"
HWADDR="90:2B:34: D2:BA:7A"
BOOTPROTO="dhcp"
IPV6_DEFROUTE="yes"
IPV6_AUTOCONF="yes"
IPV6_FAILURE_FATAL="no"
IPV6_PEERROUTES="yes"
TYPE="Ethernet"
ONBOOT="yes"
NAME="enp5s0"
BRIDGE="brg0" <--- add this line
# Create a new script file to define the bridge:
#
# Add file /etc/sysconfig/network-scripts/ifcfg-brg0 to contain:
DEVICE="brg0"
TYPE="Bridge"
BOOTPROTO="dhcp"
ONBOOT="yes"
DELAY=0
# Change from 'NetworkManager' to 'network' service
systemctl disable NetworkManager
systemctl stop NetworkManager
systemctl enable network
systemctl start network
# Add a line to /etc/sysctl.conf to setup forwarding:
net.ipv4.ip_forward = 1
Nothing has changed so I guess I will have to. Most of the material I have found is aimed at RedHat 6 configuration with the exception of a good howto guide circa F15 by stevea.
I've assembled the following plan, but I would appreciate assistance/input either with the following plan or a good guide at F19 level of development.
My concerns with following include:
1) can I edit the ifctl-enp5s0 file and effect the P14p1 interface? (p14p1 does not exist in network-scripts)
2) is /etc/sysctl.conf still the right place for the forwarding flag? there's nothing in the file right now
3) do I need to do anything else for network.service to start on boot?
Viewers please DON'T use the attached plan without seeing feedback from any more knowledgeable members. I have low confidence in it at this at this point.
The plan:
---------------------------------------------------------
Operate as root.
su –
# Locate the NIC device to be bridged and take it down.
ifconfig
.
.
.
p14p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.1.109 netmask 255.0.0.0 broadcast 10.255.255.255
inet6 fe80::xxxx:xxxx:xxxx:xxxx prefixlen 64 scopeid 0x20<link>
ether 90:2b:34:d2:ba:7a txqueuelen 1000 (Ethernet)
RX packets 140636 bytes 202161513 (192.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 83067 bytes 5755709 (5.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
.
.
ifdown p14p1
# In '/etc/sysconfig/network-scripts' find the ifcfg-*** file which contains a
# HWADDR= line that matches the ether address for p14p1. Edit it to add a line
# BRIDGE=brg0 .
# The file /etc/sysconfig/network-scripts/ifcfg-enp5s0 contains:
PEERROUTES="yes"
IPV6INIT="yes"
UUID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" (I masked out UUID)
IPV6_PEERDNS="yes"
DEFROUTE="yes"
PEERDNS="yes"
IPV4_FAILURE_FATAL="no"
HWADDR="90:2B:34: D2:BA:7A"
BOOTPROTO="dhcp"
IPV6_DEFROUTE="yes"
IPV6_AUTOCONF="yes"
IPV6_FAILURE_FATAL="no"
IPV6_PEERROUTES="yes"
TYPE="Ethernet"
ONBOOT="yes"
NAME="enp5s0"
BRIDGE="brg0" <--- add this line
# Create a new script file to define the bridge:
#
# Add file /etc/sysconfig/network-scripts/ifcfg-brg0 to contain:
DEVICE="brg0"
TYPE="Bridge"
BOOTPROTO="dhcp"
ONBOOT="yes"
DELAY=0
# Change from 'NetworkManager' to 'network' service
systemctl disable NetworkManager
systemctl stop NetworkManager
systemctl enable network
systemctl start network
# Add a line to /etc/sysctl.conf to setup forwarding:
net.ipv4.ip_forward = 1