Results 1 to 9 of 9
Ok, so after reading through hundreds of online posts I am left with a partially working configuration. I am tryin to shotgun 2 ethernet cards. So far this is what ...
- 10-22-2006 #1Just Joined!
- Join Date
- Oct 2006
- Posts
- 5
Ethernet bonding
Ok, so after reading through hundreds of online posts I am left with a partially working configuration. I am tryin to shotgun 2 ethernet cards. So far this is what I have done. I have edited /ect/rc.d/rc.local and added these lines.
modprobe bonding
ip addr add 192.168.1.10/24 brd + dev bond0
ip link set dev bond0 up
ifenslave bond0 eth0 eth1
This configuration works, but because I have not specifyed the gateway or DNS servers i cannot access the internet from the machine. My question is using the method I have used, how do i specify the DNS and gateway ip settings. Any help on this frustrating matter would be greatly appriciated~!
- 10-22-2006 #2Linux Enthusiast
- Join Date
- Jul 2005
- Location
- Maryland
- Posts
- 521
Try adding:
to /ect/rc.d/rc.local.Code:route add -net 192.168.1.0 netmask 255.255.255.0 dev bond0
and
to /etc/resolv.conf (if 192.168.1.1 is the dns server)Code:nameserver 192.168.1.1
- 10-22-2006 #3Just Joined!
- Join Date
- Oct 2006
- Posts
- 5
hi. I tried adding:
route add -net 192.168.1.0 netmask 255.255.255.0 dev bond0
It still does not work. /ect/resolve.conf already contains:
nameserver 192.168.1.1
I appriciate the input, any help would be awsome.... im about to throw the server in traffic
- 10-22-2006 #4Just Joined!
- Join Date
- Oct 2006
- Posts
- 5
Or..... which would be ideal, is there anyway instead of specifying a static IP i can specify it to dhcp?
- 10-23-2006 #5Linux Enthusiast
- Join Date
- Jul 2005
- Location
- Maryland
- Posts
- 521
ok, try this manually in terminal:
if it works, add it to /etc/rc.d/rc.local and reboot the machine and see if it still works then.Code:/sbin/route add default gw 192.168.1.1
If it does not work, could you describe your network (ip addresses of DNS and gateway you use to connect to the internet without bonding)?
- 10-23-2006 #6Just Joined!
- Join Date
- Oct 2006
- Posts
- 5
Hey I did that and it WORKED! Thanks man.. I just had to add dev bond0 to the code u gave me and everything works... I really appriciate it!
- 10-23-2006 #7Linux Enthusiast
- Join Date
- Jul 2005
- Location
- Maryland
- Posts
- 521
hey, no problem. I'm glad it works!
- 10-23-2006 #8Just Joined!
- Join Date
- Oct 2006
- Posts
- 5
is there anyway to specify dns to that?
- 10-23-2006 #9Linux Enthusiast
- Join Date
- Jul 2005
- Location
- Maryland
- Posts
- 521
the dns is specified in /etc/resolv.conf .
you can change it there. I don't know any other way.


Reply With Quote