Home > Networking, Ubuntu > Konfigurasi ubuntu untuk multi network card

Konfigurasi ubuntu untuk multi network card

Biasanya Ubuntu akan mengkonfigurasikan network card secara otomatis. tapi masalah akan muncul bila anda mempunyai banyak network card. Kadangkala Ubuntu mengubah urutan eth, misalnya seharusnya IP 192.168.0.1 adalah milik eth0 tapi kadang bisa berubah menjadi eth1.

Nah salah satu cara untuk mengatasi itu adalah dengan memasukkan konfigurasi di file /etc/iftab. Ubuntu tidak mempunyai file ini, sebagai gantinya konfigurasi disimpan di file /etc/udev/rules.d/70-persistent-net.rules.

Trick ini juga berguna bila anda harus instalasi ulang server dan tidak ingin mengganti konfigurasi dan letak network card.

 

Berikut ini contoh file /etc/udev/rules.d/70-persistent-net.rules milik saya: (ada 6 network card)

# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.

# PCI device 0x1039:0x0900 (sis900)
SUBSYSTEM==”net”, DRIVERS==”?*”, ATTRS{address}==”00:16:ec:0c:c0:95″, NAME=”eth0″

# PCI device 0x1186:0x1300 (8139too)
SUBSYSTEM==”net”, DRIVERS==”?*”, ATTRS{address}==”00:05:5d:31:33:5f”, NAME=”eth1″

# PCI device 0x1186:0x1300 (8139too)
SUBSYSTEM==”net”, DRIVERS==”?*”, ATTRS{address}==”00:11:95:5e:b5:0b”, NAME=”eth2″

# PCI device 0x1106:0x3106 (via-rhine)
SUBSYSTEM==”net”, DRIVERS==”?*”, ATTRS{address}==”00:0c:42:07:3b:00″, NAME=”eth3″

# PCI device 0x1106:0x3106 (via-rhine)
SUBSYSTEM==”net”, DRIVERS==”?*”, ATTRS{address}==”00:0c:42:07:3b:01″, NAME=”eth4″

# PCI device 0x1106:0x3106 (via-rhine)
SUBSYSTEM==”net”, DRIVERS==”?*”, ATTRS{address}==”00:0c:42:07:3b:02″, NAME=”eth5″

# PCI device 0x1106:0x3106 (via-rhine)
SUBSYSTEM==”net”, DRIVERS==”?*”, ATTRS{address}==”00:0c:42:07:3b:03″, NAME=”eth6″

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: