더북(TheBook)

5. 다음과 같이 NetworkManager, network를 재시작해 변경한 IP 정보를 시스템에 적용합니다. 그리고 ifconfig 명령어를 이용해 eth1의 IP가 잘 설정되었는지도 확인합니다. 이때 하이퍼바이저로 설치하고 있다면 eth로 시작하는 네트워크 디바이스 이름이 enp0s로 시작하는 네트워크 디바이스 이름으로 표시됩니다. NAT로 추가한 enp0s9 네트워크를 하나 더 확인할 수 있습니다.

[root@controller network-scripts]# systemctl restart NetworkManager 또는
[root@controller network-scripts]# systemctl restart network
[root@controller network-scripts]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.56.101  netmask 255.255.255.0  broadcast 192.168.56.255
        inet6 fe80::a00:27ff:fe52:3ff5  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:52:3f:f5  txqueuelen 1000  (Ethernet)
        RX packets 1124  bytes 107400 (104.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 637  bytes 99958 (97.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::a00:27ff:fe3f:ad71 prefixlen 64 scopeid 0x20<link> ether 08:00:27:3f:ad:71 txqueuelen 1000 (Ethernet) RX packets 8757 bytes 12756418 (12.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4211 bytes 283001 (276.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.