当前位置:网站首页>[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
边栏推荐
- Five digital transformation strategies of B2B Enterprises
- [verification of ID number]
- Penetration test - command execution injection
- Make good use of these seven tips in code review, and it is easy to establish your opposition alliance
- Use of cache in C #
- [Development Tutorial 4] open source Bluetooth heart rate waterproof sports Bracelet - external flash reading and writing
- How to gracefully realize regular backup of MySQL database (glory Collection Edition)
- Defects of matrix initialization
- Case analysis of building cross department communication system on low code platform
- 250 million, Banan District perception system data collection, background analysis, Xueliang engineering network and operation and maintenance service project: Chinatelecom won the bid
猜你喜欢

One bite of Stream(7)

Node installation using NVM succeeded, but NPM installation failed (error while downloading, TLS handshake timeout)

Baidu PaddlePaddle easydl helps improve the inspection efficiency of high-altitude photovoltaic power stations by 98%

【类的组合(在一个类中定义一个类)】

C # image template matching and marking

Practical skills!!

【MLFP】《Face Presentation Attack with Latex Masks in Multispectral Videos》

Build your own stock analysis system based on b\s architecture

Information system project manager must recite the core examination site (47) project subcontract

None of the most complete MySQL commands in history is applicable to work and interview (supreme Collection Edition)
随机推荐
Make good use of these seven tips in code review, and it is easy to establish your opposition alliance
Detailed OSPF configuration of layer 3 switch / router [Huawei ENSP experiment]
Problems with SQLite compare comparison tables
Detailed explanation of ThreadLocal
Node installation using NVM succeeded, but NPM installation failed (error while downloading, TLS handshake timeout)
String matching (Huawei)
Merge sort
Overview and installation of scientific computing toolkit scipyscipy
what? Does the multi merchant system not adapt to app? This is coming!
Opencv learning Day2
Multiplication and addition of univariate polynomials
Day5: three pointers describe a tree
Defects of matrix initialization
[Matplotlib drawing]
Shenzhen Merchants Securities account opening? Is it safe to open a mobile account?
01_ UE4 advanced_ PBR material
731. My schedule II (segment tree or scoring array)
npm Warn config global `--global`, `--local` are deprecated. Use `--location=global` instead
Case analysis of building cross department communication system on low code platform
From front-line development to technical director, you are almost on the shelf