当前位置:网站首页>[CCNA experiment sharing] routing between VLANs of layer 3 switches
[CCNA experiment sharing] routing between VLANs of layer 3 switches
2022-07-24 21:33:00 【GLAB-Mary】
The experiment purpose :
Use L3 Switch to do Vlan Routing between nodes
Experimental instructions :
Although single arm routing can achieve different vlan To communicate with each other , Because of poor performance , So... Is not recommended . Generally, high-performance routes are used between different network segments in medium and large-scale networks L3 Switch .
Experimental Topology :

The experimental steps :
1. To configure Core Switch
Switch(config)#hostname Core
Core(config)#vlan 10
Core(config-vlan)#name engineering
Core(config-vlan)#vlan 20
Core(config-vlan)#name RD
Core(config-vlan)#vlan 30
Core(config-vlan)#name ServerFarm
Core(config-vlan)#vlan 40
Core(config-vlan)#name MGT-vlan
Core(config-vlan)#exit
Core(config)#int vlan 10
Core(config-if)#no shut
Core(config-if)#ip address 192.168.10.254 255.255.255.0{ Create three layers SVI Interface , And configuration IP Address }
Core(config-if)#int vlan 20
Core(config-if)#ip address 192.168.20.254 255.255.255.0
Core(config-if)#no shutdown
Core(config-if)#int vlan 30
Core(config-if)#ip address 192.168.30.254 255.255.255.0
Core(config-if)#no shutdown
Core(config-if)#int vlan 40
Core(config-if)#ip address 192.168.40.254 255.255.255.0
Core(config-if)#no shutdown
Core(config-if)#exit
Core(config)#ip routing{ Enable L3 The routing function of the switch }
Core(config)#int range f0/1 - 2
Core(config-if-range)#switch mode access
Core(config-if-range)#switch access vlan 30
Core(config-if-range)#spanning-tree portfast
Core(config-if-range)#exit
Core(config)#int f0/24
Core(config-if)#switchport trunk encapsulation dot1q
Core(config-if)#switchport mode trunk
Core(config-if)#exit
Core(config)#line vty 0 4
Core(config-line)#login
Core(config-line)#password G-LAB
Core(config-line)#exit
Core(config)#enable secret G-LAB
2. To configure ED-SW Switch
Switch>enable
Switch#
Switch(config)#hostname ED-SW
ED-SW(config)#vlan 10
ED-SW(config-vlan)#name engineering
ED-SW(config-vlan)#vlan 20
ED-SW(config-vlan)#name RD
ED-SW(config-vlan)#vlan 40
ED-SW(config-vlan)#name MGT-vlan
ED-SW(config-vlan)#exit
ED-SW(config)#int range f0/1 – 5
ED-SW(config-if-range)#switch mode access
ED-SW(config-if-range)#switch access vlan 10
ED-SW(config-if-range)#spanning-tree portfast
ED-SW(config)#int range f0/6 – 10
ED-SW(config-if-range)#switch mode access
ED-SW(config-if-range)#switch access vlan 20
ED-SW(config-if-range)#spanning-tree portfast
ED-SW(config-if-range)exit
ED-SW(config)#interface fa0/12
ED-SW(config-if)#switch mode trunk
ED-SW(config-if)#exit
ED-SW(config)#int vlan 40
ED-SW(config-if)#ip address 192.168.40.200 255.255.255.0
ED-SW(config-if)#no shut
ED-SW(config-if)#exit
ED-SW(config)#ip default-gateway 192.168.40.254
ED-SW(config)#line vty 0 4
ED-SW(config-line)#login
ED-SW(config-line)#password G-LAB
ED-SW(config-line)#exit
ED-SW(config)#enable secret G-LAB
3. test
PC1:192.168.10.11/24 default-gateway:192.168.10.254
PC2:192.168.20.11/24 default-gateway:192.168.20.254
Server:192.168.30.22/24 default-gateway:192.168.30.254
PC1 Link to ED-SW Fa0/1
PC2 Link to ED-SW Fa0/6
Server Connect to Core-SW Fa0/1
C:\Documents and Settings\Joseph>ping{ stay PC1 Do on ping test } 192.168.10.254
Pinging 192.168.10.254 with 32 bytes of data:
Reply from 192.168.10.254: bytes=32 time=1ms TTL=64
Reply from 192.168.10.254: bytes=32 time=1ms TTL=64
Reply from 192.168.10.254: bytes=32 time=1ms TTL=64
Reply from 192.168.10.254: bytes=32 time=1ms TTL=64
Ping statistics for 192.168.10.254:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
C:\Documents and Settings\Joseph>{ stay PC1 Do on ping test }ping 192.168.20.254
Pinging 192.168.20.254 with 32 bytes of data:
Reply from 192.168.20.254: bytes=32 time=1ms TTL=64
Reply from 192.168.20.254: bytes=32 time=1ms TTL=64
Reply from 192.168.20.254: bytes=32 time=1ms TTL=64
Reply from 192.168.20.254: bytes=32 time=1ms TTL=64
Ping statistics for 192.168.20.254:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
C:\Documents and Settings\Joseph>{ stay PC1 Do on ping test }ping 192.168.30.22
Pinging 192.168.30.22 with 32 bytes of data:
Reply from 192.168.30.22: bytes=32 time=1ms TTL=63{TTL Value reduced 1, It means that I passed a router }
Reply from 192.168.30.22: bytes=32 time=1ms TTL=63
Reply from 192.168.30.22: bytes=32 time=1ms TTL=63
Reply from 192.168.30.22: bytes=32 time=1ms TTL=63
Ping statistics for 192.168.30.22:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
Core#sh ip route{ Check the routing table of the core switch }
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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 is not set
C 192.168.30.0/24 is directly connected, Vlan30
C 192.168.10.0/24 is directly connected, Vlan10
C 192.168.40.0/24 is directly connected, Vlan40
C 192.168.20.0/24 is directly connected, Vlan20{ You can go straight to vlan10、20、30、40 How many? vlan.}
ED-SW#ping 192.168.40.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.40.254, timeout is 2 seconds:
!!!{ED-SW It can be done with Core Interworking }
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/202/1004 ms
ED-SW#sh vlan b
VLAN Name Status Ports
1 default active
10 test active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5
20 RD active Fa0/6, Fa0/7, Fa0/8, Fa0/9
Fa0/10
40 MGT-VLAN active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
ED-SW#telnet 192.168.40.254
Trying 192.168.40.254 … Open{ explain ED-SW You can log in remotely to Core Do management }
User Access Verification
Password: G-LAB
Core>en
Password: G-LAB
Core#
Core#telnet 192.168.40.200 /source-interface vlan 40
Trying 192.168.40.200 … Open{ It can be explained from other vlan Log in remotely to ED-SW Manage cross network segments }
User Access Verification
Password: G-LAB
ED-SW>en
Password: G-LAB
ED-SW#
4. The experiment is finished
边栏推荐
- A very useful log4net logging library
- npm Warn config global `--global`, `--local` are deprecated. Use `--location=global` instead
- 92. Recursive implementation of exponential enumeration
- Little Red Book Keyword Search commodity list API interface (commodity detail page API interface)
- One bite of Stream(6)
- Eight transformation qualities that it leaders should possess
- One bite of Stream(7)
- Codeforces Round #808 (Div. 2)(A~D)
- Career development suggestions shared by ten CIOs
- Understand MySQL index and b+tree in an easy to understand way (supreme Collection Edition)
猜你喜欢

Intranet penetration learning (I) introduction to Intranet

Leetcode skimming -- bit by bit record 018

How to prevent weight under Gao Bingfa?

Let's make a nice monthly temperature map of China with ArcGIS

A simple method of converting SVG to PDF

Gather relevant knowledge points and expand supplements
![[jzof] 06 print linked list from end to end](/img/c7/c2ac4823b5697279b81bec8f974ea9.png)
[jzof] 06 print linked list from end to end
![[shallow copy and deep copy], [heap and stack], [basic type and reference type]](/img/cc/d43e0046d83638f381c34b463f64a2.png)
[shallow copy and deep copy], [heap and stack], [basic type and reference type]

C # image template matching and marking
![[SOC] the first project of SOC Hello World](/img/ae/326312cb3b5a372c7b8b048936a9f2.png)
[SOC] the first project of SOC Hello World
随机推荐
Lenovo Filez helps Zhongshui North achieve safe and efficient file management
“IRuntime”: 未声明的标识符
怎么在中金证券购买新课理财产品?收益百分之6
Multiplication and addition of univariate polynomials
A very useful log4net logging library
Overloaded & lt; for cv:: point;, But VS2010 cannot find it
01_ UE4 advanced_ PBR material
Leetcode skimming -- bit by bit record 018
95. Puzzling switch
Mysql database query is so slow. Besides index, what else can it do?
Baidu classic interview question - determine prime (how to optimize?)
[jzof] 06 print linked list from end to end
Quick sort
Binary search
How to buy Xinke financial products in CICC securities? Revenue 6%
Problems with SQLite compare comparison tables
Is it safe to open an account on Alipay
Scientific computing toolkit SciPy data interpolation
Discussion on solving the application ecological problems of domestic systems based on small programs
what? Does the multi merchant system not adapt to app? This is coming!