LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   linux server - newbie user (https://www.linuxquestions.org/questions/linux-newbie-8/linux-server-newbie-user-867200/)

z0ner 03-08-2011 07:23 AM

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.

MCD555 03-08-2011 09:04 AM

Quote:

Originally Posted by z0ner (Post 4282691)
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!

z0ner 03-08-2011 09:42 AM

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.

MCD555 03-08-2011 04:43 PM

Quote:

Originally Posted by z0ner (Post 4282863)
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

z0ner 03-15-2011 09:08 AM

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.

MCD555 03-21-2011 05:44 AM

Quote:

Originally Posted by z0ner (Post 4291495)
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!

z0ner 03-23-2011 08:20 AM

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?

MCD555 03-24-2011 03:22 AM

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!


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