Linux / UNIX Tech Support Forum
This is a discussion on Kubuntu / Ubuntu Lan Ethernet card bonding Tutorial within the Networking, Firewalls and Security forums, part of the Mastering Servers category; Hello i want to know how to configure bonding in kubuntu/ubuntu linux: 3 network cards: 2 Internet + 1 Lan ...
Register free or login to your account to remove all advertisements.
|
|||||||
| Networking, Firewalls and Security No it's not a secret. Talk about firewalls and security issues. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
Hello i want to know how to configure bonding in kubuntu/ubuntu linux:
3 network cards: 2 Internet + 1 Lan Thanks in Advance |
|
||||
|
Hi,
You need to add following package to attach and detach slave interfaces to a bonding device Code:
sudo apt-get update && apt-get install ifenslave-2.6 Now setup bonding mode for Round-robin policy: Code:
vi /etc/modprobe.d/arch/i386 Code:
alias bond0 bonding options bonding mode=0 miimon=100 Code:
auto lo iface lo inet loopback1 auto bond0 iface bond0 inet static address 192.168.1.100 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.254 post-up ifenslave bond0 eth0 eth1 Code:
less /proc/net/bonding/bond0 ifconfig -a Linux Ethernet Bonding Driver HOWTO Debian Administration :: Aggregating network interfaces Linux bond or team multiple network interfaces (NIC) into single interface | nixCraft
__________________
Vivek Gite |
|
|||
|
Thanks for the fast answer.
i have another questions: 1. the ip address i have to configure in the gateway of my lan pc's is the bond0 ip address? 2. if i have configured a squid proxy, to take advantage of bonding + transparent proxy should i configure the iptable to route to bond0 device instead of eth0 which is the actual configuration? i mean: i have it configured like this: iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128 i need to change to eth0 for bond0?? |
|
||||
|
Put your router IP address that connects to your WAN / LAN / Internet
Code:
iface bond0 inet static .... gateway 10.5.1.200 ...
__________________
Rocky Jr. What's wrong? I hope I am not making you uncomfortable... Never send a boy to do a mans job. |
|
|||
|
i have installed and configured squid 2.6.
i made the transparent proxy configuration: "http_port 8080 transparent" "always_direct allow all" and set the route: "iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8080" i put the ip of the lan interface of the server in the gateway of another machine, and the internet does not work until i set the proxy in the browser connection configuration. then i installed firestarter and enable the sharing internet connection option and the internet works without the proxy configuration in the browser. the question is: how do i know if the clients having this server as their gateway are using the squid cache or going straight to the internet?? Thanks in Advance |
|
|||
|
Hi all
i want to bond several nics together where each nic has an own internet connection. i. e.: host 0 has 3 interfaces eth0, eth1, eth2. each of them is connected to a separate host. host0:eth0 to host1:eth0 host0:eth1 to host2:eth0 .... each host 1,2 ... acts as a gateway with an internet connection. the intend is to to bond all internet connections to one fast internet connection. client --- host0:bond0 --- host0:eth0 --- host1:eth0 ip 168.0.1.1 --- host0:eth1 --- host2:eth1 ip 168.0.2.1 --- host0:eth2 --- host3:eht2 ip 168.0.3.1 How can i configure multiple gateways for the one bond ? Or how can i specify for each slave interface its own gateway ? Thanks for any reply. |
|
|||
|
Is it possible to bond if bond0 is dynamic. I have been trying for a while now with little success
I have tested the NIC's and they should work. I have even loaded XP and they do work using WinGate and InterGate but I don't want XP on my box. |
![]() |
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bonding mode not changing | bdptcob | Linux software | 6 | 18th November 2009 11:50 AM |
| my HCL laptop Lan Card and Sound Card Not Detecting | imported_vishal_titre | Getting started tutorials | 2 | 23rd February 2007 02:20 PM |
| Bonding Error | puppen | Linux software | 0 | 19th January 2007 10:56 AM |
| ethernet card error netstat | Linux software | 1 | 30th January 2006 04:25 PM | |
| iptables rules for three ethernet | brijeshchougule | Linux software | 2 | 16th June 2005 02:42 PM |