Get the App
SLTechnology News&Howtos  ›  Servers  › 

Cisco layer 3 switch

Shulou Source: shulou.com Published: 2022-06-02 22:06:02 11月12日 Update

PC8 vlan10 dhcp acquires IP address range: 192.168.10.Universe 24

Pc9 vlan20 dhcp acquires IP address range: 192.168.20.0 Universe 24

Vlan 10 fd

Vlan 20 it

1. Layer 2 switch divides into vlan

Add the port to the vlan

two。 Layer 3 switch is configured with vlan (same as layer 2 switch)

Switch (config) # vlan 10Switch (config-vlan) # name fdSwitch (config-vlan) # exitSwitch (config) # vlan 20Switch (config-vlan) # name itSwitch (config-vlan) # exitSwitch (config) #

3. Layer 3 switch configuration dhcp

Switch (config) # ip dhcp pool vlan10 # vlan10 is just the name Switch (dhcp-config) # network 192.168.10.0 255.255.255.0Switch (dhcp-config) # dns-server 223.5.5.5Switch (dhcp-config) # default-router 192.168.10.254Switch (dhcp-config) # exitSwitch (config) # ip dhcp excluded-address 192.168.10.254Switch (config) # ip dhcp pool vlan20 # vlan20 is just the name Switch (dhcp-config) # network 192.168 .20.0 255.255.255.0Switch (dhcp-config) # dns-server 223.5.5.5Switch (dhcp-config) # default-router 192.168.20.254Switch (dhcp-config) # exitSwitch (config) # ip dhcp excluded-address 192.168.20.254

4. Layer 3 switch configured with vlan address

Switch (config) # interface vlan 10Switch (config-if) # ip address 192.168.10.254 255.255.255.0Switch (config-if) # no shutdownSwitch (config-if) # Switch (config-if) # exitSwitch (config) # interface vlan 20Switch (config-if) # ip address 192.168.20.254 255.255.255.0Switch (config-if) # no shutdown

5. Layer 3 switch turns on routing function

Ip routing

6. The uplink interface of layer 2 called switch is divided into trunk mode.

Tags: Switch layer 2 configuration just name network segment function address interface mode port routing uplink Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Huawei vpn Xiaomi MySQL