LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-18-2013, 01:15 AM   #1
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Rep: Reputation: 0
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
 
Old 01-18-2013, 08:21 AM   #2
bijo505
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: Fedora & Ubuntu
Posts: 77

Rep: Reputation: 18
Quote:
Originally Posted by hesisaboury View Post
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.
 
Old 01-20-2013, 01:14 AM   #3
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
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

Last edited by hesisaboury; 01-20-2013 at 01:19 AM.
 
Old 01-20-2013, 06:08 AM   #4
bijo505
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: Fedora & Ubuntu
Posts: 77

Rep: Reputation: 18
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.
 
Old 01-21-2013, 04:47 AM   #5
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
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
 
Old 01-21-2013, 05:43 AM   #6
bijo505
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: Fedora & Ubuntu
Posts: 77

Rep: Reputation: 18
Quote:
Originally Posted by hesisaboury View Post
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.
 
Old 01-21-2013, 11:29 PM   #7
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 199

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Command Line Interface sameeruj Linux - Newbie 10 12-14-2011 04:06 PM
Command Line Interface sj061 Linux - Newbie 4 02-22-2007 01:48 AM
Can only use command line interface! The helpless one Linux - Newbie 6 03-12-2006 03:42 PM
How to get back into command line interface bonniehandi Linux - Newbie 1 11-19-2005 12:07 AM
Can't get from command line interface to GUI dphildebrand Linux - Newbie 3 12-03-2003 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:59 AM.

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