Configure an instance for a single-arm Router

Source: Internet
Author: User

Configure SW1:

Switch (config) # hos SW1

SW1 (config) # VTP domain Cisco

SW1 (config) # VTP Mode Server

SW1 (config) # int F0/1

SW1 (config-If) # switchport mode trunk

SW1 (config) # int F0/13

SW1 (config-If) # switchport access VLAN 2

SW1 (config-If) # switchport Mode Access

SW1 (config-If) # int F0/24

SW1 (config-If) # switchport mode trunk

Configure sw2:

Switch (config) # hos sw2

Sw2 (config) # VTP domain Cisco

Sw2 (config) # VTP mode Client

Sw2 (config) # int F0/1

Sw2 (config-If) # switchport mode trunk

Sw2 (config) # int F0/14

Sw2 (config-If) # switchport access VLAN 3

Sw2 (config-If) # switchport Mode Access

Name the VLAN in SW1:

SW1 (config) # VLAN 2

SW1 (config-VLAN) # name vlan1x

SW1 (config-VLAN) # VLAN 3

SW1 (config-VLAN) # name vlan2x

In this case, SW1 and sw2 are synchronized.

Configure the route:

Router (config) # int F0/0

Router (config-If) # No IP add

Router (config-If) # int F0/0.1

Router (config-subif) # encapsulation dot1q 2

Router (config-subif) # IP add 172.26.10.1 255.255.255.0

Router (config-subif) # int F0/0.2

Router (config-subif) # encapsulation dot1q 3

Router (config-subif) # IP add 172.26.20.1 255.255.255.0

Router (config) # int F0/0

Router (config-If) # No Shu

Vlan1x PC: 172.26.10.2 255.255.0 172.26.10.1

Vlan2x PC: 172.26.20.2 255.255.0 172.26.20.1

In this case, pC1 and PC2 can communicate.

Step 5:

Disable the F0/0 interface of the router.

Router (config) # int F0/0

Router (config-If) # Shu

In this case, pC1 and PC2 cannot communicate.

Configure SW1:

SW1 (config) # int VLAN 2

SW1 (config-If) # IP add 172.26.10.1 255.255.255.0
SW1 (config-If) # No Shu
SW1 (config-If) # int VLAN 3

SW1 (config-If) # IP add 172.26.20.1 255.255.255.0
SW1 (config-If) # No Shu

SW1 (config-If) # exit

SW1 (config) # IP routing

In this case, pC1 and PC2 can communicate.

Sixth, next decomposition...

Sixth:

Configure SW1:

Switch (config) # int F0/24

Switch (config-If) # No switchport
Switch (config-If) # IP add 172.26.100.1 255.255.255.0
Switch (config-If) # No Shu
Switch (config-If) # ex
Switch (config) # router OSPF 1

Switch (config-router) # net 172.26.100.0 0.0.255 A 1
Switch (config-router) # net 172.26.10.0 0.0.255 A 1
Switch (config-router) # net 172.26.20.0 0.0.255 A 1

Configure the route:

Router (config) # int F0/0
Router (config-If) # IP add 172.26.100.2 255.255.255.0
Router (config-If) # No Shu

Router (config) # router OSPF 1
Router (config-router) # net 192.168.0.0 0.0.255.255 a 0
Router (config-router) # net 172.26.100.0 0.0.255 A 1

Router (config) # router rip
Router (config-router) # V 2
Router (config-router) # net 192.168.2.0
Router (config-router) # ex

Router (config) # router OSPF 1

Router (config-router) # default-Information originate

In this case, the VLAN client can access the backbone network.

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.