Archive for مارس, 2008

لینوکس و حافظه های جدا شدنی*

مارس 29, 2008

سه چیز برای لینوکس باید مشخص شود:

  • لینوکس با چه دستگاهی ارتباط برقرار می کند مثلا هارد…
  • نام درایوی که می خواهید به آن دستگاه خاص اختصاص دهید.
  • دستگاه مورد نظر از چه سیستم فایلی استفاده می کند.

شکل کلی دستور mount به صورت زیر است:

Mount –t [type][device][directory]

انواع type :

  • Iso9660 : برای سی دی رام ها
  • Smbfs : برای اشتراک های ویندوزی
  • Vfat : برای فلاپی هل،حافظه های فلش usb و کارت های حافظه

نکته 1 : می خواهیم کارتی با قایلیت نوشتن مانت کنیم، از ارگومان -o (option)استفاده می کنیم مثلا :

Mount –t vfat /dev/sdc1 /mnt/sdcard –o rw

نکته 2 : برای اینکه برای همه ی کاربران اجازه دسترسی کامل داده شود باید از گزینه ی umask=1000 استفاده کنیم به شکل زیر :

Mount –t vfat /dev/sdc1 /mnt/sdcard –o rw,umask=000

———————————————–

اشتراکات ویندوز

استفاده از پروتکل samba(?) و دقیقا مثل قبل است
مثلا :

Mount –t smbfs //WindowsPC/SharedFolder /MountDirectory

در صورتی که سیستم مقصد به نام کاربری برای احراز هویت شمت میاز داشته باشد :

Mount –t smbfs //WindowsPC/SharedFolder /MountDirectory –o username=myuser,password=mypass

نکته 1 : در اشتراک های ویندوزی umask قابل استفاده نیست.در عوض می توان از fmask و dmask استفاده کردد که به ترتیب اجازه دسترسی فایل ها و دایرکتوری ها را تعیین می کند.

نکته 2 :برای استفده از فایل هایی با حجم بیشتر از 2 گیگا بایت باید از گزینه lfs استتفاده کنید مثلا

Mount –t smbfs //WindowsPC/SharedFolder /MountDirectory –o username=myuser,password=mypass,lfs

 

*مطالب لز مجله ی شبکه شماره 233 ، صفحه ی 230 بود.

Process Explorer

مارس 29, 2008

برنامه رایگان Process Explorer به شما کمک می کندتا تمام فرآیندهای در حال اجرا روی سیستم خود را مشاهده کنید.

لینک دانلود

office 2007

مارس 17, 2008
Outlook برای ارتباط با اینترنت از تنظیمات Ie استفاده می کند.

فرمت فایلهای اصلی از اساس تغییر یافته و هم اکنون می توانند هر بخش از یک سند را به نوان یک فیل جداگانه و فشرده یا زیپ شده ذخیره کرد.این قابلیت می تواند بازیابی فایل های معیوب را آسان تر سازد.(همان فایل با پسوند docx( ماکروها جداگانه با پسوند docm و … حجم فایلهای ذخیره شده کاهش می یابد.

  • اصلی ترین تغییر در outlook بوده که می توان با مثلا با کلیک راست روی پیغام آنرا به فهرست وظایف فرستاد….
  • داشتن چندین تقویم کنار هم
  • اضافه شدن یک نوار To do
  • قابلیت مرور RSS

معرفی ShatePoint به عنوان یک انقلاب در بسته Office:

  • MOSS(Mikrosoft Office SharePoint Server) گروه ها قادر می سازد برای همکاری و ارتباط با هم،به آسانی وب سایت ایجاد کنند و آن ها را بروز نگهدارند.
  • امکان انتخاب کامپوننت های مختلف…
  • به اشتراک گذاری داده ها با برنامه های آفیس

 


 

RIP&ERGP

مارس 17, 2008

show ip route Static Route:   ip route 10.1.2.0 255.255.255.0 serial0… Dynamic Rute: The following list spells out the basic distance vector logic and introduces a few important concepts: Routers add directly connected subnets to their routing tables, even without a routing protocol. Routers send routing updates out their interfaces to advertise the routes that this router already knows. These routes include directly connected routes, as well as routes learned from other routers. Routers listen for routing updates from their neighbors so that they can learn new routes. The routing information includes the subnet number and a metric. The metric defines how good the route is; lower metric routes are considered better routes. When possible, routers use broadcasts or multicasts to send routing updates. By using a broadcast or multicast packet, all neighbors on a LAN can receive the same routing information in a single update. If a router learns multiple routes to the same subnet, it chooses the best route based on the metric. Routers send periodic updates and expect to receive periodic updates from neighboring routers. Failure to receive updates from a neighbor in a timely manner results in the removal of the routes previously learned from that neighbor. A router assumes that, for a route advertised by Router X, the next-hop router in that route is Router X. RIP’s metric is hop count. انتخاب بهترین مسیر و جلوگیری از لوپ مهترین وظایف یک پروتکل مسیریابی است. One feature that distance vector protocols use to reduce the chance of loops is called route poisoning.

يكی ديگر از راه حل های برخورد با مشكل حلقه های روتينگ ، Split Horizon است . در اين روش كه كاهش اطلاعات نادرست و حجم عملياتی اضافه روتينگ در يك شبكه Distance-Vector را به دنبال دارد از اين اصل تبعيت می شود كه اطلاعات نمی توانند در مسيری كه از طريق آن دريافت شده اند مجددا” ارسال گردند . به عبارت ديگر ،‌ پروتكل روتينگ ، اينترفيسی را كه از طريق آن بسته اطلاعاتی را دريافت كرده است بخاطر سپرده و هرگز از اينترفيس فوق برای ارسال مجدد آن استفاده نخواهد كرد .  بدين ترتيب و با تبعيت از اصل فوق ، روتر A از ارسال اطلاعات بهنگام شده ای كه  از طريق روتر B دريافت نموده است برای روتر B منع می شود .

با استفاده از  holddown پيشگيری لازم در خصوص بهنگام سازی اطلاعات يك مسير بی ثبات ، انجام می شود .  اين وضعيت معمولا” بر روی يك لينك سريال اتفاق می افتد كه در يك لحظه برقرار و در لحظه ای ديگر غيرفعال می گردد (flapping ) . در  صورت عدم استفاده از روشی جهت تثبيت اين وضعيت ، شبكه هرگز همگراء نشده و اينترفيسی كه دائما” up و down می گردد می تواند تمامی شبكه را با مشكل مواجه سازد . با استفاده از holddown  از ثبت مسيرهائی كه وضعيت آنها با سرعت زياد تغيير پيدا می نمايد ، پيشگيری بعمل آمده و به آنها يك فرصت زمانی داده می شود تا وضعيت پايداری پيدا نمايند .  بدين ترتيب ، به روترها اعلام می شود كه برای يك بازه زمانی خاص هر گونه تغييراتی كه بر روی مسيرهای حذف شده اخير تاثير می گذارد را محدود نمايند . با اين كار از درج مسيرهای بی ثبات در ساير جداول روتينگ پيشگيری بعمل می آيد . زمانی كه يك روتر اطلاعات بهنگام شده ای را از طريق يكی از همسايگان مبنی بر غيرقابل دسترس بودن يك شبكه دريافت می نمايد ( شبكه ای كه تا پيش از اين فعال بوده است ) ، تايمر holddown آغاز به كار می كند . در صورتی كه اطلاعات بهنگام شده جديدی از يك همسايه دريافت شود كه دارای متريك بهتری نسبت به وضعيت اوليه موجود در جدول روتينگ باشد ، holddown برداشته شده و داده عبور داده می شود ولی اگر اطلاعات بهنگام شده ای از يك روتر همسايه دريافت گردد ( قبل از اتمام مدت زمان تايمر holddown ) ، كه دارای متريك برابر و يا كمتر از مسير قبلی باشد ، از اطلاعات جديد بهنگام صرفنظر و تايمر به فعاليت خود ادامه خواهد داد . بدين ترتيب زمان بيشتری برای ايجاد ثبات در شبكه قبل از آغاز فرآيند همگرائی آن فراهم می گردد . holddown از فرآيند بهنگام سازی مبتنی بر trigger استفاده می نمايد . در اين فرآيند تايمر reset می گردد تا به روترهای همسايه اطلاع داده شود يك تغيير در شبكه اتفاق افتاده است .  برخلاف پيام های بهنگام از روترهای همسايه ، در اين نوع بهنگام سازی ( مبتنی بر trigger ) يك جدول روتينگ جديد ايجاد و بلافاصله برای روترهای همسايه ارسال می گردد چراكه يك تغيير در ارتباطات بين شبكه ای تشخيص داده شده است . Hold-Down Timer : When learning that a route has failed, ignore any information about an alternative route to that subnet for a time equal to the hold-down timer. Split horizon solves the counting-to-infinity problem over a single link. However, counting to infinity can occur in redundant networks (networks with multiple paths) even with split horizon enabled. The hold-down timer defeats the counting-to-infinity problem when networks have multiple paths to many subnets.

network
command enables RIP or IGRP on a set of interfaces:
The router broadcasts or multicasts routing updates out an interface. The router listens for incoming updates on that same interface. The router, when sending an update, includes the subnet off that interface in the routing update.
router rip
global command…
router igrp AS (autonomous system)… For IGRP, you do not need a registered AS number. All that is needed for IGRP to work is for all the routers to use the same AS number…. debug ip rip debug ip igrp transactions/ debug ip igrp events/… The variance
command defines a multiplier… the router igrp or router rip subcommand command
maximum-paths 1, which means that Router should add at most one route to the same subnet to the routing table. You can choose to tell the router to use only the lowest-cost route using the traffic-share min router IGRP subcommand.

OSPF and EIGRP Concepts and Configuration

مارس 17, 2008

OSPF and EIGRP Concepts and Configuration

Distance vector protocols were designed to advertise just the basic routing information across the network to save bandwidth.

Link-state protocols advertise a large amount of topological information about the network, and the routers perform some CPU-intensive computation on the topological data. They even discover their neighbors before exchanging routing information.

The algorithm used to calculate routes with link-state protocols is called the Shortest Path First (SPF) algorithm.

 

OSPF sends several types of packets—link-state updates (LSUs) and Database Description (DD) packets—that contain topology information as well as individual link-state advertisements (LSAs). For instance, a link LSA describes a subnet number and mask, the cost (metric), and other information about the subnet. Also, OSPF uses a reliable protocol to exchange routing information, ensuring that lost LSU packets are retransmitted. So OSPF routers can know with certainty whether a neighbor has yet received all the LSAs when exchanging routing information.

 

Basic process of learning routes for the first time with OSPF goes something like this:

1. Each router discovers its neighbors on each interface. The list of neighbors is kept in a neighbor table.

2. Each router uses a reliable protocol to exchange topology information (LSAs) with its neighbors.

3. Each router places the learned topology information in its topology database.

4. Each router runs the SPF algorithm against its own topology database to calculate the best routes to each subnet in the database.

5. Each router places the best route to each subnet in the IP routing table.

Identifying OSPF Routers with a Router ID

 

To uniquely identify each router in the database, OSPF uses a concept called the OSPF router ID (RID). The end goal is to have a way to uniquely identify each router in the database, and to make sure that no two routers have the same RID to avoid confusion. So, OSPF has each router use one of the routers’ IP addresses, because the routers should not use duplicate IP addresses.

Of course, routers typically have several interfaces and several IP addresses. A Cisco router uses the following criteria to select its RID:

  • The router first looks for the existence of any loopback interfaces that are up. If so, the router picks the highest numeric IP address among the loopback interfaces
  • If no loopback is found, the router picks the highest numeric IP address from all its working (up and up) interfaces

Interface loopback interface-number command…

 

Meeting Neighbors by Saying Hello

The Hello messages themselves have the following features:

  • The Hello message follows the IP packet header, with the IP packet protocol type 89.
  • Hello packets are sent to multicast IP address 224.0.0.5, which is intended for all OSPFspeaking routers.
  • OSPF routers listen for packets sent to IP multicast address 224.0.0.5, in part hoping to receive Hello packets.

The Hello message includes the sending router’s RID, Area ID, Hello interval, dead interval, router priority, designated router, backup designated router, and a list of neighbors that the sending router already knows about on the subnet…

When Router A receives a Hello from Router B, Router A needs to somehow tell Router B that Router A got the Hello. To do so, Router A adds Router B’s RID to the list of OSPF neighbors inside the next Hello that Router A multicasts onto the network.

 

The following must match before a pair of routers will become neighbors:

  • Subnet mask used on the subnet
  • Subnet number (as derived using the subnet mask and each routers’ interface IP address)
  • Hello Interval
  • Dead Interval
  • OSPF Area ID

 

Reducing OSPF Overhead Using Designated Routers:

 

In some cases, a Designated Router (DR) must be elected for the subnet before Database Description (DD) packets, containing LSAs, can be exchanged between routers. DRs are always required on a LAN, and sometimes (depending on topology and configuration) required with Frame Relay and ATM.

The DR concept prevents overloading a subnet with too much OSPF traffic when many routers are on a subnet.

A router decides whether it needs to elect a DR, plus some other details of operation, based on an interface’s OSPF network type. For instance, a point-to-point link has a default OSPF network type of point-to-point, which does not require a DR. Similarly, LAN interfaces default to an OSPF network type of broadcast, which always requires a DR. For Nonbroadcast Multiaccess (NBMA) networks such as Frame Relay, OSPF allows for the configuration of five different variations of OSPF network types, with some options that require a DR, and with others that do not. (These types can be configured with the ip ospf network type command.)

OSPF includes the concept of a Backup DR (BDR) on each subnet…

 

 

With distance vector protocols, when a router fails to hear routing updates from a neighbor for some multiple of the update interval, the router believes the silent router has failed. The router then marks all routes it learned from the now-silent router as having an infinite metric.

 

Loop Avoidance

The SPF algorithm prevents loops as a natural part of the processing of the topology database with the SPF algorithm. Unlike distance vector protocols, link-state protocols do not need loop-avoidance features such as split horizon, poison reverse, and hold-down timers.

 

Scaling OSPF Through Hierarchical Design

a larger topology database requires more memory on each router.

processing the larger-topology database with the SPF algorithm requires processing power that grows exponentially with the size of the topology database.

a single interface status change (up to down or down to up) forces every router to run SPF again!


OSPF Areas: Using OSPF areas solves many, but not all,


Balanced Hybrid Routing Protocol and EIGRP Concepts :

EIGRP has some features that act like distance vector protocols and some that act like link-state protocols.

1. EIGRP routers discover other EIGRP routers that are attached to the same subnet, and then the routers form a neighbor relationship with each other. Each router keeps a list of the neighbors in its EIGRP neighbor table.

2. EIGRP then exchanges network topology information with known neighbors, placing the information in the EIGRP topology table. (There is no requirement for a DR or BDR concept like OSPF.)

3. EIGRP analyzes the topology information, and puts the lowest-metric routes into the IP routing table.

 

EIGRP actually works with three tables:

■ The EIGRP neighbor table—Viewed with the show ip eigrp neighbor command

■ The EIGRP topology table—Viewed with the show ip eigrp topology command

■ The IP routing table—Viewed with the show ip route or show ip route eigrp commands

 


EIGRP avoids loops by keeping some basic topological information but not full information .When a router learns multiple routes to the same subnet, it puts the best route in the routing table.

Failed routes that have an EIGRP feasible successor can be used immediately after the route fails. Failed routes without a feasible successor require EIGRP to use a Query and Response process to confirm that no loop exists before an alternate route can be used. Both processes result in fast convergence, typically quicker than 10 seconds, but the query and response process does take slightly longer.

 

EIGRP Successors and Feasible Successors:

Of the other suboptimal routes, some may be used immediately if the currently-best route fails, without fear of having a loop occur. EIGRP runs a simple algorithm to identify which routes could be used immediately after a route failure, without causing a loop.

EIGRP calls the best route (the route with the lowest metric) the successor. Any backup routes that could be used without causing a loop are called feasible successors.

 

 

The Query and Reply Process:

When a route fails and the route has no feasible successor, EIGRP uses a distributed algorithm called Diffusing Update Algorithm (DUAL). DUAL sends queries looking for a loop-free route to the subnet in question. When the new route is found, DUAL adds it to the routing table.

 

OSPF Configuration

 

The router ospf command has a parameter called the OSPF process-id. In some instances, you might want to

run multiple OSPF processes in a single router, so the router command uses the process-id to distinguish between the processes. Although the process-id used on the three routers is the same, the actual value is unimportant, and the numbers do not have to match on each router.

 

network 10.1.1.1 0.0.0.0 area 0

The OSPF network command matches interfaces differently than does the network command for RIP and IGRP. The OSPF network command includes a parameter called the wildcard mask.

The wildcard mask of 0.0.0.0 means that all 32 bits must be compared…

 

OSPF Configuration with Multiple Areas

router ospf 1

network 10.1.1.1 0.0.0.0 area 0

network 10.1.4.1 0.0.0.0 area 1

network 10.1.6.1 0.0.0.0 area 0

 

ip ospf cost x interface subcommand…

If you do not set an interface’s cost, IOS defaults to use the formula 108 / bandwidth, where bandwidth is the interface’s bandwidth.

 

EIGRP Configuration

 

router eigrp autonomous-system(The range of valid AS numbers is 1 through 65,535, as is the range of valid Process IDs with the router ospf command)

network network-number

 

IGRP to EIGRP Migration

To make migration simple, Cisco created a feature of EIGRP called automatic redistribution:ex…


 

 

 

 

 

 

 

 

 

 

 

 

دسترسی به پارتیشن های لینوکس در ویندوز(چند ابزار ساده)

مارس 15, 2008

لینوکس برای کاربران ویندوز تسهیلات بسیاری را برای دسترسی به فایلها تدارک دیده…

فایل سیستم:روش ذخیره سازی فایل ها و بازیابی آن ها از دیسک را تعیین می کند…مثل Fat32,ext2

XFS برای مقاصد High-Performance computing….سیستم ext3 یا Reiser FS برای موارد با Fault Tolerance بالا…

معرفی جند نرم افزار دسترسی به پارتیشن های لینوکس از طریق ویندوز:

  • ext2fsd(قابل دانلود از sourceforge.net)
  • rfstools(قابل دانلود از freshmeet.net
  • LTOOLS

LTOOLS:

پشتیبانی از سه نوع فایل سیستمِ Reiser FS و ext2 و ext3 بر خلاف دوتای قبلی که فقط یکی را پشتیبانی می کردند.

  • کلاینت دات نتی LTOOLS
  • کلاینت مبتنی بر جاوای LTOOLS : اگر امکان نصب دان نت فریم ورک نباشد می توان به جای بالایی استفاده کرد.
  • کلاینت مبتنی بر وب LTOOLS : بهنرین رابط….در مجموعه LTOOLS یک وب سرور با نام LREADsrv.exe تعبیه شده که کاربر با اجرای آن از طریق مرورگر وب خود می تواند به سیستم های فایلی لینوکس دسترسی داشته باشد.مزیت استفاده در شبکه و …

منبع:ماهنامه شبکه(شماره 236)

Routing

مارس 15, 2008

show ip route

Static Route: 

 ip route 10.1.2.0 255.255.255.0 serial0…

Dynamic Rute:

 
 

The following list spells out the basic distance vector logic and introduces a few important concepts:

Routers add directly connected subnets to their routing tables, even without a routing protocol.

Routers send routing updates out their interfaces to advertise the routes that this router already knows. These routes include directly connected routes, as well as routes learned from other routers.

Routers listen for routing updates from their neighbors so that they can learn new routes.

The routing information includes the subnet number and a metric. The metric defines how good the route is; lower metric routes are considered better routes.

When possible, routers use broadcasts or multicasts to send routing updates. By using a broadcast or multicast packet, all neighbors on a LAN can receive the same routing information in a single update.

If a router learns multiple routes to the same subnet, it chooses the best route based on the metric.

Routers send periodic updates and expect to receive periodic updates from neighboring routers.

Failure to receive updates from a neighbor in a timely manner results in the removal of the routes previously learned from that neighbor.

A router assumes that, for a route advertised by Router X, the next-hop router in that route is Router X.

RIP’s metric is hop count.

انتخاب بهترین مسیر و جلوگیری از لوپ مهترین وظایف یک پروتکل مسیریابی است.

One feature that distance vector protocols use to reduce the chance of loops is called route poisoning.


يكی ديگر از راه حل های برخورد با مشكل حلقه های روتينگ ، Split Horizon است . در اين روش كه كاهش اطلاعات نادرست و حجم عملياتی اضافه روتينگ در يك شبكه Distance-Vector را به دنبال دارد از اين اصل تبعيت می شود كه اطلاعات نمی توانند در مسيری كه از طريق آن دريافت شده اند مجددا” ارسال گردند . به عبارت ديگر ،‌ پروتكل روتينگ ، اينترفيسی را كه از طريق آن بسته اطلاعاتی را دريافت كرده است بخاطر سپرده و هرگز از اينترفيس فوق برای ارسال مجدد آن استفاده نخواهد كرد . 
بدين ترتيب و با تبعيت از اصل فوق ، روتر A از ارسال اطلاعات بهنگام شده ای كه  از طريق روتر B دريافت نموده است برای روتر B منع می شود .

 
 

 
 


با استفاده از  holddown پيشگيری لازم در خصوص بهنگام سازی اطلاعات يك مسير بی ثبات ، انجام می شود .  اين وضعيت معمولا” بر روی يك لينك سريال اتفاق می افتد كه در يك لحظه برقرار و در لحظه ای ديگر غيرفعال می گردد (flapping ) . در  صورت عدم استفاده از روشی جهت تثبيت اين وضعيت ، شبكه هرگز همگراء نشده و اينترفيسی كه دائما” up و down می گردد می تواند تمامی شبكه را با مشكل مواجه سازد .
با استفاده از holddown  از ثبت مسيرهائی كه وضعيت آنها با سرعت زياد تغيير پيدا می نمايد ، پيشگيری بعمل آمده و به آنها يك فرصت زمانی داده می شود تا وضعيت پايداری پيدا نمايند .  بدين ترتيب ، به روترها اعلام می شود كه برای يك بازه زمانی خاص هر گونه تغييراتی كه بر روی مسيرهای حذف شده اخير تاثير می گذارد را محدود نمايند . با اين كار از درج مسيرهای بی ثبات در ساير جداول روتينگ پيشگيری بعمل می آيد .
زمانی كه يك روتر اطلاعات بهنگام شده ای را از طريق يكی از همسايگان مبنی بر غيرقابل دسترس بودن يك شبكه دريافت می نمايد ( شبكه ای كه تا پيش از اين فعال بوده است ) ، تايمر holddown آغاز به كار می كند . در صورتی كه اطلاعات بهنگام شده جديدی از يك همسايه دريافت شود كه دارای متريك بهتری نسبت به وضعيت اوليه موجود در جدول روتينگ باشد ، holddown برداشته شده و داده عبور داده می شود ولی اگر اطلاعات بهنگام شده ای از يك روتر همسايه دريافت گردد ( قبل از اتمام مدت زمان تايمر holddown ) ، كه دارای متريك برابر و يا كمتر از مسير قبلی باشد ، از اطلاعات جديد بهنگام صرفنظر و تايمر به فعاليت خود ادامه خواهد داد . بدين ترتيب زمان بيشتری برای ايجاد ثبات در شبكه قبل از آغاز فرآيند همگرائی آن فراهم می گردد .
holddown از فرآيند بهنگام سازی مبتنی بر trigger استفاده می نمايد . در اين فرآيند تايمر reset می گردد تا به روترهای همسايه اطلاع داده شود يك تغيير در شبكه اتفاق افتاده است .  برخلاف پيام های بهنگام از روترهای همسايه ، در اين نوع بهنگام سازی ( مبتنی بر trigger ) يك جدول روتينگ جديد ايجاد و بلافاصله برای روترهای همسايه ارسال می گردد چراكه يك تغيير در ارتباطات بين شبكه ای تشخيص داده شده است .

Hold-Down Timer : When learning that a route has failed, ignore any information about an alternative route to that subnet for a time equal to the hold-down timer.

Split horizon solves the counting-to-infinity problem over a single link. However, counting to infinity can occur in redundant networks (networks with multiple paths) even with split horizon enabled. The hold-down timer defeats the counting-to-infinity problem when networks have multiple paths to many subnets.

 
 

 
 

network
command enables RIP or IGRP on a set of interfaces:

The router broadcasts or multicasts routing updates out an interface.

The router listens for incoming updates on that same interface.

The router, when sending an update, includes the subnet off that interface in the routing

update.

router rip
global command…

router igrp AS (autonomous system)…

For IGRP, you do not need a registered AS number. All that is needed for IGRP to work is for all the routers to use the same AS number….

debug ip rip

debug ip igrp transactions/ debug ip igrp events/…

The variance
command defines a multiplier…

the router igrp or router rip subcommand command maximum-paths 1, which means that Router should add at most one route to the same subnet to the routing table.

You can

choose to tell the router to use only the lowest-cost route using the traffic-share min router

IGRP subcommand.

If one company uses RIP, and the other uses IGRP, on at least one router, both

RIP and IGRP must be used.

To decide which route to use, IOS uses a concept called administrative distance.

Administrative distance is a number that denotes how believable an entire routing protocol

is on a single router. The lower the number, the better, or more believable, the routing

protocol. For instance, RIP has a default administrative distance of 120, and IGRP defaults

to 100

 

 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

  

ch3

مارس 11, 2008

A VLAN is essentially a broadcast domain.

ISL and 802.1Q Compared:

  • Both support the same number of VLANs because both use a 12-bit VLAN Number field.
  • 802.1Q did not support multiple spanning trees (ISL uses a Cisco-proprietary feature called Per-VLAN Spanning Tree (PVST+) to support multiple spanning trees.)
  • 802.1Q defines one VLAN on each trunk as the native VLAN; by default, this is VLAN 1.

 

VLAN Trunking Protocol (VTP):–à to exchange VLAN configuration information between switches.

 VTP floods advertisements throughout the VTP domain every 5 minutes,

 One of the most important components of the VTP advertisements is the configuration revision number. Each time a VTP server modifies its VLAN information, it increments the configuration revision number by 1.

VTP operates in one of three modes:

 Server mode

 Client mode

 Transparent mode (A switch configured in VTP transparent mode can create, delete, and modify VLANs, but the changes are not transmitted to other switches in the domain; they affect only that switch. )

 

VLAN and Trunking Configuration:

 Vlan database

  vlan 2 name barney-2

  interface range fastEthernet 0/9 – 12

  show vlan id 2

Cisco IOS software assigns each interface to VLAN 1 by default.

switchport access vlan 2(Trunk negotiations are disabled on those interfaces by telling the switch that these interfaces are used as access ports, using the switchport mode access command.)

 ch3-01.jpg

 ch3.jpg

 

 

 

 

 

 

 

Spanning Tree Protocol

مارس 10, 2008

The spanning tree algorithm places each bridge/switch port in either a forwarding state or a blocking state.

The collective set of forwarding ports creates a single path over which frames are sent between Ethernet segments.

STP uses three criteria to choose whether to put an interface in forwarding state:
■ STP elects a root bridge. STP puts all interfaces on the root bridge in forwarding state.
■ Each nonroot bridge considers one of its ports to have the least administrative cost
between itself and the root bridge. STP places this least-root-cost interface, called that
bridge’s root port, in forwarding state.
■ Many bridges can attach to the same Ethernet segment. The bridge with the lowest
administrative cost from itself to the root bridge, as compared with the other bridges
attached to the same segment, is placed in forwarding state. The lowest-cost bridge on
each segment is called the designated bridge, and that bridge’s interface, attached to that
segment, is called the designated port.
Reacting to Changes in the Network: 

 The root bridge sends a new hello BPDU every 2 seconds by default. Each bridge forwards the hello, changing the cost to reflect that bridge’s added cost to reach the root.

  • Hello Time: How long the root waits before sending the periodic hello BPDUs.
  • MaxAge: How long any bridge should wait, after beginning to not hear hellos.
  • Forward Delay: Delay that affects the time involved when an interface changes from blocking state to forwarding state.
SW3 also must tell the other switches to timeout the entries in their bridging tables.—->sends a special Topology Change Notification (TCN) BPDU.

 EtherChannel provides a way to prevent STP convergence from being needed when only a single port or cable failure occurs.

Without EtherChannel, if you have multiple parallel links between two switches, STP blocks all the links except one.

 PortFast allows a switch to place a port in forwarding state immediately when the port
becomes physically active.

(دنباله…)

Ch1

مارس 9, 2008

Both the enable secret and enable password commands define the password
needed to enter enable mode.

uses a hash algorithm to store.

(دنباله…)