Upload
tommy99
View
232
Download
0
Embed Size (px)
Citation preview
8/19/2019 Cisco in Persian 03 Inter VLAN Routing
http://slidepdf.com/reader/full/cisco-in-persian-03-inter-vlan-routing 1/5
پ رس
سکو ه
:
ذ
ز ق
رپ
http://blog.shafagh.com/persian
رپ وي
ا
http://forum.shafagh.com
8/19/2019 Cisco in Persian 03 Inter VLAN Routing
http://slidepdf.com/reader/full/cisco-in-persian-03-inter-vlan-routing 2/5
Page 1 of 4
Inter-VLAN Routing
ذ را ر و
VLANاسه VLANای ارک ذ Routing ز دارن.
پ رInter-VLAN Routingاي ن.
هRouting ک
ر ک
ذ
ا
هتر
ط چ
گد.
چ
غهن3ای رت هن
ظ چ
و
ف ا د VLANاي ر ى را
L3
Switch چ
ن
ک
ا3هو
هع VLANاز
آ را هدر
در ذ
VLANکIP Address اد.ذIPىا
چ
هDefault Gateway
گسذVLANای
ی
ه د
هVLAN د یا ىآ زاVLAN.ذ
ه دا د
ر
ر ا VLANيRoutingای ذ ذ
د م
ا ک VLANرا ا د
ک
ا Interface
ن ذ 01VLANذا ذ. اگداVLANدر اد01Interface را
ر01چ
رت
پ
ن
ط
د
ذ
ا
فط وي از
Taggingای
پ در ش 802.1qISLوک
ر دن
ه ک
ا.ن
ه دا
ک را
ا چ
د .د ي
ر ى
رد د ک ار
ا
ر چ
حل ي
VLANازای
از ق کSub-interfaceک
ر د اه داخ آىInterfaceهزن.
ه ط
چ
سفInterface
ک(sub-interface)هزInterfaceذادی ک هض VLANا ذ اد ذام
IPش
ن
ذهGatewayاراVLAN.ذ
ا د
خ
د
آى( هذل ( چ
ر
ط در د ن
ک
ا ح را چ
رت
پencapsulationار
ذ اي
ر و رد( ن
ه ب
ا ذ را
پencapsulationپثه رد ز ل802.1q
ا ذ ن
)
Switch(config-if)# switchport mode trunkSwitch(config-if)# switchport trunk encapsulation dot1q
دز چ
ک
ا رت
پ را
ر رت
پ Interfaceح از را
رshutdownی
ر د خرج
Interface
ر
VLANایsub-interfaceهزن. در هثل ز ک VLANsub-interfaceازای
20رو 1:نا خ
Router(config)# interface fastethernet 0/0
Router(config-if)# no shutdownRouter(config-if)# interface fastethernet 0/0.20Router(config-if)# encapsulation dot1q 20
ی
رت
پ اد
ک10Mbps-Ethernetذ
ا
ثه(د وذ ی
ر11ي
و
)
encapsulationهسIOSخ از ز اذ
ذ داupgrade.را
ا
خ
ر ه ن
8/19/2019 Cisco in Persian 03 Inter VLAN Routing
http://slidepdf.com/reader/full/cisco-in-persian-03-inter-vlan-routing 3/5
Page 2 of 4
ی ی
چ
31 35131 011 151ی. اهداررا 3اهى ر در در
ذ
ه و دیا پRoutingآ ر در
ر .ز دار ک
هثل
1
چ
دAccessک Core Switch.ذ
ا ذ ظه قInter-VLAN Routingی
ر Switchرا
ن:
ه ن
ی
چ
ی
رAccess ذ
ط
آى VLANراى رت را
پ د VLANرا اد
ه
ظه تر
پ ن.
ذه د اخظص
خCoreتر
ظ ن: Trunkرا
ه ن
Switch 2:
vlan 2name VLAN_2vlan 3name VLAN_3!interface gigabitethernet 0/1
switchport access vlan 2interface gigabitethernet 0/2switchport access vlan 3interface gigabitethernet 0/24switchport mode trunkswitchport trunk encapsulation dot1q
!
8/19/2019 Cisco in Persian 03 Inter VLAN Routing
http://slidepdf.com/reader/full/cisco-in-persian-03-inter-vlan-routing 4/5
Page 3 of 4
Switch 3:
vlan 4name VLAN_4vlan 5name VLAN_5!interface gigabitethernet 0/1switchport access vlan 4interface gigabitethernet 0/2switchport access vlan 5interface gigabitethernet 0/24switchport mode trunkswitchport trunk encapsulation dot1q
چ
ی
رCoreهوVLANار د دای
چ
ظه ی
رت
پ Accessک
ا رت
ظ را
.ن
ه ن
VLANکIPش
ن در
ذه Gatewayاخظص
ذ:VLANای
و
Switch 1:
vlan 2name VLAN_2vlan 3name VLAN_3vlan 4name VLAN_4vlan 5name VLAN_5!interface gigabitethernet 0/1switchport mode trunk
switchport trunk encapsulation dot1qinterface gigabitethernet 0/2switchport mode trunkswitchport trunk encapsulation dot1q!inteface vlan 2ip address 192.168.2.1 255.255.255.0no shutdown!inteface vlan 3ip address 192.168.3.1 255.255.255.0no shutdown!inteface vlan 4
ip address 192.168.4.1 255.255.255.0no shutdown!inteface vlan 5ip address 192.168.5.1 255.255.255.0no shutdown
8/19/2019 Cisco in Persian 03 Inter VLAN Routing
http://slidepdf.com/reader/full/cisco-in-persian-03-inter-vlan-routing 5/5
Page 4 of 4
2هثل
چ
ق Accessدر اي هثل
ر ا.ز ک ذ ظه
آ هدر اي هثل از
د راد Inter-VLAN Routing.ن
ه ن
ر ی
ر ن را
ک
ا
ر ار چ
ای اي ر ذ
د
ر
Sub-Interfaceدر
کاد
را
ک
شVLANن
در
ن
د
ایGatewayاخظص
VLAN:ذ
ش
ای
چ:
ن
vlan 2
name VLAN_2vlan 3name VLAN_3!interface gigabitethernet 0/1switchport access vlan 2interface gigabitethernet 0/2switchport access vlan 3interface gigabitethernet 0/24switchport mode trunkswitchport trunk encapsulation dot1q
:
ر
ن
interface gigabitethernet 0/1no shutdowninterface gigabitethernet 0/1.2encapsulation dot1q 2ip address 192.168.2.1 255.255.255.0interface gigabitethernet 0/1.3encapsulation dot1q 3ip address 192.168.3.1 255.255.255.0