Inter-VLAN communication, dynamic routing RIP

[Communication between VLANs, dynamic routing RIP]

Layer 3 switching = Layer 2 switching + Layer 3 forwarding

- Layer 3 switch VLAN interworking -
(1) Layer 2 switch configuration VLAN, Trunk
Switch(config)# vlan 2
Switch(config)# vlan 3
Switch(config)# int range f 0/6-10
Switch(config- if-range)# switchport access vlan 2
Switch(config)# int range f 0/11-15
Switch(config-if-range)# switchport access vlan 3
Switch(config)# int f 0/24
Switch(config-if )# switchport mode trunk

(2) Layer
3 switch configuration Layer 3 switch configuration VLAN, Trunk
SW-3L(config)# vlan 2
SW-3L(config)# vlan 3

Enable routing function
SW-3L(config)# ip routing
Configure virtual interface IP
SW-3L(config)# int v 1
SW-3L(config-if)# ip address 192.168.1.254 255.255.255.0
SW-3L(config-if )# no shutdown

Configure routing interface
SW-3L(config-if)# no switchport
Configure trunk and specify interface encapsulation as 802.1q
SW-3L(config)# int f 0/24
SW-3L(config-if)# switchport trunk encapsulation dot1q
SW- 3L(config-if)# switchport mode trunk
Note: trunk does not belong to any VLAN

——Multi-switch VLAN interworking——
(1) Configure VLAN and Trunk
on Layer 3 switches (2) Configure routing on Layer 3 switches
SW-3L(config)# int f 0/24
SW-3L(config-if)# no switchport
SW-3L(config-if)# ip address 192.168.4.1 255.255.255.0
SW-3L(config-if)# no shutdown
SW-3L(config)# ip route 0.0.0.0 0.0.0.0 192.168.4.2
(3) in Configure interfaces and routes on the
router Router(config)# int f 0/24
Router(config-if)# ip address 192.168.4.2 255.255.255.0
Router(config-if)# no shutdown
Router(config)# ip route 192.168.1.0 255.255.255.0 192.168.4.1
Router(config)# ip route 192.168.2.0 255.255.255.0 192.168.4.1
Router(config)# ip route 192.168.3.0 255.255.255.0 192.168.4.1

Dynamic routing is
easy to manage, and the occupied bandwidth
is classified according to the scope of application:
Interior Gateway Protocol: RIP, IGRP, EIGRP, IS-IS, OSPF
Exterior Gateway Protocol: EGP, BGP

Classification by routing execution algorithm:
distance vector routing protocols: RIP, IGRP,
link-state routing protocol, OSPF, IS-IS

——RIP protocol——

Maximum 15 hops, update time 30s, UDP520 port
RIP configuration
Start RIP process and enable version V2
Router(config)# router rip
Router(config-router)# version 2
Disable RIP V2 route automatic summary
Router(config-router)# no auto -summary
announce main network ID
Router(config-router)# network 192.168.1.0

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324936914&siteId=291194637