簡單介紹三層交換

共青歡發表於2021-01-03

三層交換技術就是:

二層交換技術+三層轉發技術。它解決了區域網網段劃分之後,網段中子網必須依賴路由器進行管理的局面,解決了傳統路由器低速、複雜所造成的網路瓶頸問題。

SW1 

The device is running!

<Huawei>undo terminal monitor 
Info: Current terminal monitor is off.
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname LSW1
[LSW1]vlan bat 2 3
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW1]int g0/0/1	
[LSW1-GigabitEthernet0/0/1]port link-type access 	
[LSW1-GigabitEthernet0/0/1]port default vlan 2
[LSW1-GigabitEthernet0/0/1]int g0/0/2
[LSW1-GigabitEthernet0/0/2]port link-type access
[LSW1-GigabitEthernet0/0/2]port default vlan 3
[LSW1-GigabitEthernet0/0/2]q
[LSW1]int vlan 2
[LSW1-Vlanif2]ip add 192.168.2.1 24
[LSW1-Vlanif2]int vlan 3
[LSW1-Vlanif3]ip add 192.168.3.1 24
[LSW1-Vlanif3]q

PC3

PC>ping 192.168.3.10

Ping 192.168.3.10: 32 data bytes, Press Ctrl_C to break
From 192.168.3.10: bytes=32 seq=1 ttl=127 time=94 ms
From 192.168.3.10: bytes=32 seq=2 ttl=127 time=47 ms
From 192.168.3.10: bytes=32 seq=3 ttl=127 time=46 ms
From 192.168.3.10: bytes=32 seq=4 ttl=127 time=32 ms
From 192.168.3.10: bytes=32 seq=5 ttl=127 time=47 ms

--- 192.168.3.10 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 32/53/94 ms

PC4

PC>ping 192.168.2.10

Ping 192.168.2.10: 32 data bytes, Press Ctrl_C to break
From 192.168.2.10: bytes=32 seq=1 ttl=127 time=31 ms
From 192.168.2.10: bytes=32 seq=2 ttl=127 time=47 ms
From 192.168.2.10: bytes=32 seq=3 ttl=127 time=47 ms
From 192.168.2.10: bytes=32 seq=4 ttl=127 time=46 ms
From 192.168.2.10: bytes=32 seq=5 ttl=127 time=47 ms

--- 192.168.2.10 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 31/43/47 ms

 

相關文章