Cisco Cisco turns on DHCP, different VLANs ensure full network interoperability (detailed steps)

Source: Internet
Author: User

Using Cisco to build an experimental environment

I.. Configure DHCP client;

Two, configure the switch SW1

SW1 (config) #vlan 10

SW1 (Config-vlan) #ex

SW1 (config) #vlan 20

SW1 (Config-vlan) #ex

SW1 (config) #int FA0/1

SW1 (config-if) #switchport mode access

SW1 (config-if) #switchport Access VLAN 10

SW1 (config-if) #no shutdown

SW1 (config) #int FA0/2

SW1 (config-if) #switchport mode access

SW1 (config-if) #switchport Access VLAN 20

SW1 (config-if) #e

SW1 (config-if) #no shutdown

SW1 (config) #int F0/3

SW1 (config-if) #switchport mode trunk

SW1 (config-if) #no shutdown

Three, configure SW2 layer three switch r1

SW2 (config) #hostname R1

R1 (config) #vlan

R1 (config) #vlan 10

R1 (Config-vlan) #e

R1 (config) #vlan 20

R1 (Config-vlan) #e

R1 (config) #ip routing

R1 (config) #int VLAN 10

R1 (config-if) #ip add 192.168.1.254 255.255.255.0

R1 (config-if) #no shutdown

R1 (config) #int VLAN 20

R1 (config-if) #ip add 192.168.2.254 255.255.255.0

R1 (config-if) #no shutdown

R1 (config-if) #e

R1 (config) #int FA0/2

R1 (config-if) #no shutdown

R1 (config-if) #no Switchport

R1 (config-if) #ip add 192.168.3.1 255.255.255.0

Quad, configure router R2

Outer>enable

Router#config Terminal

Router (config) #hostname R2

Router (config) #int g0/0

Router (config-if) #ip add 192.168.3.2 255.255.255.0

Router (config-if) #no shutdown

Router (config) #int G0/1

Router (config-if) #ip add 192.168.4.254 255.255.255.0

Router (config-if) #no shutdown

Five, configure the next hop to route

R1 (config) #ip Route 192.168.4.0 255.255.255.0 192.168.3.2

R2 (config) #ip Route 0.0.0.0 0.0.0.0 192.168.3.1

Six, repeater configuration

R1 (config) #int VLAN 10

R1 (config-if) #ip helper-address 192.168.4.1

R1 (config) #int VLAN 20

R1 (config-if) #ip helper-address 192.168.4.1

Ping each other, whether the PC comes with IP

Cisco Cisco turns on DHCP, different VLANs ensure full network interoperability (detailed steps)

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.