Some Cisco router command configurations

Source: Internet
Author: User
Router single-arm routing configuration

• Technical Principles

• One-arm routing: is a three-layer network device router for inter-VLAN communication, which requires only one Ethernet interface, which can assume all VLAN gateways by creating sub-interfaces, while forwarding data between different VLANs.

• Experimental steps

• New Packet tracer topology diagram ()

• When the switch is set to two VLANs, it becomes logically two networks, and the broadcast is isolated. For networks of two VLANs to communicate, must pass through the router, if access to a physical port of the router, then there must be two sub-interfaces corresponding to two VLANs, but also requires that the router is connected to the port of the switch F0/1 to be set to trunk, because this port to pass through two VLAN packets.

• Check the settings to see the VLAN and trunk information correctly.

• The gateway of the computer points to the sub-interface of the router, respectively.

• Configure sub-interfaces to turn on the physical interface of the router.

• Default encapsulation is dot1q protocol;

• Configure the Router sub-interface IP address.

Cli

Switch

Switch (config) #vlan 2

Switch (Config-vlan) #exit

Switch (config) #vlan 3

Switch (Config-vlan) #exit

Switch (config) #int F0/2

Switch (config-if) #switchport Access VLAN 2

Switch (config-if) #int F0/3

Switch (config-if) #switchport Access VLAN 3

Switch (config-if) #switchport mode trunk

Router:

Router (config) #int f0/0

Router (config-if) #no sh

Router (config-if) #int f0/0.1

Router (config-subif) #encapsulation dot1q 2

Router (config-subif) #ip add 192.168.1.1 255.255.255.0

Router (config-subif) #no sh

Router (config-subif) #exit

Router (config) #int f0/0.2

Router (config-subif) #encapsulation dot1q 3

Router (config-subif) #ip add 192.168.2.1 255.255.255.0

Router (config-subif) #no shutdown

Router (config-subif) #exit

Router#show IP route//You can see that there are two routing addresses in the routing table

CODES:C-connected, s-static, I-igrp, R-rip, M-mobile, B-BGP

D-EIGRP, Ex-eigrp External, O-OSPF, IA-OSPF Inter area

N1-OSPF NSSA External Type 1, N2-OSPF NSSA external type 2

E1-OSPF external Type 1, E2-OSPF external type 2, E-EGP

I-is-is, L1-is-is level-1, L2-is-is level-2, ia-is-is Inter area

*-Candidate default, U-per-user static route, O-ODR

P-periodic downloaded static route

Gateway of last resort are not set

C 192.168.1.0/24 is directly connected, fastethernet0/0.1

C 192.168.2.0/24 is directly connected, fastethernet0/0.2

Some Cisco router command configurations

Large-Scale Price Reduction
  • 59% Max. and 23% Avg.
  • Price Reduction for Core Products
  • Price Reduction in Multiple Regions
undefined. /
Connect with us on Discord
  • Secure, anonymous group chat without disturbance
  • Stay updated on campaigns, new products, and more
  • Support for all your questions
undefined. /
Free Tier
  • Start free from ECS to Big Data
  • Get Started in 3 Simple Steps
  • Try ECS t5 1C1G
undefined. /

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.