LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2011, 07:23 AM   #1
z0ner
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
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.
 
Old 03-08-2011, 09:04 AM   #2
MCD555
Member
 
Registered: May 2009
Location: Milan, Italy
Distribution: Ubuntu, Debian, Fedora, Oracle Linux
Posts: 109

Rep: Reputation: 10
Quote:
Originally Posted by z0ner View Post
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.
Well, may some more infos could help ;-) !
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!

Last edited by MCD555; 03-08-2011 at 09:10 AM.
 
Old 03-08-2011, 09:42 AM   #3
z0ner
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 03-08-2011, 04:43 PM   #4
MCD555
Member
 
Registered: May 2009
Location: Milan, Italy
Distribution: Ubuntu, Debian, Fedora, Oracle Linux
Posts: 109

Rep: Reputation: 10
Quote:
Originally Posted by z0ner View Post
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.
You're welcome!
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
 
Old 03-15-2011, 09:08 AM   #5
z0ner
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 03-21-2011, 05:44 AM   #6
MCD555
Member
 
Registered: May 2009
Location: Milan, Italy
Distribution: Ubuntu, Debian, Fedora, Oracle Linux
Posts: 109

Rep: Reputation: 10
Quote:
Originally Posted by z0ner View Post
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.
Sorry for the gap....

A suggestion for you issue could be this:

Code:
Old 12th June 2009, 03:13 PM
betsubetsu Offline
Registered User
	  	
Join Date: Nov 2004
Location: /dev/zero
Posts: 39
[SOLVED] YUM: Error: Cannot retrieve repository metadata (repomd.xml) for repository:
It turned out that my local DNS server was the problem so I stopped it and added in /etc/hosts these 2 lines:
Code:

80.239.156.215          mirrors.fedoraproject.org
213.129.242.84          mirrors.rpmfusion.org

Doing so also solved the wget problem. (http://forums.fedoraforum.org/showthread.php?t=223585)
that is a part of an online discussion that you can find entirely here:

http://forums.fedoraforum.org/showthread.php?t=223472


Hope this helps!
 
Old 03-23-2011, 08:20 AM   #7
z0ner
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
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?
 
Old 03-24-2011, 03:22 AM   #8
MCD555
Member
 
Registered: May 2009
Location: Milan, Italy
Distribution: Ubuntu, Debian, Fedora, Oracle Linux
Posts: 109

Rep: Reputation: 10
To use dhcp and mac address associciation you need to look for "client reservation" option

Quote:
Client Reservation

Client Reservation is used to be sure a computer gets the same IP address all the time. Therefore since DHCP IP address assignments use MAC addresses to control assignments, the following are required for client reservation:

MAC (hardware) address
IP address
The simpliest way is:

Code:
host <hostname> {
   hardware ethernet 00:11:22:33:44:55;
   fixed-address 172.10.222.99; }
May could be better fix addresses that are not in the dhcp range, I mean, change the range from

Code:
range 172.10.222.1 172.10.222.254
to (for example)

Code:
range 172.10.222.10 172.10.222.254
and fix the first 10 addresses....

Good job!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
just saying hi as a newbie linux user NiteM4re LinuxQuestions.org Member Intro 2 12-12-2003 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration