简单介绍三层交换

三层交换技术就是:

二层交换技术+三层转发技术。它解决了局域网中网段划分之后,网段中子网必须依赖路由器进行管理的局面,解决了传统路由器低速、复杂所造成的网络瓶颈问题。

简单介绍三层交换_第1张图片

SW1 

The device is running!

undo terminal monitor 
Info: Current terminal monitor is off.
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

 

你可能感兴趣的:(路由器,网络,局域网)