카테고리 없음

[Ubuntu20.04] MTU 확인 및 변경

밝은숲 2022. 6. 15. 13:43

1. MTU 확인

# root@ubuntu01:~# ifconfig | grep mtu
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

 

 

2. MTU 변경

(1) ifconfig 사용 *재부팅 시 초기화

# root@ubuntu01:~# ifconfig ens3 mtu 1500

 

(2) 영구 설정

/etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
  ethernets:
    ens3:
      dhcp4: no
      mtu: 1500  //추가
      addresses:
      - 172.26.0.101/24
      gateway4: 172.26.0.1
      nameservers:
        addresses:
        - 8.8.8.8
        search:
        - 8.8.4.4
  version: 2