Build a virtual LAN

Source: Internet
Author: User

Lab report

I. Lab requirements

Build a virtual LAN.

Configure the DHCP address pool on the vro to dynamically configure the IP address for the host in the LAN.

Configure the Ethernet channel for redundant backup and load balancing.

Ii. Experiment Topology

650) This. width = 650; "Title =" clip_image002 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image002 "src =" http://img1.51cto.com/attachment/201407/16/6212447_1405518068sZYH.jpg "Height =" 326 "/>

Iii. Experiment steps

1. Connect the link based on the Topology

2. VLAN Division

1) vlan2 and vlan3 are divided on S1.

S1 (config) # VLAN 2

S1 (config-VLAN) # exit

S1 (config) # VLAN 3

S1 (config-VLAN) # exit

S1 (config) # int range F0/1-2

S1 (config-if-range) # switchport Mode Access

S1 (config-if-range) # switchport access VLAN 2

S1 (config-if-range) # exit

S1 (config) # int range F0/3-4

S1 (config-if-range) # switchport Mode Access

S1 (config-if-range) # switchport access VLAN 3

2) vlan2 and vlan3 are divided on S2.

S2 (config) # VLAN 2

S2 (config-VLAN) # exit

S2 (config) # VLAN 3

S2 (config-VLAN) # exit

S2 (config) # int ran F0/1-2

S2 (config-if-range) # SWI m

S2 (config-if-range) # sw ac vlan 2

S2 (config-if-range) # exit

S2 (config) # int ran F0/3-4

S2 (config-if-range) # SW m

S2 (config-if-range) # sw ac vlan 3

S2 (config-if-range) # exit

3. Configure an Ethernet channel for the link between S1 and S2 to achieve redundant backup and load balancing.

1) Configure trunk on S1 and ethernetchannel

S1 (config) # int range F0/22-24

S1 (config-if-range) # SW mode trunk

S1 (config-if-range) # channel-group 1 mode on

S1 (config-if-range) # No Shutdown

2) Configure trunk on S2 and ethernetchannel

S2 (config) # int range F0/22-24

S2 (config-if-range) # SW mod trunk

S2 (config-if-range) # channel-group 1 mode on

S2 (config-if-range) # No Shutdown

4. Configure IP Address: 192.168.2.1/24 on pC1 and IP Address: 192.168.2.2/24 ON Pc5

Configure IP Address: 192.168.3.1/24 on pc4 and IP Address: 192.168.3.2/24 on pc8

Ping test, communication between the same VLAN is allowed

1) pC1 Ping Pc5

650) This. width = 650; "Title =" clip_image004 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image004 "src =" http://img1.51cto.com/attachment/201407/16/6212447_1405518068Cd5l.jpg "Height =" 190 "/>

2) pc4 Ping pc8

650) This. width = 650; "Title =" clip_image006 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image006 "src =" http://img1.51cto.com/attachment/201407/16/6212447_1405518068kZ9s.jpg "Height =" 197 "/>

5. Configure the DHCP address pool on the vrodhcp DHCP, and assign the IP address other than the specified IP address to the PC of the VLAN.

1) configure the address pool of vlan2 on DHCP

DHCP (config) # int F0/0

DHCP (config-If) # IP add 192.168.2.254 255.255.255.0

DHCP (config-If) # No Shutdown

DHCP (config) # ip dhcp pool vlan2_pool

DHCP (DHCP-config) # network 192.168.2.0 255.255.255.0

DHCP (DHCP-config) # default-router 192.168.2.254

DHCP (config) # ip dhcp excluded-address 192.168.2.1 192.168.2.2

2) Port F0/10 is divided into vlan2 on S1, which is used to allocate addresses to the PCs in vlan2.

S1 (config) # int F0/10

S1 (config-If) # switchport acc vlan 2

3) set PC2 and PC6 to use DHCP to dynamically obtain IP addresses.

650) This. width = 650; "Title =" clip_image008 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image008 "src =" http://img1.51cto.com/attachment/201407/16/6212447_140551806892Kb.jpg "Height =" 278 "/>

650) This. width = 650; "Title =" clip_image010 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image010 "src =" http://img1.51cto.com/attachment/201407/16/6212447_1405518068Ftwd.jpg "Height =" 294 "/>

650) This. width = 650; "Title =" clip_image012 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image012 "src =" http://img1.51cto.com/attachment/201407/16/6212447_1405518068jD84.jpg "Height =" 281 "/>

650) This. width = 650; "Title =" clip_image014 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image014 "src =" http://img1.51cto.com/attachment/201407/16/6212447_1405518069rUNh.jpg "Height =" 289 "/>

4) configure the address pool of vlan3 on DHCP

DHCP (config) # int F0/1

DHCP (config-If) # IP add 192.168.3.254 255.255.255.0

DHCP (config-If) # No Shutdown

DHCP (config) # ip dhcp pool vlan3_pool

DHCP (DHCP-config) # network 192.168.3.0 255.255.255.0

DHCP (DHCP-config) # default-router 192.168.3.254

DHCP (config) # ip dhcp excluded-address 192.168.3.1 192.168.3.2

5) Port F0/10 is divided into vlan3 on S2, which is used to allocate addresses to the PCs in vlan3.

S2 (config) # int F0/10

S2 (config-If) # switchport acc vlan 3

6) set PC3 and pc7 to dynamically obtain IP addresses using DHCP.

650) This. width = 650; "Title =" clip_image016 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image016 "src =" http://img1.51cto.com/attachment/201407/16/6212447_14055180691vcn.jpg "Height =" 289 "/>

650) This. width = 650; "Title =" clip_image018 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image018 "src =" http://img1.51cto.com/attachment/201407/16/6212447_1405518069Se9o.jpg "Height =" 299 "/>

650) This. width = 650; "Title =" clip_image020 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image020 "src =" http://img1.51cto.com/attachment/201407/16/6212447_1405518069a4Ui.jpg "Height =" 286 "/>

650) This. width = 650; "Title =" clip_image022 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image022 "src =" http://img1.51cto.com/attachment/201407/16/6212447_1405518069AEZq.jpg "Height =" 289 "/>

This article from the "unyielding posture crazy" blog, please be sure to keep this source http://doerj.blog.51cto.com/6212447/1439191

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.