cisco-sw-three-layer switching between-vlan routing protocols

Source: Internet
Author: User

(All of the following is the hand of pure hand, there are flaws in the place, please also contain a lot of information to send piglets to exchange!) )

(All content and annotations in this article are displayed in the recursive architecture, because the format display does not understand the point of understanding!) )

(In this paper, the command keyword is mostly used shorthand, if there is an unknown, it is best to type the command when you use TAB completion!) )


cisco-sw-three-layer switching between-vlan routing protocols:

(We should first clear a few configurations before configuring layer three switching between VLANs)

1, Trunk trunk:

The configuration is as follows:

Switch (config) #int R F0/3-6 (range is enter interface range)

Switch (config-if-range) #sw t en do (three-layer switching set package type)

Switch (config-if-range) #sw mo t (set relay mode)

Simple summary:

(Switching device interface generally has four modes, access access mode, Trunk relay mode, dynamic Auto dynamically auto, dynamic desirable dynamically expected)

(Trunk-link aggregation link, access-link access link)

(Trunk supports multi-VLAN aggregation, its VLAN encapsulation type has ISL (Cisco proprietary)/802.1q (dot1q))

SW (CONFIG-IF) #switchport mode Dot1q-tunnel: Configures the switch interface for the tunnel interface (non-trunk) so that the trunk interface with the user switch forms an asymmetric link.

SW (config-if) #spanning-tree postfast (Configure Postfast mode for the interface)

SW (config) #spanning-tress postfast default (Fast interface configured for all interfaces)


2. VTP domain: (VLAN trunking Protocol, also known as Virtual LAN Trunk protocol, Cisco Proprietary)

(facilitates unified management of VLAN virtual networks between devices)

The configuration is as follows:

Switch (config) #vtp domain domain-name (create VTP domain)

Switch (config) #vtp mode {server|client|transparent} (configure VTP mode, server, client, transparent mode)

Switch (config) #vtp password cisco (set VTP password)

Switch (config) #vtp pruning (VTP pruning, infrequently used)

Switch (config) #vtp version 2 (VTP versions)


3. VLAN Virtual LAN:

Configure one:

Switch#vl da

Switch (VLAN) #vl vl-number name Vl-name

Configuration:(name not configurable)

Switch (config) #vl Vl-number

Switch (Config-vlan) #name vl-name

Access VLAN:

Switch (config) #int R F0/3-6

Switch (config-if-range) #sw AC VL Vl-number

(extended) configuration of the Ethernet channel:

Switch (config) #int R F0/1-2

Switch (config-if-range) #sw Mo tr (can also not relay)

Switch (Config-if-range) #chanel-group 1 mode on

Switch#sh EtherChannel (1 Summary) (view configuration information for Ethernet channels)


(Understanding the above-mentioned technical protocols, the next VLAN see the routing protocol will be the same, that is, we often call the three-layer switching technology)


Three-tier switching between VLAN routing protocols:

(In fact, by configuring a VLAN virtual gateway address for different VLANs, and then providing inter-VLAN routing by the layer three switch, the communication between the different VLANs is realized)

The configuration is as follows:

Switch (config) #ip routing(turn on routing forwarding)

Switch (config) #int VL Vl-id

Switch (config-if) #ip add ip-address

Switch (config-if) #no sh (configuration Vl-ip, as Gateway)

SVI (Swap virtual interface, applied to VLAN-to-VLANs-VLAN virtual gateways)

Switch (config) #int R f0/1-3

Switch (config-if-range) #sw tr en do

Switch (config-if-range) #sw MO TR (Configure three-layer switched trunk package type and enable trunk)

Switch (config) #int R f0/n

Switch (config-if) #no SW

Swtich (config) #ip Route 0.0.0.0 0.0.0.0 10.0.0.1 (Configure the Routing interface/default route/static route on the three-layer switch to enable routing of the Internal VLAN network and the external network. )

(three-layer switching between VLAN routing protocols, mainly via CEF-based MLS (adjacency relationship table and forwarding information base fib)


Extended:

1. DHCP Relay

Switch (config-if) #ip help-address dhcp-ip-address

2. Single-arm routing

(three-layer switching in addition to the VLAN routing protocol technology, you can also configure a single-arm routing to achieve different VLAN communication, but unless he is a fool, hey! The configuration is as follows:)

(First, we want to know that the routing physical interface does not support trunk mode, it does not support VLAN encapsulation, so the single-arm routing needs to manually configure the package type on the virtual subinterface, so that a physical interface virtual out of N multiple virtual sub-interfaces for inter-VLAN routing communication.) The router implements a single-arm routing configuration as follows:)

Router (config) #int f0/24

Router (config-if) #no sh (Router implementation of the single-arm routing must start the physical interface, so that the normal use of virtual interface!) )

Router (config) #int f0/0.1

Router (config-subif) #encapsulation dot1q 10

Router (config-subif) #ip add ....... (Create a virtual interface and configure the encapsulated VLAN type, set the virtual ip-address for the gateway)

Router (config) #int f0/0.2

Router (config-subif) #en do 20

Router (config-subif) #ip add .......

(second, we have to distinguish between the three-layer switching physical interface, trunk trunking is the function of the encapsulation VLAN, but we configure the sw-single-arm routing, we need to configure the switching interface to no SW routing interface mode, it is said that this mode does not support trunk mode, So we also need to manually configure the VLAN encapsulation type under this interface. The configuration is as follows:)

Switch (config-if) #no sh

Switch (config) #int f0/0.1

Switch (config-subif) #encapsulation dot1q 10

Switch (config-subif) #ip add ......

Switch (config) #int f0/0.2

Switch (config-subif) #en do 20

Switch (config-subif) #ip add ......


(ok here, the three-layer switching VLAN see the routing protocol technology is basically appropriate, of course, if it can be combined with STP (pvst+) and HSRP protocol technology, so that the three-layer switching VLAN between the highly available hot-standby multi-VLAN load-balanced routing function, it is better, here is not much, Have to know this and do not know can be private chat Oh! At the same time also hope to have all the road danale see the shortage of piglets, a lot of guidance! )

(The next stage piglets will bring cisco-Dynamic routing protocol RIP/OSPF detailed!) )


This article is from the "Countryside Pig" blog, please make sure to keep this source http://8873146.blog.51cto.com/8863146/1586233

cisco-sw-three-layer switching between-vlan routing protocols

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.