DEV Community

Fatih ASLAN
Fatih ASLAN

Posted on • Edited on

2 1

Ubuntu Netplan Bonding ve Vlan Yapılandırması

/etc/netplan/ altında ilgili config yaml dosyası içerisinde aşağıdaki gibi bond0 altında vlan 13 ve 14 yapılandırmasını kendi ortamlarınız için uyarlayabilirsiniz.

network:
  version: 2
  bonds:
    bond0:
      dhcp4: no
      interfaces: [ens1f0, ens2f0]
      mtu: 9000
      parameters:
        lacp-rate: fast
        mode: 802.3ad
        transmit-hash-policy: layer2
        mii-monitor-interval: 100
  ethernets:
    ens1f0: {}
    ens2f0: {}
    eno1: {}
  vlans:
    bond0.13:
      id: 13
      link: bond0
      mtu: 9000
      addresses: [ "10.1.13.99/24" ]
    bond0.14:
      id: 14
      link: bond0
      mtu: 1500
      addresses: [ "10.1.14.99/24" ]
      gateway4: 10.1.14.1
      nameservers:
        search: [fatlan.com]
        addresses: [ "10.1.150.150", "10.1.160.160" ]
Enter fullscreen mode Exit fullscreen mode

Akabinde yapılandırmanın geçerli olması için

sudo netplan apply
Enter fullscreen mode Exit fullscreen mode

Aşağıdaki şekilde de bonding yapılandırmalarının doğruluğunu test edebilirsiniz

cat /proc/net/bonding/bond0

mii-tool
Enter fullscreen mode Exit fullscreen mode

Her ihtimale karşı ubuntu linux için sunucuyu reboot etmek her zaman iyidir

sudo reboot
Enter fullscreen mode Exit fullscreen mode

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs