asdasd

양승현·2022년 9월 30일
0

cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

10.10.10.99 controller
10.10.10.100 compute1
10.10.10.101 compute2
10.10.10.102 compute3
10.10.10.103 bastion


cat ifcfg-br-ex
TYPE=OVSBridge
BOOTPROTO=static
NAME=br-ex
DEVICE=br-ex
DEVICETYPE=ovs
ONBOOT=yes
IPADDR=211.183.3.99
PREFIX=24
GATEWAY=211.183.3.2
DNS1=8.8.8.8
NM_CONTROLLED=no


cat ifcfg-eth0
TYPE=OVSPort
BOOTPROTO=none
DEVICE=eth0
NAME=eth0
DEVICETYPE=ovs
OVS_BRIDGE=br-ex
ONBOOT=yes
NM_CONTROLLED=no


cat ifcfg-eth1
TYPE=Ethernet
BOOTPROTO=none
NAME=eth1
DEVICE=eth1
IPADDR=10.10.10.99
PREFIX=24
ONBOOT=yes


cat ifcfg-eth2
TYPE=Ethernet
BOOTPROTO=none
NAME=eth2
DEVICE=eth2
IPADDR=20.20.20.99
PREFIX=24
ONBOOT=yes


systemctl stop firewalld   systemctl disable firewalld   systemctl stop NetwokManager   systemctl disable NetwokManager   systemctl enable network   systemctl start network


cat /etc/default/grub

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="(seds,release.(sed 's, release .*,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet net.ifnames=0 biosdevname=0"
GRUB_DISABLE_RECOVERY="true"


systemctl start NetworkManager
nmcli net on
systemctl disable NetworkManager
systemctl stop NetworkManager
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot


0개의 댓글