LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Two Internet Line on One Interface (http://www.linuxquestions.org/questions/linux-networking-3/two-internet-line-on-one-interface-4175446129/)

hesisaboury 01-18-2013 01:15 AM

Two Internet Line on One Interface
 
Hello,
i have one interface with multiple alias interface (0:1,0:2,0:3 ..) for interface range 0:1-2 there is 1Mb/s ineternet with static ip , now i want 512Mb/s internet on 0:3 with static ip and different gw , how can i implement that ....
for internet i used wireless connection , for some reason i should separate server's internet from client internet

Best Regards

bijo505 01-18-2013 08:21 AM

Quote:

Originally Posted by hesisaboury (Post 4872674)
Hello,
i have one interface with multiple alias interface (0:1,0:2,0:3 ..) for interface range 0:1-2 there is 1Mb/s ineternet with static ip , now i want 512Mb/s internet on 0:3 with static ip and different gw , how can i implement that ....
for internet i used wireless connection , for some reason i should separate server's internet from client internet

Best Regards

Hi Hesisaboury,

As per my understanding, if you are having only one interface and two internet connection and you need to access two network, if it is correct, you need to create the vlan in your switch and set up the vlan id in to the interface of your system. After that the machine can access both of the VLAN host and internet. The following URL will help you to set up that

https://access.redhat.com/knowledge/...n-tagging.html
http://www.linuxjournal.com/article/7268?page=0,1
http://www.cyberciti.biz/tips/howto-...work-vlan.html
http://www.arrfab.net/blog/?p=40

If you are not looking for this, kindly draw the diagram and upload, so may be people can help you.

hesisaboury 01-20-2013 01:14 AM

Thank u for your attention,

i can not understand , why vlan ,,, is it possible use routing instead of vlan ... here is my state
eth3:0 , 1, 2, 3 ==> four public ip , internet 1024Mb/s
eth3:4 ==> new IP and new GW ,, Internet 512mb/s

i was thinking about route .... PLZ if i'm wrong , explane more..

Thanks

bijo505 01-20-2013 06:08 AM

Hi Hesisaboury,

As per my understanding... how can you terminate both internet connection in a single interface.....? I am not sure whether is it possible or not. But in the case of creating two vlan in your s/w, you can assign both network in a single Ethernet card using aliasing, But I think that also doesn't serve your requirement....Can you please update the diagram here.. So it will give better idea about this and may be other people can help on this.

hesisaboury 01-21-2013 04:47 AM

here is my situation :

eth0:0 -> ip-pub1....eth0:1 -> ip-pub2......eth0:2 -> ip-pub3 ..... (new) eth0:3-> ip-pub4
all eth0:0-2 == same gw
eth0:3 -> diff gw
for client's internat i used snat (eth0:0) , and for eth0:1,2->DNAT (mail,web)

we have some remote servers with high transaction (up/down) . they slowed the client's internet. i decided to have another internet line , the isp provide the new line on the existing line . (isp --- wireless ---linuxGW(my GW)).
now i want route remote server traffic go through the new line.

Best Regards

bijo505 01-21-2013 05:43 AM

Quote:

Originally Posted by hesisaboury (Post 4874576)
the isp provide the new line on the existing line . (isp --- wireless ---linuxGW(my GW)).
now i want route remote server traffic go through the new line.

Best Regards

Hi,

A few questions from my side.

a) What is the equipment provided by the ISP (CPE), is it a modem or router?
b) What is the type of connection provided by ISP. is it a wired or wireless and how many connections?
c) What is the type of connection from the CPE to the server. is it a wired or wireless and how many connections?
d) If they provide the new connection on the existing line, the network would be same as the exiting or with a new subnet with all these IP's belongs to that new subnet right?

PS:- Still I think your scenario will not work with a SINGLE Ethernet card on the server.

hesisaboury 01-21-2013 11:29 PM

Finally I Solved it
all i have done , SNAT based on destination now my remote server's traffic is going through the new line . when i remove SNAT for client , my server have internet. it means that works.

here is :
1) i have mikrotik wireless (i think router)
2) there is a wireless connection between us and ISP , we had one connection but now 2 CON
3) i have diff IP and Subnet

Thank u bijo505 for your help


All times are GMT -5. The time now is 09:49 AM.