Menggabungkan IP Address

Jika terdapat 3 buah Ethernet yang akan dijadikan 1 IP Addressnya, misalnya 10.151.151.70, maka pada file /etc/rc.d/rc.local, masukkan perintah berikut ini:

/sbin/modprobe bonding
/sbin/ip addr add 10.151.151.70/24 brd + dev bond0
/sbin/ip link set dev bond0 up
/sbin/ifenslave bond0 eth0 eth1 eth2

Untuk melihat hasilnya ketikkan perintah sbb:

# /sbin/ip addr sh

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

IP Bonding 3 Ethernet dengan

IP Bonding 3 Ethernet dengan 1 IP Address dapat dilihat dengan mengetikkan perintah sbb:

# /sbin/ip addr sh
1: lo: mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
2: eth0: mtu 1500 qdisc pfifo_fast master bond0 q
len 100
link/ether 00:50:ba:60:f0:82 brd ff:ff:ff:ff:ff:ff
inet 10.151.151.70/24 brd 10.151.151.255 scope global eth0
3: eth1: mtu 1
500 qdisc pfifo_fast master bond0 qlen 100
link/ether 00:50:ba:60:f0:82 brd ff:ff:ff:ff:ff:ff
inet 10.151.151.70/24 brd 10.151.151.255 scope global eth1
4: eth2: mtu 1
500 qdisc pfifo_fast master bond0 qlen 100
link/ether 00:50:ba:60:f0:82 brd ff:ff:ff:ff:ff:ff
inet 10.151.151.70/24 brd 10.151.151.255 scope global eth2
5: bond0: mtu 1500 qdisc noqueue
link/ether 00:50:ba:60:f0:82 brd ff:ff:ff:ff:ff:ff
inet 10.151.151.70/24 brd 10.151.151.255 scope global bond0