China three VLAN routing experiment 1

Source: Internet
Author: User

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/DC/wKiom1WreSODgMBLAAL5nWQGVsw704.jpg "title=" 1.jpg " alt= "Wkiom1wresodgmblaal5nwqgvsw704.jpg"/>


Set on Router 1:


System View:return to User View with Ctrl + Z.



[H3c]user-interface vty 0 63

[H3c-line-vty0-63]authentication-mode Password

[H3c-line-vty0-63]set Authentication Password Simple Wudi

[H3c-line-vty0-63]exit

[H3c]dis IP int b

*down:administratively down

(s): Spoofing (L): Loopback

Interface physical Protocol IP address Description

ge0/0 up----

GE0/1 down----

GE0/2 down----

ge5/0 down----

GE5/1 down----

ge6/0 down----

GE6/1 down----

ser1/0 down----

ser2/0 down----

ser3/0 down----

ser4/0 down----


[H3c]int g0/0.1


[H3c-gigabitethernet0/0.1]vlan-type dot1q vid 2

[H3c-gigabitethernet0/0.1]ip address 192.168.10.1 255.255.255.0

[H3c-gigabitethernet0/0.1]int g0/0.2

[H3c-gigabitethernet0/0.2]vlan-type dot1q vid 3

[H3c-gigabitethernet0/0.2]ip Add 192.168.20.1 255.255.255.0

[H3c-gigabitethernet0/0.2]exit

[H3c]dis History-command

int g0/0

Quit

int g0/0.1

Vlan-type dot1q vid 2

IP address 192.168.10.1 255.255.255.0

int g0/0.2

Vlan-type dot1q vid 3

IP Add 192.168.20.1 255.255.255.0

Quit

Dis Curr

[H3c]dis IP int b

*down:administratively down

(s): Spoofing (L): Loopback

Interface physical Protocol IP address Description

ge0/0 up----

ge0/0.1 up 192.168.10.1--

ge0/0.2 up 192.168.20.1--




Settings on Switch 2:

[H3c]int G1/0/10

[H3c-gigabitethernet1/0/10]port Link-type Trunk

[H3c-gigabitethernet1/0/10]port trunk Permit VLAN All

[H3c-gigabitethernet1/0/10]exit

[H3c]vlan 2

[H3c-vlan2]port G1/0/12

[H3c-vlan2]vlan 3

[H3c-vlan3]port G1/0/13

[H3c-vlan3]exit

[H3c]int G1/0/11

[H3c-gigabitethernet1/0/11]port Link-type Trunk

[H3c-gigabitethernet1/0/11]port trunk Permit VLAN All


Settings on Switch 3:

System View:return to User View with Ctrl + Z.

[H3c]int G1/0/11

[H3c-gigabitethernet1/0/11]port Link-type Trunk

[H3c-gigabitethernet1/0/11]port trunk Permit VLAN All

[H3c-gigabitethernet1/0/11]exit

[H3c]vlan 2

[H3c-vlan2]port G1/0/12

[H3c-vlan2]vlan 3

[H3c-vlan3]port G1/0/13



Verify:

When configured on Router 1, it is possible to communicate between different VLANs, otherwise only the same VLAN can communicate.




This article is from the "Bury All Unknown Happiness" blog, please be sure to keep this source http://ykxing.blog.51cto.com/893330/1676119

China three VLAN routing experiment 1

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.