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

A case of small companies accessing web servers

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

Share

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

Today, we mainly bring you the network construction of a small company to ensure that every computer can access www.ntd1711.com.

Experiment name: the Construction of small Company Network

Lab Topology:

Experimental purpose:

Ensure that each terminal can access www.ntd1711.com (192.168.30.88)

Address Planning:

Device IP address and subnet mask belong to vlan gateway PC1192.168.10.1/24VLAN10192.168.10.254PC2192.168.20.2/24VLAN20192.168.20.254PC3192.168.10.3/24VLAN10192.168.10.254PC4192.168.40.4/24VLAN40192.168.40.254PC5192.168.40.5/24VLAN50192.168.50.254DNS server 192.168.30.1/24Vlan30192.168.30.254WEB server 192.168.30.88/24Vlan30192.168.30 .254 device port link mode SW1Ge0/0/1AccessSw1Ge0/0/2TrunkSw1Ge0/0/3TrunkSw1Ge0/0/4AccessSw1Ge0/0/5AccessSw2Ge0/0/1TrunkSw2Ge0/0/2TrunkSw3Ge0/0/1AccessSw3Ge0/0/2AccessSw3Ge0/0/3TrunkSw3Ge0/0/4TrunkSw4Ge0/0/1AccessSw4Ge0/0/2TrunkSw4Ge0/0/3TrunkSw5Ge0/0/1TrunkSw5Ge0/0/2AccessSw5Ge0/0/3AccessSw5Ge0/0/4Access

Experimental ideas:

1. Configure the device IP address

two。 Create a vlan and configure the link mode

3. Configure virtual gateway and RIP protocol

4. Configure DNS server and WEB server

5. Validate, test, and save

The steps of the experiment:

1. Configure the IP address of the device and plan the configuration according to the address written earlier.

PC:

two。 Create a vlan and configure the link mode

Sw1:

System\ enter the system view

Enter system view, return user view with Ctrl+Z.

[Huawei] sys

[Huawei] sysname sw1\ change the name

[sw1] vlan batch 10 20 30 40\ create vlan10 20 30 40

Info: This operation may take a few seconds. Please wait for a moment...done.

[sw1] interface GigabitEthernet 0Uniple 1\ entry port

[sw1-GigabitEthernet0/0/1] port link-type trunk\ set Link Mode trunk

[sw1-GigabitEthernet0/0/1] port trunk allow-pass vlan all\ allow all vlan to pass through

[sw1-GigabitEthernet0/0/1] Q\ exit

[sw1] interface GigabitEthernet 0ram 0ram 2\ entry port

[sw1-GigabitEthernet0/0/2] port link-type trunk\ set Link Mode trunk

[sw1-GigabitEthernet0/0/2] port trunk allow-pass vlan all\ allow all vlan to pass through

[sw1-GigabitEthernet0/0/2] Q\ exit

[sw1] interface GigabitEthernet 0ram 0ram 3\ entry port

[sw1-GigabitEthernet0/0/3] port link-type trunk\ configure Link Mode trunk

[sw1-GigabitEthernet0/0/3] Q\ exit

[sw1] interface GigabitEthernet 0ramram4\ entry port

[sw1-GigabitEthernet0/0/4] port link-type access\ set Link Mode access

[sw1-GigabitEthernet0/0/4] port default vlan30\ allow vlan30 to pass through

[sw1-GigabitEthernet0/0/4] Q\ exit

[sw1] interface GigabitEthernet 0Uniple 5\ entry port

[sw1-GigabitEthernet0/0/5] port link-type access\ set Link Mode access

[sw1-GigabitEthernet0/0/5] port default vlan30\ allow vlan30 to pass through

[sw1-GigabitEthernet0/0/5] Q\ exit

Sw2:

System\ enter the system view

Enter system view, return user view with Ctrl+Z.

[Huawei] sys

[Huawei] sysname sw2\ change the name

[sw2] vlan batch 10 20 30 40\ create vlan

Info: This operation may take a few seconds. Please wait for a moment...done.

[sw2] interface GigabitEthernet 0Uniple 1\ entry port

[sw2-GigabitEthernet0/0/1] port link-type trunk\ set Link Mode trunk

[sw2-GigabitEthernet0/0/1] port trunk allow-pass vlan all\ allow all vlan to pass through

[sw2-GigabitEthernet0/0/1] Q\ exit

[sw2] interface GigabitEthernet 0ram 0ram 2\ entry port

[sw2-GigabitEthernet0/0/2] port trunk allow-pass vlan all\ allow all vlan to pass through

[sw2-GigabitEthernet0/0/2] Q\ exit

Sw3:

System-view\ enter the system view

[Huawei] sysname sw3\ change the name

[sw3] vlan batch 10 20 30 40\ create vlan

Info: This operation may take a few seconds. Please wait for a moment...done.

[sw3] interface GigabitEthernet 0Uniple 1\ entry port

[sw3-GigabitEthernet0/0/1] port link-type access\ configure Link Mode access

[sw3-GigabitEthernet0/0/1] port default vlan10\ allow vlan10 to pass through

[sw3-GigabitEthernet0/0/1] Q\ exit

[sw3] interface GigabitEthernet 0ram 0ram 2\ entry port

[sw3-GigabitEthernet0/0/2] port link-type access\ configure Link Mode access

[sw3-GigabitEthernet0/0/2] port default vlan 20\ allow VLAn20 to pass through

[sw3-GigabitEthernet0/0/2] Q\ v exit

[sw3] interface GigabitEthernet 0ram 0ram 3\ entry port

[sw3-GigabitEthernet0/0/3] port link-type trunk\ configure Link Mode trunk

[sw3-GigabitEthernet0/0/3] port trunk allow-pass vlan all\ allow all vlan to pass through

[sw3-GigabitEthernet0/0/3] Q\ exit

[sw3] interface GigabitEthernet 0ramram4\ entry port

[sw3-GigabitEthernet0/0/4] port link-type trunk\ configure Link Mode trunk

[sw3-GigabitEthernet0/0/4] port trunk allow-pass vlan all\ allow all vlan to pass through

[sw3-GigabitEthernet0/0/4] Q\ exit

Sw4:

The device is running!

Sys\ enter the system view

Enter system view, return user view with Ctrl+Z.

[Huawei] sysname sw4\ change the name

[sw4] vlan batch 10 20 30 40\ create vlan

Info: This operation may take a few seconds. Please wait for a moment...done.

[sw4] interface GigabitEthernet 0Uniple 1\ entry port

[sw4-GigabitEthernet0/0/1] port link-type access\ configure link mode access v

[sw4-GigabitEthernet0/0/1] port default vlan40\ allow vlan40 to pass through

[sw4-GigabitEthernet0/0/1] Q\ v exit

[sw4] interface GigabitEthernet 0ram 0ram 2\ entry port

[sw4-GigabitEthernet0/0/2] port link-type trunk\ configure Link Mode trunk

[sw4-GigabitEthernet0/0/2] port trunk allow-pass vlan all\ allow all vlan to pass through

[sw4-GigabitEthernet0/0/2] Q\ exit

[sw4] interface GigabitEthernet 0ram 0ram 3\ entry port

[sw4-GigabitEthernet0/0/3] port link-type trunk\ configure Link Mode trunk

[sw4-GigabitEthernet0/0/3] port trunk allow-pass vlan all\ allow all vlan to pass through

[sw4-GigabitEthernet0/0/3] Q\ exit

System-view\ enter the system view

Enter system view, return user view with Ctrl+Z.

[Huawei] sysname sw5\ change the name

[sw5] vlan batch 10 20 30 40 50\ create vlan

Info: This operation may take a few seconds. Please wait for a moment...done.

[sw5] interface GigabitEthernet 0Uniple 1\ entry port

[sw5-GigabitEthernet0/0/1] port link-type trunk\ configure Link Mode trunk

[sw5-GigabitEthernet0/0/1] port trunk allow-pass vlan all\ allow all vlan to pass through

[sw5-GigabitEthernet0/0/1] Q\ exit

[sw5] interface GigabitEthernet 0ram 0ram 2\ entry port

[sw5-GigabitEthernet0/0/2] port link-type access\ configure Link Mode access

[sw5-GigabitEthernet0/0/2] port default vlan40\ allow vlan40 to pass through

[sw5-GigabitEthernet0/0/2] Q\ v exit

[sw5] interface GigabitEthernet 0ram 0ram 3\ entry port

[sw5-GigabitEthernet0/0/3] port link-type access\ configure Link Mode access

[sw5-GigabitEthernet0/0/3] port default vlan40\ allow vlan40 to pass through

[sw5-GigabitEthernet0/0/3] Q\ exit

[sw5] interface GigabitEthernet 0ramram4\ entry port

[sw5-GigabitEthernet0/0/4] port link-type access\ configure Link Mode access

[sw5-GigabitEthernet0/0/4] port default vlan40\ allow vlan40 to pass through

[sw5-GigabitEthernet0/0/4] Q\ exit

3. Configure virtual gateway and RIP protocol

Sw1:

[sw1] interface Vlanif 10\ enters the virtual port

[sw1-Vlanif10] undo shutdown\ Open the port

Info: Interface Vlanif10 is not shutdown.

[sw1-Vlanif10] ip address 192.168.10.254 24\ configure the gateway

[sw1-Vlanif10] int vl 20\ enter the virtual port

[sw1-Vlanif20] undo shu\ Open the port

Info: Interface Vlanif20 is not shutdown.

[sw1-Vlanif20] ip address 192.168.20.254 24\ configure the gateway

[sw1-Vlanif20] int vl 30\ enter the virtual port

[sw1-Vlanif30] undo shu\ Open the port

Info: Interface Vlanif30 is not shutdown.

[sw1-Vlanif30] ip add 192.168.30.2 24\ configure virtual IP address

[sw1-Vlanif30] Q\ exit

[sw1] rip\ configure RIP

[sw1-rip-1] version 2\ Select version 2

[sw1-rip-1] network 192.168.10.0\ declares network scope

[sw1-rip-1] network 192.168.20.0\ declares network scope

[sw1-rip-1] network 192.168.30.0\ declares network scope

[sw1-rip-1] Q\ exit

Sw2:

[sw2] int vl 30\ enter the virtual port

[sw2-Vlanif30] undo shutdown\ Open the port

Info: Interface Vlanif30 is not shutdown.

[sw2-Vlanif30] ip address 192.168.30.254 24\ configure gateway

[sw2-Vlanif30] int vl 40\ enter the virtual port

[sw2-Vlanif40] ip ad 192.168.40.254 24\ configure the gateway

[sw2-Vlanif40] Q\ exit

[sw2] rip\ configure RIP

[sw2-rip-1] version 2\ Select version 2

[sw2-rip-1] network 192.168.30.0\ declares network scope

[sw2-rip-1] network 192.168.40.0\ declares network scope

[sw2-rip-1] Q\ exit

4. Configure client, DNS server, WEB server

Client: configure the IP address according to the address plan and add the domain name server as the DNS server

DNS server: configure the IP address according to the address plan, and configure the domain name server as the WEB server, add the domain name and the IP address of the web server.

WEB server: configure the IP address according to the address plan, and add the web page root directory to select the HTML file.

5. Verify:

Client access: www.ntd1711.com

PC1 access:

PC2 access:

PC3 access:

PC4 access:

PC5 access:

Today's experiment is written here, the content is relatively simple, I hope you are satisfied, please put forward your valuable comments, thank you!

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