In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Lab name: layer 3 switch turns on DHCP
2. Experimental purpose: turn on DHCP to obtain IP address automatically
3. Implement the topology:
4. Experimental steps:
(1) sw2:
Switch > en
Switch#conf
Switch (config) # vlan 10
Switch (config-vlan) # vlan 20
Switch (config-vlan) # vlan 30
Switch (config-vlan) # vlan 40
Switch (config-vlan) # int f0bin1
Switch (config-if) # sw mo ac
Switch (config-if) # sw ac vlan 10
Switch (config-if) # int f0bin2
Switch (config-if) # sw mo ac
Switch (config-if) # sw ac vlan 20
Switch (config-if) # int range f0amp 3jiggle f0plink 5jiggle f0Unique 4
Switch (config-if-range) # sw mo tr
(2) Sw3:
Switch > en
Switch#conf
Switch (config) # vlan 10
Switch (config-vlan) # vlan 20
Switch (config-vlan) # vlan 30
Switch (config-vlan) # vlan 40
Switch (config-vlan) # int f0bin1
Switch (config-if) # sw mo ac
Switch (config-if) # sw ac vlan 30
Switch (config-if) # int f0bin2
Switch (config-if) # sw mo ac
Switch (config-if) # sw ac vlan 40
Switch (config-if) # int range f0and3jiggle f0and4jiggle f0max 5
Switch (config-if-range) # sw mo tr
(3) SW0:
Switch#en
Switch#conf
Switch (config) # vlan 10
Switch (config-vlan) # vlan 20
Switch (config-vlan) # vlan 30
Switch (config-vlan) # vlan 40
Switch (config-vlan) # int range f0max 6 Magi f0max 3 Magi f0max 5
Switch (config-if-range) # sw mo tr
(4) SW1:
Switch > en
Switch#conf
Switch (config) # vlan 10
Switch (config-vlan) # vlan 20
Switch (config-vlan) # vlan 30
Switch (config-vlan) # vlan 40
Switch (config-vlan) # int range f0max 6 Magi f0max 5 Magi f0max 3
Switch (config-if-range) # sw mo tr
(5) Multilayer switch configuration
1) create VLAN10 20 30 40 and enable route forwarding to configure trunk links for lower-layer ports
Switch > en
Switch#conf
Switch (config) # vlan 10
Switch (config-vlan) # vlan 20
Switch (config-vlan) # vlan 30
Switch (config-vlan) # vlan 40
Switch (config-vlan) # exit
Switch (config) # ip routing
Switch (config) # int range f0and6 int range f0and7
Switch (config-if-range) # sw tr e d
Switch (config-if-range) # sw mo tr
2) configure the DHCP address pool corresponding to VLAN10-40 (IP, default gateway, DNS)
Switch (config) # ip dhcp pool vlan10
Switch (dhcp-config) # network 192.168.10.0 255.255.255.0
Switch (dhcp-config) # default-router 192.168.10.254
Switch (dhcp-config) # dns-server 8.8.8.8
Switch (dhcp-config) # e
Switch (config) # ip dhcp pool vlan20
Switch (dhcp-config) # network 192.168.20.0 255.255.255.0
Switch (dhcp-config) # default-router 192.168.20.254
Switch (dhcp-config) # dns-server 8.8.8.8
Switch (dhcp-config) # e
Switch (config) # ip dhcp pool vlan30
Switch (dhcp-config) # network 192.168.30.0 255.255.255.0
Switch (dhcp-config) # default-router 192.168.30.254
Switch (dhcp-config) # dns-server 8.8.8.8
Switch (dhcp-config) # e
Switch (config) # ip dhcp pool vlan40
Switch (dhcp-config) # network 192.168.40.0 255.255.255.0
Switch (dhcp-config) # default-router 192.168.40.254
Switch (dhcp-config) # dns-server 8.8.8.8
Switch (dhcp-config) # e
Switch (config) # service DHCP
3) Virtual interface VLAN configuration corresponds to gateway address
Switch (config) # int vlan 10
Switch (config-if) # ip add 192.168.10.254 255.255.255.0
Switch (config-if) # no shu
Switch (config-if) # int vlan 20
Switch (config-if) # ip add 192.168.20.254 255.255.255.0
Switch (config-if) # no shu
Switch (config-if) # int vlan 30
Switch (config-if) # ip add 192.168.30.254 255.255.255.0
Switch (config-if) # no shu
Switch (config-if) # int vlan 40
Switch (config-if) # ip add 192.168.40.254 255.255.255.0
Switch (config-if) # no shu
Switch (config-if) # end
5. Verification and testing:
6. Summary: configuration ideas:
(1) four PCs set up DHCP to obtain IP addresses automatically
(2) the layer 2 switch creates VLAN 10 20 30 40, and adds the corresponding port access to the corresponding VLAN, and the remaining ports trunk
(3) the layer 2 switch creates VLAN 10pm 20 30 40 trunk and allows all VLAN to pass through
(4) the layer 3 switch enables the routing function. The corresponding two ports trunk and configure the gateway address corresponding to the virtual VLAN 10-40.
(5) layer 3 switch configures VLAN10-40 address pool, gateway, DNS, and enables DHCP in global 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.