Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Go script recent examples

Featured Replies

I'm interested in recent examples for nic teaming and best practice configs. Anyone care to share?

This works on several machines I've built. Put this at the end of the go file:

 

ifconfig eth0 down
modprobe bonding mode=balance-rr miimon=100
ifconfig bond0 192.168.11.198 netmask 255.255.255.0 up
ifenslave bond0 eth0
ifenslave bond0 eth1
route add default gw 192.168.11.1 bond0

 

Set Obtain IP Address Automatically: to No

 

Leave IP Address, Netmask, and Gateway blank.

 

Manually add a DNS server or 2.

 

If the additional NIC does not work, i.e., it doesn't show up in ifconfig, try a different brand. Intel always works and Rosewell PCI-e works a well.

  • Author

Thank you.

 

Do you know of a way to run dns on upbraid that's not ddns?

  • 1 month later...

This works on several machines I've built. Put this at the end of the go file:

 

ifconfig eth0 down
modprobe bonding mode=balance-rr miimon=100
ifconfig bond0 192.168.11.198 netmask 255.255.255.0 up
ifenslave bond0 eth0
ifenslave bond0 eth1
route add default gw 192.168.11.1 bond0

 

Set Obtain IP Address Automatically: to No

 

Leave IP Address, Netmask, and Gateway blank.

 

Manually add a DNS server or 2.

 

If the additional NIC does not work, i.e., it doesn't show up in ifconfig, try a different brand. Intel always works and Rosewell PCI-e works a well.

 

 

Just to update this thread, I've just used this code but modified as follows:

 

ifconfig eth0 down
modprobe bonding mode=balance-rr miimon=100
ifconfig bond0 192.168.1.150 netmask 255.255.255.0 up
ifenslave bond0 eth0
ifenslave bond0 eth1
route add default gw 192.168.1.150 bond0
ifconfig bond0 mtu 9000 up

 

Results in:

 

  bwm-ng v0.6 (probing every 0.500s), press 'h' for help
  input: /proc/net/dev type: avg (90s)
  /         iface                   Rx                   Tx                Total
  ==============================================================================
               lo:         131.55  B/s          131.55  B/s          263.10  B/s
             eth0:          23.22 MB/s          183.60 KB/s           23.40 MB/s
             eth1:          23.31 MB/s          183.82 KB/s           23.48 MB/s
            bond0:          46.53 MB/s          367.45 KB/s           46.89 MB/s
  ------------------------------------------------------------------------------
            total:          93.05 MB/s          735.02 KB/s           93.77 MB/s

 

:)

 

This line contains the host address:

ifconfig bond0 192.168.1.150 netmask 255.255.255.0 up

 

This line should contain the router address:

route add default gw 192.168.1.150 bond0

 

The addresses must be different.

Thanks!

  • 2 months later...

i'm intrigued... how does one benefit from NIC teaming ? I see you can almost double your throughput, but do I need anything special in the rest of my network to benefit from the increased throughput ?

ifconfig eth0 down
modprobe bonding mode=balance-rr miimon=100
ifconfig bond0 192.168.1.150 netmask 255.255.255.0 up
ifenslave bond0 eth0
ifenslave bond0 eth1
route add default gw 192.168.1.150 bond0
ifconfig bond0 mtu 9000 up

 

Your default gateway address can't be the same as your PC address, perhaps you used "192.168.1.1" ?

 

Ps. I see dgaschk made already the same remark

This works on several machines I've built. Put this at the end of the go file:

 

ifconfig eth0 down
modprobe bonding mode=balance-rr miimon=100
ifconfig bond0 192.168.11.198 netmask 255.255.255.0 up
ifenslave bond0 eth0
ifenslave bond0 eth1
route add default gw 192.168.11.1 bond0

 

Set Obtain IP Address Automatically: to No

 

Leave IP Address, Netmask, and Gateway blank.

 

Manually add a DNS server or 2.

 

If the additional NIC does not work, i.e., it doesn't show up in ifconfig, try a different brand. Intel always works and Rosewell PCI-e works a well.

 

With the round-robin mode the same MAC address will appear on diferent switch ports, which in general leads to interruptions of the traffic..

 

To make it work it usually requires the creation of an ethernet port group on the switch.

 

Did you do anything special on the switch side?

 

This works on several machines I've built. Put this at the end of the go file:

 

ifconfig eth0 down
modprobe bonding mode=balance-rr miimon=100
ifconfig bond0 192.168.11.198 netmask 255.255.255.0 up
ifenslave bond0 eth0
ifenslave bond0 eth1
route add default gw 192.168.11.1 bond0

 

Set Obtain IP Address Automatically: to No

 

Leave IP Address, Netmask, and Gateway blank.

 

Manually add a DNS server or 2.

 

If the additional NIC does not work, i.e., it doesn't show up in ifconfig, try a different brand. Intel always works and Rosewell PCI-e works a well.

 

With the round-robin mode the same MAC address will appear on diferent switch ports, which in general leads to interruptions of the traffic..

 

To make it work it usually requires the creation of an ethernet port group on the switch.

 

Did you do anything special on the switch side?

 

Yes. The switch must support bonding.

I created a GUI front-end to set up bonding. This option is added to the "network settings" page.

 

I am putting it through testing phases at the moment...

 

Though there are a couple of restrictions:

 

1. Bonding option is only available when at least two ethernet interfaces are present in the system

2. Bonding option only appears when a fixed (no DHCP) address is configured Got it working with DHCP too.

3. As soon as bonding is activated it is not possible to change the IP settings (bonding must be de-activated again)

4. It is up to the user to ensure that a chosen "mode of operation" is working properly (i.e. proper switch configuration where required)

 

For those who want to do some background reading on bonding, have a look here

 

A picture of how it looks...

 

network settings and bonding.png

  • 3 months later...
  • Author

Where is the front end?  Did you share the gui?

I created a GUI front-end to set up bonding. This option is added to the "network settings" page.

 

I am putting it through testing phases at the moment...

 

Though there are a couple of restrictions:

 

1. Bonding option is only available when at least two ethernet interfaces are present in the system

2. Bonding option only appears when a fixed (no DHCP) address is configured Got it working with DHCP too.

3. As soon as bonding is activated it is not possible to change the IP settings (bonding must be de-activated again)

4. It is up to the user to ensure that a chosen "mode of operation" is working properly (i.e. proper switch configuration where required)

 

For those who want to do some background reading on bonding, have a look here

 

A picture of how it looks...

 

network settings and bonding.png

 

image is not working.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.