Cisco Packet Tracer process for single-arm routing

Source: Internet
Author: User

Cisco Packet Tracer version: 6.0.0.0045

Single-arm routing


VLAN planning
Configuration on Switch 0:
switch>en
Switch (config) #vlan 2 #创建vlan2
Switch (config) #vlan 3 #创建vlan3
Switch (Config-vlan) #exit
Switch (config) #exit
Switch#show VLAN #查看vlan

Switch (config) #interface range F0/2-F0/4 #range可以批量选择端口
Switch (config-if-range) #switchport ACC VLAN 2 #将这3个端口添加到vlan2里面
Switch (Config-if-range) #exit
Switch (config) #exit
Switch#show VLAN #查看vlan, the following 2, 3, 4 interfaces have been added
。。。。。。。。。
。。。。。。。。。
2 VLAN0002 Active FA0/2, FA0/3, FA0/4
。。。。。。。
。。。。。。。

Configuration on Switch 1:
switch>en
Switch#configure Terminal
Switch (config) #interface range F0/2-F0/4 #添加range可以批量选择端口
Switch (config-if-range) #switchport ACC VLAN 2 #将f0/2-F0/4 added to VLAN 2

##############################################################################################
To remove a VLAN step:
switch>en
Switch#conf Terminal
Switch (config) #int range f0/2-4
Switch (config-if-range) #no switchport access VLAN 2 #先把vlan 2 interface removal
Switch (Config-if-range) #exit
Switch (config) #no int vlan 2 #然后再删除vlan 2

Switch (config) #vlan 3 #创建vlan 3
Switch (config) #int range f0/2-4 #选定一个范围
Switch (config-if-range) #switchport access VLAN 3 #把选定范围内的接口添加到vlan 3
Switch#show VLAN #查看vlan和接口, notice where
##############################################################################################

R1
Router>enable
Router#configure Terminal
Router (config) #interface gigabitethernet 0/0
Router (config-if) #ip add 192.168.0.11 255.255.255.0
Router (config-if) #no shutdown #开启GigabitEthernet 0/0 interface
Router (config-if) #exit
Router (config) #interface gigabitethernet 0/1
Router (config-if) #ip add 192.168.1.11 255.255.255.0
Router (config-if) #no shutdown
Router (config-if) #exit
Router (config) #exit
Router#show IP int Brief

The above is a step to assign IP and VLAN partitioning to each interface
#################################################################

The following open sub-interface, before opening the int g0/0 and G0/1 interface on the address removed. Remember!!!!
Router#sh int g0/0
Router#conf T
Router (config) #int g0/0
Router (config-if) #no IP Add (IP address) #删除几口上的ip地址
-----------------------------------------------------------------

R1 turn on the g0/0 sub-interface:
Router#conf Terminal
Router (config) #int g0/0.10
Router (config-subif) #encapsulation dot1q 3 #3表示是vlan 3
Router (config-subif) #ip addr 192.168.0.11 255.255.255.0
Router (config-subif) #exit

R1 turn on the G0/1 sub-interface:
Router (config) #int g0/1.10 #开启子接口
Router (config-subif) #encapsulation dot1q 2 #把vlan2封装成802.1Q Virtual LAN Protocol
Router (config-subif) #ip addr 192.168.1.11 255.255.255.0
Router (config-subif) #exit
Router (config) #exit

Router left switch
switch>en
Switch#configure Terminal
Switch (config) #interface F0/1
Switch (config-if) #switchport mode trunk

The switch on the right side of the router is the same as the switch on the left, and the router-connected line is changed to trunk.
Switch#configure Terminal
Switch (config) #int F0/1
Switch (config-if) #switchport mode trunk
Router#sh Running-config #查看各个接口的状态

###### #删除子接口 ##########
router# conf t
Router (config) #no int g0/1.20
Router (config) #exit
###### #删除子接口 ##########


Verify:
Turn on PC0 validation
Pc>ping 192.168.1.12

Pinging 192.168.1.12 with + bytes of data:

Reply from 192.168.1.12:bytes=32 time=0ms ttl=127
Reply from 192.168.1.12:bytes=32 time=1ms ttl=127
Reply from 192.168.1.12:bytes=32 time=0ms ttl=127
Reply from 192.168.1.12:bytes=32 time=1ms ttl=127

Cisco Packet Tracer process for single-arm routing

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.