Single-arm Routing and VTP

Source: Internet
Author: User
Tags config

"Single Arm Routing"

Function: Realize communication between different VLAN

Implementation method: Configure the Sub-interface, encapsulate different VLAN separately

"VTP"

Chinese name: Virtual LAN Relay protocol

Role: Unified Management VLAN

Implementation method: Configure a switch connected through a relay link in a domain

"VTP Precautions"

A) VTP can automatically update "domain name, version, revision number, trim, VLAN number, VLAN name"

b) VTP cannot automatically update "password, mode, what interfaces are in the VLAN"

(c) Configure VTP on the GNS3 simulator in VLAN data mode

First, single arm routing

(1), the principle of single arm routing

1. LINK Type

The host and switch are ' access ' links

Routers and switches are ' trunk ' links

2, sub-interface

"Definition": the physical interface of a router can be divided into multiple logical interfaces, which are divided into logical connections

The mouth is figuratively called the ' sub-interface '

Note point: The logical sub-interface cannot be turned on or off individually, and when the physical interface is turned on or off, all of the interface's sub-interfaces are turned on or off

3, the VLAN label conversion

"Host and device IP and MAC addresses"

Host A:10.0.0.10/24 0000AAAA

Mainframe b:20.0.0.20, 24 0000

R1 's f0/0.1:10.0.0.1, 24 00001111.

R1 's f0/0.2:20.0.0.1/24 00001111

A the target IP address of host A is the IP address of Host B, while the target MAC address is the MAC address of the gateway, that is, the MAC address of the R1 f0/0.1 interface (this omits the ARP process)

b Because the data frame is sent by the host, there is no label

c The switch is a two-tier device, so it does not encapsulate the two-tier frame structure, but because the destination of the forwarding is the trunk link, the switch will encapsulate the VLAN tag on the data frame

D) The only change in the data forwarded from the switch is the VLAN tag

E The router will encapsulate the two-tier data frame, so both the target and the source MAC address have changed. In addition, the router forwards the data will belong to the new broadcast domain (VLAN20), so the router also needs to replace the VLAN label in the data frame

f) The switch will forward the data frame again, unlike step (c), which is to remove the labels from the data frame

(2), single arm routing configuration

R1 (config) # interface f0/0.1/Enter Sub-interface

R1 (config-subif) # encapsulation dot1q 10/Package VLAN 10

R1 (config-subif) # IP address 10.0.0.1 255.255.255.0/configure child IP

Related Article

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.