linux server - newbie user
Hello guys, I'm kinda newbie in this and I need some help.
I have a linux server with 3 network interfaces, and 2 pppoe accounts from my ISP with 2 different ADSL modems. Here is a sketch of what I want to do and I don't know exactly the procedure. - pppoe1 \ / eth1-ppp1 ISP - - - Server -> Eth0-Swtich>Client - pppoe2 / \ eth2-ppp2 Client computer will be assigned with an ip address automaically via dhcp server based on mac address. Can sombebody tell me the steps I need to follow or if a tutorial for this case is available on the internet? My first question is how do I configure eth1 and eth2? Thanks a lot. |
Quote:
What distribution are using for that? You need to work on the routing tables of your server. Anyway, look at this, may it is what you need: http://www.labtestproject.com/linnet/routing.html Also, how do you need to use your double-ISP connection: in balance, in failover or else? Remember, google is your friend! Giood luck! |
Thanks for your answer, I'm using Fedora core 14.
And yes my modems cand assign an ip address by dhcp, in this moment they are configured in routing mode and they are conecting automatically with user and password,, but I want them in bridge mode and setup pppoe on my linux server to connect to the ISP. Something like that: eth1 with ppp1 and eth2 with ppp2 -> ISP1 and ISP2, and eth0 route to client using dhcp and mac address. I hope I didn't miss any details. Thank you. |
Quote:
Well, I think that a good approach would be split the problem in simplier piecies. First of all you need to set up a DHCP server for the eth0 attached network. Here you can find some hints and tips about: http://docs.fedoraproject.org/en-US/...ng-server.html It is a great step-by-step and easy guide. The next steps is the Internet attached interfaces: it this case you need to work on the routing tables of your gateway server. Take a look at this: http://docs.fedoraproject.org/en-US/...ic-routes.html Hope this helps! Good work |
Hello again
I am trying to install dhcp on my fedora
[root@bercanet /]# yum install dhcp Loaded plugins: langpacks, presto, refresh-packagekit Adding en_US to language list Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again [root@bercanet /]# getting this I searched google for solutions but nothing, please tell me how can I solve this or another way to install dhcp Thanks a lot. |
Quote:
A suggestion for you issue could be this: Code:
Old 12th June 2009, 03:13 PM http://forums.fedoraforum.org/showthread.php?t=223472 Hope this helps! |
Thank you for the answer, I solved the problem by installing Debian which is a better solution.
I am not sure how to configure iptables and routing tables in my situation: eth1: ISP1 eth2: ISP2 Eth0: LAN I want to output internet connection from ISP1 and ISP2 via Eth0 by mac addresses. My DHCP.conf file looks like this: root@dhcppc0:~# cat /etc/dhcp/dhcpd.conf default-lease-time 600; max-lease-time 7200; INTERFACES="eth0" authoritative; subnet 172.10.222.0 netmask 255.255.255.0 { range 172.10.222.1 172.10.222.254; option domain-name-servers 193.231.100.130 , 193.231.100.134 host test-local { hardware ethernet 08:00:07:26:c0:a5; fixed-address 172.10.222.3; } I want to asign ipaddresses by MAC and route to different ISP's ( 2 computers to isp1 and other 2 computers to ISP2). can you help me please? |
To use dhcp and mac address associciation you need to look for "client reservation" option
Quote:
Code:
host <hostname> { Code:
range 172.10.222.1 172.10.222.254 Code:
range 172.10.222.10 172.10.222.254 Good job! |
All times are GMT -5. The time now is 10:22 PM. |