HOME > 이용안내
이용안내
 
작성일 : 18-06-21 19:35
[리눅스서버] [우분투서버 Ubuntu network device명 확인 및 변경]
 글쓴이 : 제이네트워크
조회 : 35,984  

[우분투서버 Ubuntu network device명 확인 및 변경]


ubuntu 설치시 network를 잡을 경우 장치명 확인 하여 네트워크 설정하기


1. 링크 확인 및 네트워크 디바이스명 확인

root@root~:# ip link show
 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
 2: em1: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
 link/ether 0c:c4:7a:82:d4:a6 brd ff:ff:ff:ff:ff:ff
 3: em2: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
 link/ether 0c:c4:7a:82:d4:a7 brd ff:ff:ff:ff:ff:ff
 4: eth0: mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
 link/ether 6c:b3:11:3b:51:03 brd ff:ff:ff:ff:ff:ff


root@root~# ifconfig
 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:25663 errors:0 dropped:0 overruns:0 frame:0
 TX packets:25663 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0
 RX bytes:2271808 (2.2 MB) TX bytes:2271808 (2.2 MB)


이후 네트워크를 잡는다.

eth0 혹은 rename4의 deb으로 네트워크를 잡을 것이다

이때 rename4를 eth1로 변경하고 싶다면 다음과 같음 과정을 진행하라.


root@root~:# vi /etc/default/grub

일부만 수정

(수정전)
FRUB_CMDLINE_LINUX_DEAFULT=””

(수정후 )
FRUB_CMDLINE_LINUX_DEAFULT=”net.ifnames=0 biosdevname=0″

저장


root@root~:# sudo update-grub


시스템 리부팅.

리부팅 후에 장치명은 eth0 eth1 eth2로 출력됨.


[참고]

위의 과정을 거치지 않은 경우 rename3 rename4로 출력되는 경우가 있다.
이는 다음과 같이 확인 할 수 있다.

root@root~:# biosdevnamea -i rename4
 p51p1


위에 출력된 내용으로 네트워크 설정하면된다.( ethx 대신 pxxpx 값 )







Cloud server Streaming service Domain Cloud Firewall

 
 

Total 0

번호 제   목   글쓴이 날짜 조회
게시물이 없습니다.