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