Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Cisco layer 3 switch

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report