In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Configure two address pools: 192.168.1.0 Universe 24 and 192.168.2.0 Universe 24
Configure two VLAN:10 and 20
Add four hosts to VLAN respectively
Automatically obtain the IP address to ensure the interconnection of the whole network.
Steps:
[DHCP] DHCP enable
Turn on the DHCP function
[DHCP] vlan batch 10 20
[DHCP] ip pool vlan10
[DHCP] gateway-list 192.168.1.254
[DHCP] network 192.168.1.0 mask 255.255.255.0
[DHCP] lease day 3
[DHCP] dns-list 8.8.8.8/
[DHCP] ip pool VLAN 20
[DHCP] gateway-list 192.168.2.254
[DHCP] network 192.168.2.0 mask 255.255.255.0
[DHCP] lease day 3
[DHCP] dns-list 8.8.8.8/
Create the VLAN10;20;IP address pool VLAN10 and IP address pool VLAN 20. 0 on the server.
[DHCP] interface vlanif10
[DHCP] ip address 192.168.1.254 255.255.255.0
[DHCP] dhcp select global
[DHCP] interface vlanif20
[DHCP] ip address 192.168.2.254 255.255.255.0
[DHCP] dhcp select global
Configure IP/ for VLAN10,VLAN20
[DHCP] interface gi0/0/1
[DHCP] port link-type trunk
[DHCP] port trunk allow-pass all
[DHCP] interface gi0/0/2
[DHCP] port link-type trunk
[DHCP] port trunk allow-pass all
Configure DHCP server ports 1 and 2 with trunk links
[SW1] vlan batch 10 20
[SW1] interface gi0/1
[SW1] port link-type access
[SW1] port default vlan 10
[SW1] interface gi0/2
[SW1] port link-type access
[SW1] port default vlan 10
[SW1] interface gi0/3
[SW1] port link-type trunk
[SW1] port trunk allow-pass all
Add port 1 / 2 to VLAN 10 on switch 1; port 3 is set as a trunk link
[SW1] DHCP enable
Turn on the DHCP function. / / /
Switch 2 does the same thing.
Verify test save
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: 252
*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.