Easy configuration of Cisco router VLANs

Source: Internet
Author: User

There will be many problems when you contact the Cisco router VLAN. The configuration of the Cisco router VLAN has always been a hot topic. Today, we are mainly trying to solve this problem, I hope the following article will help you.

Implementation of CISCO router VLAN

1. experiment environment: A 3560 layer-3 Switch, fa0/1 port connected to computer A, fa0/2 port connected to computer B.
2. Objective: computer A and computer B can access each other
3. Experiment principle: Use the layer-3 port of vswitch 3560 to configure IP addresses of different CIDR blocks and start routes. hosts of different CIDR blocks can access each other.
4. Tutorial steps: Define a layer-3 port and configure an IP address for the VLAN port of the Cisco Router

Switch (config) # int fa0/1
Switch (config-if) # no switchport
Switch (config-if) # ip address 192.168.1.1 255.255.255.0
Switch (config-if) # no shut
Switch (config) # int fa0/2
Switch (config-if) # no switchport
Switch (config-if) # ip address 192.168.2.1 255.255.255.0
Switch (config-if) # no shut, start the route: switch (config) # ip routing

1. A layer-3 Switch cannot configure an IP address on a layer-2 port. It can only configure an IP address for a VLAN after the port is added to a Cisco router VLAN. A layer-3 switch can configure an IP address on a layer-3 port and enable the routing function.
2. l2/L3 switches cannot directly configure IP addresses for physical ports. You can only configure IP addresses under VLAN virtual interfaces.
3. the L2 Switch has a VLAN1 by default, and the L2 Switch is configured with an IP address for management.

Cisco router VLAN settings:

Switch> enable; enter privileged Mode
Switch # config terminal; enter global configuration mode
Switchconfig) # hostname; set the Host Name of the switch.
Switchconfig) # enable secret xxx; set the privileged encryption Password
Switchconfig) # enable password xxa; set the privileged non-password
Switchconfig) # line console 0; enter the console Port
Switchconfig-line) # line vty 0 4; enter the virtual terminal
Switchconfig-line) # login; Logon Allowed
Switchconfig-line) # password xx; set the logon password xx
Switch # exit; return command

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.