CentOS 7 OPSI: Unterschied zwischen den Versionen

Aus Vosp.info
Wechseln zu:Navigation, Suche
Zeile 17: Zeile 17:
 
  yum install lxc (epel)
 
  yum install lxc (epel)
  
Bridges
+
== Bridges ==
 
  vim /etc/sysconfig/network-scripts/ifcfg-br0
 
  vim /etc/sysconfig/network-scripts/ifcfg-br0
  
Zeile 41: Zeile 41:
 
  DELAY=0
 
  DELAY=0
 
  STP=yes
 
  STP=yes
 +
 +
* https://der-linux-admin.de/2015/01/centos-7-libvirt-lxc-container-mit-public-ip-und-externem-netzwerk/
 +
 +
== Forwarding ==
 +
vim /etc/sysctl.conf
 +
 +
net.ipv4.ip_forward = 1
 +
 +
sysctl -p /etc/sysctl.conf
 +
 +
* http://superuser.com/questions/803741/how-to-enable-ip-masquerading-forwarding-on-centos-7

Version vom 18. März 2015, 17:44 Uhr

Installation vom ISO in eine VirtualBox 4.13.8 Debian Jessie

  • Partitionierung
    • Manuell auswählen
      • /boot : 250M, ext4
      • / im LVM: 7 GB, ext4
      • volume group maximieren
systemctl start sshd
hostname set-hostname <hostname>
yum install vim wget net-tools
rpm -Uhv http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
yum install lxc (epel)

Bridges

vim /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge

DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes


IPADDR0=10.0.10.1
NETMASK=255.255.255.0

ONBOOT=yes
BOOTPROTO=none
NM_CONTROLLED=no
DELAY=0
STP=yes

Forwarding

vim /etc/sysctl.conf

net.ipv4.ip_forward = 1
sysctl -p /etc/sysctl.conf