لطفا وارد شوید یا ثبت‌نام کنید تا به انجمن‌ها دسترسی کامل داشته باشید.



 
امتياز موضوع :
  • 0 رأي - معدل امتيازات : 0
  • 1
  • 2
  • 3
  • 4
  • 5
امکان استفاده همزمان از wireless و کارت شبکه
2006-11-17, 05:06 PM,
ارسال : #1
امکان استفاده همزمان از wireless و کا
باسلام
آیا امکان داره که به طور همزمان از wireless و کارت شبکه برای اتصال به اینترنت در یک شبکه استفاده کرد؟
در صورت امکان از چه نرم افزاری باید استفاده کرد؟
باتشکر
جستجوی تمامی ارسال های کاربر
نقل قول این ارسال در یک پاسخ
2006-11-17, 06:22 PM,
ارسال : #2
 
سلام
نباید غیر ممکن باشه اما این برام سواله که چه کانکشنی دارید که بیش از 100Mbps است، حتی اگر بی سیسم و بر فرض 802.11g هم باشه 54Mbps خواهد بود که الآن ADSL هم 1Mbps نیست.

[ltr]
$Nəvid$
In a world without any fences or walls,
Who needs gates or windows ?
گنو ایران | لیست مقالات فارسی گنو ایران |
[/ltr]
مشاهده تارنمای کاربر جستجوی تمامی ارسال های کاربر
نقل قول این ارسال در یک پاسخ
2006-11-17, 08:26 PM,
ارسال : #3
 
نه ایشون هم می خواهند از اینترنت lan استفاده کنند و هم وایرلس یعنی سعی کنند از 2جا اینترنت بگیرند درسته؟
جستجوی تمامی ارسال های کاربر
نقل قول این ارسال در یک پاسخ
2006-11-17, 08:37 PM,
ارسال : #4
 
adjoneidi نویسنده :نه ایشون هم می خواهند از اینترنت lan استفاده کنند و هم وایرلس یعنی سعی کنند از 2جا اینترنت بگیرند درسته؟
باسلام و تشکر از توجه شما
بله دقیقا منظورم همینه
دوستان نظری ندارن
جستجوی تمامی ارسال های کاربر
نقل قول این ارسال در یک پاسخ
2006-11-17, 09:23 PM,
ارسال : #5
 
برای این کار باید تنظیمات روتینگ پیچیده‌ای داشته باشید!

[ltr]Life *free = new Life(const long OpenSource);[/ltr]
مشاهده تارنمای کاربر جستجوی تمامی ارسال های کاربر
نقل قول این ارسال در یک پاسخ
2006-11-17, 09:29 PM,
ارسال : #6
 
به نظر من بحث خیلی جالبیه alan میشه یک مطلب در این مورد معرفی کنید یا بیشتر توضیخ دهید.
نقل قول این ارسال در یک پاسخ
2007-06-23, 10:22 PM,
ارسال : #7
 
بله این کار شدنی است ، اما باید برنامه ای داشته باشید که دریافت دیتا رو برای شما به صورت پارالل تعریف کنه یعنی عمل دریافت رو به صورت موازی انجام بده
تقریبا کاری شبیه به این رو با مودم های V.92 انجام میدادن برای دایل آپ
نقل قول این ارسال در یک پاسخ
2007-06-23, 10:36 PM,
ارسال : #8
Re: امکان استفاده همزمان از wireless و
nima0102 نویسنده :باسلام
آیا امکان داره که به طور همزمان از wireless و کارت شبکه برای اتصال به اینترنت در یک شبکه استفاده کرد؟
در صورت امکان از چه نرم افزاری باید استفاده کرد؟
باتشکر

منم قبلا دنبال همچین کاری بودم ولی نتونستم برنامه ای پیدا کنم که بشه همچین کاری کرد . به عنوان مثال توی برنامه knetworkmanager وقتی کانکشن مربوط به lan رو انتخاب می کنی کانکشن مربوط به wireless به طور اتوماتیک غیر فعال میشه .

LinuxShare
جستجوی تمامی ارسال های کاربر
نقل قول این ارسال در یک پاسخ
2007-06-24, 03:40 AM,
ارسال : #9
Re: امکان استفاده همزمان از wireless و
hosein-mec نویسنده :
nima0102 نویسنده :باسلام
آیا امکان داره که به طور همزمان از wireless و کارت شبکه برای اتصال به اینترنت در یک شبکه استفاده کرد؟
در صورت امکان از چه نرم افزاری باید استفاده کرد؟
باتشکر

منم قبلا دنبال همچین کاری بودم ولی نتونستم برنامه ای پیدا کنم که بشه همچین کاری کرد . به عنوان مثال توی برنامه knetworkmanager وقتی کانکشن مربوط به lan رو انتخاب می کنی کانکشن مربوط به wireless به طور اتوماتیک غیر فعال میشه .


این کار Load Sharing یا Load Balancing گفته میشه ، چندین راه مختلف دارید ،

یک ) Route ها رو به صورت Random برای client ها Route کنید .

دو ) پرتکل ها مختلف رو روی لینک های مختلف Route کنید .


در طبیعت متنوع ارتباط ISP مورد دوم کارامده .

Wish you Were here ...
مشاهده تارنمای کاربر جستجوی تمامی ارسال های کاربر
نقل قول این ارسال در یک پاسخ
2007-06-24, 01:03 PM,
ارسال : #10
Re: امکان استفاده همزمان از wireless و
[quote="nima0102"]باسلام
آیا امکان داره که به طور همزمان از wireless و کارت شبکه برای اتصال به اینترنت در یک شبکه استفاده کرد؟
در صورت امکان از چه نرم افزاری باید استفاده کرد؟
باتشکر[/

تنها راهی که وجود داره استفاده از پروتکل روتینگ ‌BGP هست که می تونه هر دو خط تورو load balance بکنه وگرنه راه دیگری نداری. علت این هم خیلی ساده هست جون در دنیای اینترنت BGP اجرا شده و همه روتر ها ادرس همه روتر های دنیا رو دارن پس باید از شبکه شما هم ۲ آدرس داشته باشند تا بتوانند به هر دو آنها بفرستند و در نتیجه شما هم باید BGP را اجرا کنید تا هر ۲ لینک خروجی شما از بیرون دیده شوند و BGP فابلیت load balceing روی ۲ یا جند خط با سرعت مختلف را دارد. ولی از من به شما نصیحت کار سختی هست کار با BGP به فکر راه دیگری باشید.
نقل قول این ارسال در یک پاسخ
2007-06-24, 01:48 PM,
ارسال : #11
!
کد :
A common configuration is the following, in which there are two providers that connect a local network (or even a single machine) to the big Internet.

                                                                 ________
                                          +------------+        /
                                          |            |       |
                            +-------------+ Provider 1 +-------
        __                  |             |            |     /
    ___/  \_         +------+-------+     +------------+    |
  _/        \__      |     if1      |                      /
/             \     |              |                      |
| Local network -----+ Linux router |                      |     Internet
\_           __/    |              |                      |
   \__     __/       |     if2      |                      \
      \___/          +------+-------+     +------------+    |
                            |             |            |     \
                            +-------------+ Provider 2 +-------
                                          |            |       |
                                          +------------+        \________

There are usually two questions given this setup.
4.2.1. Split access

The first is how to route answers to packets coming in over a particular provider, say Provider 1, back out again over that same provider.

Let us first set some symbolical names. Let $IF1 be the name of the first interface (if1 in the picture above) and $IF2 the name of the second interface. Then let $IP1 be the IP address associated with $IF1 and $IP2 the IP address associated with $IF2. Next, let $P1 be the IP address of the gateway at Provider 1, and $P2 the IP address of the gateway at provider 2. Finally, let $P1_NET be the IP network $P1 is in, and $P2_NET the IP network $P2 is in.

One creates two additional routing tables, say T1 and T2. These are added in /etc/iproute2/rt_tables. Then you set up routing in these tables as follows:

      ip route add $P1_NET dev $IF1 src $IP1 table T1
      ip route add default via $P1 table T1
      ip route add $P2_NET dev $IF2 src $IP2 table T2
      ip route add default via $P2 table T2
    

Nothing spectacular, just build a route to the gateway and build a default route via that gateway, as you would do in the case of a single upstream provider, but put the routes in a separate table per provider. Note that the network route suffices, as it tells you how to find any host in that network, which includes the gateway, as specified above.

Next you set up the main routing table. It is a good idea to route things to the direct neighbour through the interface connected to that neighbour. Note the `src' arguments, they make sure the right outgoing IP address is chosen.

        ip route add $P1_NET dev $IF1 src $IP1
        ip route add $P2_NET dev $IF2 src $IP2
      

Then, your preference for default route:

        ip route add default via $P1
      

Next, you set up the routing rules. These actually choose what routing table to route with. You want to make sure that you route out a given interface if you already have the corresponding source address:

        ip rule add from $IP1 table T1
        ip rule add from $IP2 table T2
      

This set of commands makes sure all answers to traffic coming in on a particular interface get answered from that interface.

Warning    

Reader Rod Roark notes: 'If $P0_NET is the local network and $IF0 is its interface, the following additional entries are desirable:

ip route add $P0_NET     dev $IF0 table T1
ip route add $P2_NET     dev $IF2 table T1
ip route add 127.0.0.0/8 dev lo   table T1
ip route add $P0_NET     dev $IF0 table T2
ip route add $P1_NET     dev $IF1 table T2
ip route add 127.0.0.0/8 dev lo   table T2                                      

'

Now, this is just the very basic setup. It will work for all processes running on the router itself, and for the local network, if it is masqueraded. If it is not, then you either have IP space from both providers or you are going to want to masquerade to one of the two providers. In both cases you will want to add rules selecting which provider to route out from based on the IP address of the machine in the local network.
4.2.2. Load balancing

The second question is how to balance traffic going out over the two providers. This is actually not hard if you already have set up split access as above.

Instead of choosing one of the two providers as your default route, you now set up the default route to be a multipath route. In the default kernel this will balance routes over the two providers. It is done as follows (once more building on the example in the section on split-access):

        ip route add default scope global nexthop via $P1 dev $IF1 weight 1 \
        nexthop via $P2 dev $IF2 weight 1
      

This will balance the routes over both providers. The weight parameters can be tweaked to favor one provider over the other.

Note that balancing will not be perfect, as it is route based, and routes are cached. This means that routes to often-used sites will always be over the same provider.

Furthermore, if you really want to do this, you probably also want to look at Julian Anastasov's patches at http://www.ssi.bg/~ja/#routes , Julian's route patch page. They will make things nicer to work with.

نرم افزار مانیتورینگ شبکه اختصاصی شده به همراه تقویم شمسی و ...
مشاهده تارنمای کاربر جستجوی تمامی ارسال های کاربر
نقل قول این ارسال در یک پاسخ
2007-06-25, 04:14 PM,
ارسال : #12
پاسخ: !
از دوستان کسی تا حالا load balancing در لینوکس را بصورت عملی امتحان کرده ؟
مدتی است که روی load balancing کار می کنم و غیر از روش فوق روش round robin و mark کردن packet ها هم هست که اساتید اگر تجربه ای در این مورد دارند مطرح کنند .
نقل قول این ارسال در یک پاسخ


رفتن به انجمن :


کاربران در حال مشاهده موضوع : 1 مهمان