본문 바로가기

엔지니어/Linux

우분투 네트워크 디바이스 변경

728x90
반응형
root@localhost:~# ip link show

1: lo: <LOOPBACK,UP,LOWER_UP> 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: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000

    link/ether 6c:b3:11:3b:3e:ff brd ff:ff:ff:ff:ff:ff

3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000

    link/ether 38:60:77:f7:68:65 brd ff:ff:ff:ff:ff:ff

4: em2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000

    link/ether 6c:b3:11:3b:3f:01 brd ff:ff:ff:ff:ff:ff



root@localhost:/etc/network# vim /etc/default/grub


GRUB_CMDLINE_LINUX="biosdevname=0"




root@localhost:/etc/network# update-grub2

Generating grub configuration file ...

Found linux image: /boot/vmlinuz-3.13.0-24-generic

Found initrd image: /boot/initrd.img-3.13.0-24-generic

Found memtest86+ image: /boot/memtest86+.elf

Found memtest86+ image: /boot/memtest86+.bin

done

root@localhost:/etc/network# reboot




root@localhost:~# ip link show

1: lo: <LOOPBACK,UP,LOWER_UP> 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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000

    link/ether 6c:b3:11:3b:3e:ff brd ff:ff:ff:ff:ff:ff

3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000

    link/ether 38:60:77:f7:68:65 brd ff:ff:ff:ff:ff:ff

4: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000

    link/ether 6c:b3:11:3b:3f:01 brd ff:ff:ff:ff:ff:ff

root@localhost:~#



반응형

'엔지니어 > Linux' 카테고리의 다른 글

pdns install  (0) 2016.05.26
l2tp  (0) 2016.05.26
169.254.0.0 이놈은 뭐지?  (0) 2016.05.26
redis  (0) 2016.05.26
HA클러스터  (0) 2016.05.26