|
이그림 이해가 중요... 결국엔 oracle ip 땜시 복잡함..
네트워 인터페이스는 총 4개 필요.
nat : Oracle Private IP
host : Oracle Vip 용 2개
Brigde : 위 nat 와 Vip 하나로 묶어서 xhd하게 해줌
DHCP : Oracle ScanIP 를 할당받게 해줌...
==================================아래는 nmcli 로 처리
nmcli con del ens160 ;
nmcli con del ens192 ;
nmcli con del ens224 ;
nmcli con del br0;
ip route [ add | del | change | append | replace ] destination-address
1번
nmcli con add con-name ens160 ifname ens160 type ethernet ip4 192.168.10.147/24 gw4 192.168.10.2
nmcli con add con-name ens192 ifname ens192 type ethernet ip4 192.168.24.10/24 gw4 0.0.0.0
nmcli con add con-name ens224 ifname ens224 type ethernet ip4 192.168.10.31/24 gw4 0.0.0.0
===========================================================
[root@dbwr1 ~]# ping 192.1768.24.10
ping: 192.1768.24.10: 이름 혹은 서비스를 알 수 없습니다
[root@dbwr1 ~]# ping 192.1768.24.31
ping: 192.1768.24.31: 이름 혹은 서비스를 알 수 없습니다
============================================================
nmcli con add type bridge con-name br0 ifname br0
nmcli con mod br0 ipv4.addresses 192.168.10.1/24
nmcli con mod br0 ipv4.gateway 192.168.10.2
nmcli con mod br0 ipv4.method manual
nmcli con add type bridge-slave con-name ens160 ifname ens160 master br0
nmcli con add type bridge-slave con-name ens192 ifname ens192 master br0
nmcli con add type bridge-slave con-name ens224 ifname ens224 master br0
nmcli con show
systemctl restart NetworkManager
nmcli device status
nmcli con show br0
이 명령어로 브릿지 br0의 설정을 확인한 후, IP 주소가 제대로 설정되어 있지 않다면 아래와 같이 설정할 수 있습니다:
bash
코드 복사
nmcli con mod br0 ipv4.addresses 192.168.10.147/24
nmcli con mod br0 ipv4.gateway 192.168.10.2
nmcli con mod br0 ipv4.method manual
nmcli con up br0
==================================
nmcli con add type bridge-slave con-name ens160 ifname ens160 master br0
nmcli con add type bridge-slave con-name ens192 ifname ens192 master br0
nmcli con add type bridge-slave con-name ens224 ifname ens224 master br0
ip link show ens160
ip link show ens192
ip link show ens224
ip link show br0
systemctl restart NetworkManager
journalctl -u NetworkManager
nmcli con show
=======================================
nmcli con delete ens160
nmcli con delete ens192
nmcli con delete ens224
# 브릿지 연결 추가
nmcli con add type bridge con-name br0 ifname br0
nmcli con add type bridge-slave con-name ens160 ifname ens160 master br0
nmcli con add type bridge-slave con-name ens192 ifname ens192 master br0
nmcli con add type bridge-slave con-name ens224 ifname ens224 master br0
nmcli con mod br0 ipv4.addresses 192.168.10.147/24
nmcli con mod br0 ipv4.gateway 192.168.10.2
nmcli con mod br0 ipv4.method manual
nmcli con show
nmcli con up br0
ip link set dev br0 address 00:0C:29:E1:6B:16 <== 브리지 mac address 추가.
ip link set ens160 master br0
ip link set ens192 master br0
ip link set ens224 master br0
ip link set br0 up
=========================================================
dhcp setup -----------------------------------------
===========================================================
전체 네트워 로그 조회
journalctl -u NetworkManager
환경 설정
vi /etc/sysconfig/dhcpd
journalctl -u dhcpd -f
journalctl -u named -f
systemctl status named
cat /etc/dhcp/dhcpd.conf
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.41 192.168.10.43;
option domain-name-servers 192.168.24.10;
option routers 192.168.10.147; # 브리지 인터페이스 IP
option broadcast-address 192.168.10.255;
}
systemctl stop dhcpd
systemctl start dhcpd
systemctl status dhcpd
end160 은 ip 가 192.168.10.147
ens192 192.168.24.10
ens 224 192.168.24.31 dla 이 드네트워을 br0 인 브리지네트워을 묶음..
sudo dhclient -r
sudo dhclient
nmcli con add con-name ens160 ifname ens160 type ethernet ip4 192.168.10.148/24 gw4 192.168.10.2
nmcli con add con-name ens192 ifname ens192 type ethernet ip4 192.168.24.11/24 gw4 0.0.0.0
nmcli con add con-name ens224 ifname ens224 type ethernet ip4 192.168.10.32/24 gw4 0.0.0.0
---------------------------------------------------------------------------
bash
코드 복사
nmcli connection modify br0 ethernet.mac-address 00:0C:29:E1:6B:16 <== 브릿지 mac주소
nmcli connection down br0
nmcli connection up br0
============================================
ip addr show br0
슬레이브 인터페이스 설정 확인:
bash
코드 복사
ip addr show ens160
ip addr show ens192
ip addr show ens224
==============================
subnet 192.168.24.0 netmask 255.255.255.0 {
range 192.168.24.41 192.168.24.43;
option domain-name-servers 8.8.8.8, 8.8.4.4;
option routers 192.168.24.1; # 필요에 따라 수정
option broadcast-address 192.168.24.255;
default-lease-time 600;
max-lease-time 7200;
}
=========================================
systemctl restart dhcpd
ip addr show br0
sudo journalctl -u dhcpd
sudo ls -ld /var/lib/dhcpd
sudo ls -l /var/lib/dhcpd/dhcpd.leases
sudo mkdir -p /var/lib/dhcpd
sudo touch /var/lib/dhcpd/dhcpd.leases
sudo chown dhcpd:dhcpd /var/lib/dhcpd/dhcpd.leases
sudo chmod 640 /var/lib/dhcpd/dhcpd.leases
==================================여기까지 님
==
9월 09 16:04:17 dbwr1.localdomain dhcpd[4651]: ** Ignoring requests on ens192. If t>
9월 09 16:04:17 dbwr1.localdomain dhcpd[4651]: you want, please write a subnet de>
9월 09 16:04:17 dbwr1.localdomain dhcpd[4651]: in your dhcpd.conf file for the ne>
9월 09 16:04:17 dbwr1.localdomain dhcpd[4651]: to which interface ens192 is attac>
9월 09 16:04:17 dbwr1.localdomain dhcpd[4651]:
9월 09 16:04:17 dbwr1.localdomain dhcpd[4651]: Listening on LPF/ens160/00:0c:29:e1:6>
9월 09 16:04:17 dbwr1.localdomain dhcpd[4651]: Sending on LPF/ens160/00:0c:29:e1:6>
9월 09 16:04:17 dbwr1.localdomain dhcpd[4651]: Sending on Socket/fallback/fallback>
9월 09 16:04:17 dbwr1.localdomain dhcpd[4651]: Server starting service.
9월 09 16:04:17 dbwr1.localdomain systemd[1]: Started DHCPv4 Server Daemon.
===================================================================
어렵다. 뭔 dba 야 서버 admin 이야...
|