Configure Trunk Ports in Hindi | CCNA Hindi | Kratine

TRUNK PORTS कैसे बनाये

क्या आप जानते है कि CISCO के 2960 switch में केवल IEEE का 802.1q ENCAPSULATION METHOD ही काम में लिया जा सकता है | TRUNK पोर्ट बनाने के लिए फ़ास्ट ईथरनेट पोर्ट पर इंटरफ़ेस कमांड SWITCHPORT MODE TRUNK का इस्तेमाल कर सकते है |  अब आप नीचे देख सकते है कि एक पोर्ट को trunk पोर्ट कैसे बना सकते है |



S1(config)# int range f0/15-18
S1(config-if-range)#switchport trunk encapsulation dot1q
S1(config-if-range)#switchport mode trunk

अगर आपके पास एक ऐसा switch है जिसमे केवल 802.1q encapsulation method ही चलता हो तो उसमे आप ये encapsulation वाला कमांड नहीं करना होगा | पोर्ट बनाने के बाद, इस कमांड के द्वारा आप देख सकते है कि क्या हुआ है ?
S1(config-if-range)#do sh int f0/15 swi


S1>en
S1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#int range f0/15-18
S1(config-if-range)#switchport trunk encapsulation dot1q
^
% Invalid input detected at '^' marker.
S1(config-if-range)#switchport trunk ?
allowed Set allowed VLAN characteristics when interface is in trunking mode
native Set trunking native characteristics when interface is in trunking
mode
S1(config-if-range)#switchport trunk?
trunk
S1(config-if-range)#switchport trunk ?
allowed Set allowed VLAN characteristics when interface is in trunking mode
native Set trunking native characteristics when interface is in trunking
mode
S1(config-if-range)#switchport trunk encapsulation
^
% Invalid input detected at '^' marker.
S1(config-if-range)#switchport trunk a
S1(config-if-range)#switchport trunk allowed ?
vlan Set allowed VLANs when interface is in trunking mode
S1(config-if-range)#do sh int f0/15
FastEthernet0/15 is down, line protocol is down (disabled)
Hardware is Lance, address is 00e0.8f1e.b40f (bia 00e0.8f1e.b40f)
BW 100000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Half-duplex, 100Mb/s
input flow-control is off, output flow-control is off
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
956 packets input, 193351 bytes, 0 no buffer
Received 956 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
2357 packets output, 263570 bytes, 0 underruns
0 output errors, 0 collisions, 10 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
S1(config-if-range)#swithport mode trunk
^
% Invalid input detected at '^' marker.
S1(config-if-range)#switchport mode trunk
S1(config-if-range)#do sh int f0/15 swi
Name: Fa0/15
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none

क्या आपने देख कि Fa0/15 पोर्ट trunk हो चूका है और इसमें encapsulation भी चल रहा है | चलिए एक दुसरे तरीके से और देखते है इसको |

S1(config-if-range)#do sh int trunk

जब switch इंटरफ़ेस कॉन्फ़िगर किया जाता है उसके काम में आने वाले कुछ ऑप्शन उपलब्ध है | जिनके बारे में हम निचे देखेंगे |
switchport mode access - ये कमांड किसी भी switch के इंटरफ़ेस को हमेशा के लिए नॉन trunking मोड में बदल देता है | इसके द्वारा एक इंटरफ़ेस डेडिकेटेड लेयर 2 access पोर्ट में बदल जाता है इसको कोई फर्क नहीं पड़ता फिर चाहे इसके बगल वाला इंटरफ़ेस trunk पोर्ट हो |

switchport mode dynamic auto - इस मोड के द्वारा एक इंटरफ़ेस को trunk लिंक मोड में कन्वर्ट किया जाता सकता है | अगर इसके पड़ोस का इंटरफ़ेस trunk या desirable mode में है तो ये इंटरफ़ेस भी trunk में बदल जाता है | काफी सरे cisco के switches में dynamic auto डिफ़ॉल्ट ही आता है पर अब नए आने वाले मॉडल्स में ये बदल कर dynamic desirable हो रहा है |

swithport mode dynamic desirable - ये मोड सक्रियता से किसी भी लिंक को trunk लिंक में बदल देता है | एक इंटरफ़ेस trunk लिंक में बदल दिया जाता है अगर उसका पड़ोस का लिंक trunk में, desirable या फिर auto मोड में हो तो | अब आने वाले सभी नए cisco के switches में सभी ईथरनेट interfaces के लिए ये डिफ़ॉल्ट switch पोर्ट मोड के रूप में आ रहा है

switchport mode trunk - इस मोड के द्वारा एक इंटरफ़ेस को हमेशा के लिए trunking मोड में बदल दिया जाता है | एक इंटरफ़ेस trunk लिंक में बदल दिया जाता है चाहे पड़ोस का इंटरफ़ेस trunk हो या ना हो |

switchport nonegotiage - ये मोड किसी भी इंटरफ़ेस को DTP फ्रेम्स generate करने से मना करता है | आप इस कमांड को तभी इस्तेमाल कर सकते है जब कोई पोर्ट access या फिर trunk लिंक हो | और इसके पड़ोस के इंटरफ़ेस को आपको मनुअली trunk लिंक में कॉन्फ़िगर करना पड़ेगा | 

किसी भी इंटरफ़ेस से trunking को हटाने के लिए आप switchport mode access कमांड को इस्तेमाल कर सकते है, जिसके द्वारा ये पोर्ट वापस लेयर 2 डेडिकेटेड access पोर्ट में बदल जायगा |

1 comments:

Good post!Thank you so much for sharing this pretty post,it was so good to read and useful to improve my knowledge as updated one,keep blogging.

CCNP Course in Mumbai


EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng
:lv

share