Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
01-18-2013, 01:15 AM
|
#1
|
|
Member
Registered: Dec 2010
Location: iran
Posts: 134
Rep:
|
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
|
|
|
|
01-18-2013, 08:21 AM
|
#2
|
|
Member
Registered: Nov 2012
Location: Bangalore
Distribution: Fedora & Ubuntu
Posts: 77
Rep:
|
Quote:
Originally Posted by hesisaboury
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.
|
|
|
|
01-20-2013, 01:14 AM
|
#3
|
|
Member
Registered: Dec 2010
Location: iran
Posts: 134
Original Poster
Rep:
|
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.
|
|
|
|
01-20-2013, 06:08 AM
|
#4
|
|
Member
Registered: Nov 2012
Location: Bangalore
Distribution: Fedora & Ubuntu
Posts: 77
Rep:
|
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.
|
|
|
|
01-21-2013, 04:47 AM
|
#5
|
|
Member
Registered: Dec 2010
Location: iran
Posts: 134
Original Poster
Rep:
|
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
|
|
|
|
01-21-2013, 05:43 AM
|
#6
|
|
Member
Registered: Nov 2012
Location: Bangalore
Distribution: Fedora & Ubuntu
Posts: 77
Rep:
|
Quote:
Originally Posted by hesisaboury
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.
|
|
|
|
01-21-2013, 11:29 PM
|
#7
|
|
Member
Registered: Dec 2010
Location: iran
Posts: 134
Original Poster
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:43 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|