virtualbox centos 여러개 사용 네트워크 설정 오류
아래의 메세지가 발생하는 경우
Device eth0 does not seem to be present, delaying initialization
1. ifconfig 시 아래만 보이고 eth0가 보이지 않음
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
2. vi /etc/sysconfig/network-scripts/ifcfg-eth0 실행
DEVICE=eth0
HWADDR=08:00:27:98:85:73
TYPE=Ethernet
UUID=fc47d656-0548-46aa-b325-64e32bacd29c
ONBOOT=no => yes로 변경
NM_CONTROLLED=yes
BOOTPROTO=dhcp
3. vi /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:2b:ab:57", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" => "eth11"
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:98:85:73", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" => "eth0"
4. vi etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:98:85:73 => 08:00:27:98:85:73로 변경(/etc/udev/rules.d/70-persistent-net.rules에서 신규로 eth0로 선택한놈의 address를 그대로 입력)
TYPE=Ethernet
UUID=fc47d656-0548-46aa-b325-64e32bacd29c
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
5. centos 종료
6. 설정에서 네트워크를 선택하여 아래와 같이 설정
7. 재시작
ifconfig 하면 eth0가 살아남을 확인
eth0 Link encap:Ethernet HWaddr 08:00:27:98:85:73
inet addr:10.0.4.15 Bcast:10.0.4.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe98:8573/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:447 errors:0 dropped:0 overruns:0 frame:0
TX packets:259 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:44086 (43.0 KiB) TX bytes:41278 (40.3 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
완료
'IT > Linux' 카테고리의 다른 글
crontab 등록후 You have new mail in /var/spool/mail/... (0) | 2020.12.07 |
---|---|
[linux] 개발 유용 커맨드 (0) | 2019.07.15 |
CentOS 6.x sudo 권한 추가 (0) | 2019.06.05 |
CentOS - VirtualBox ssh접속 설정 방법 (0) | 2019.05.24 |
CentOS 네트워크 NAT 설정 (0) | 2019.05.23 |