Cisco single-arm routing Experiment

Source: Internet
Author: User

Cisco single-arm routing Experiment
Tutorial topology: 1 and pc2 connect to different VLANs of the same vswitch. Port 1 of the vswitch is configured to connect the trunk to Port 1 of the vro. The dhcp function is enabled on the vrodhcp. ip addresses can be obtained from pc1 and pc2 respectively, the gateway ip address of the route is used to connect pc1 and pc2. Configure the vswitch. configuration vlanR2-SW # vlan databaseR2-SW (vlan) # vlan 10 VLAN 10 modified: R2-SW (vlan) # vlan 20 VLAN 20 modified: R2-SW (vlan) # exitR2-SW # conf t connect to the port of the pc to connect to vlan10, vlan20R2-SW (config) # interface FastEthernet1/1R2-SW (config-if) # switchport mode accessR2-SW (config-if) # switchport access vlan 10 R2-SW (config) # interface FastEthernet1/2R2-SW (config-if) # switchport mode accessR2-SW (config-if) # switchport access vlan 20 configure the trunk port R2-SW (config) # int f1/15R2-SW (config-if) # switchport mode trunkR2-SW (config-if) # switchport trunk encapsulation dot1qR2-SW (config-if) # switchport trunk allowed vlan all configure the router to configure the sub-interface ip address, and the sub-interface must encapsulate the vlan ID R1 (config) # ip routingR1 (config) # interface FastEthernet0/1.1R1 (config-subif) # encapsulation dot1Q 10R1 (config-subif) # ip address 192.168.10.1 255.255.255.0R1 (config) # interface FastEthernet0/1.2R1 (config-subif) # encapsulation dot1Q 20R1 (config-subif) # ip address 192.168.20.1 255.255.255.0 enable this port R1 (config) # interface FastEthernet0/1R1 (config) # no shutdown, configure two dhcp Protocols respectively, and distribute the ip address R1 (config) # ip dhcp pool vlan10R1 (dhcp-config) # network 192.168.10.0R1 (dhcp-config) # network 192.168.10.0 255.255.255.0R1 (dhcp-config) # default-router 192.168.10.1R1 (dhcp-config) # exitR1 (config) # ip dhcp pool vlan20R1 (dhcp-config) # network 192.168.2020.r1 (dhcp-config) # network 192.168.20.0 255.255.255.0R1 (dhcp-config) # default-router 192.168.20.1 Verification Result

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.