Small Business Access Web server case

Source: Internet
Author: User
Tags domain name server

Today, we mainly bring a small company's network to ensure that every computer can access www.ntd1711.com.

Experiment Name: Construction of small company network

Experimental topology:

Experimental Purpose:
Ensure that each terminal has access to www.ntd1711.com (192.168.30.88)
Address planning:

Equipment IP address and subnet mask owning VLAN Gateway
PC1 192.168.10.1/24 VLAN10 192.168.10.254
PC2 192.168.20.2/24 VLAN20 192.168.20.254
PC3 192.168.10.3/24 VLAN10 192.168.10.254
PC4 192.168.40.4/24 VLAN40 192.168.40.254
PC5 192.168.40.5/24 VLAN50 192.168.50.254
DNS Server 192.168.30.1/24 Vlan30 192.168.30.254
Web server 192.168.30.88/24 Vlan30 192.168.30.254
Equipment Port link Mode
SW1 Ge0/0/1 Access
Sw1 Ge0/0/2 Trunk
Sw1 Ge0/0/3 Trunk
Sw1 Ge0/0/4 Access
Sw1 Ge0/0/5 Access
Sw2 Ge0/0/1 Trunk
Sw2 Ge0/0/2 Trunk
Sw3 Ge0/0/1 Access
Sw3 Ge0/0/2 Access
Sw3 Ge0/0/3 Trunk
Sw3 Ge0/0/4 Trunk
Sw4 Ge0/0/1 Access
Sw4 Ge0/0/2 Trunk
Sw4 Ge0/0/3 Trunk
Sw5 Ge0/0/1 Trunk
Sw5 Ge0/0/2 Access
Sw5 Ge0/0/3 Access
Sw5 Ge0/0/4 Access

Experimental ideas:
1. Configure the device IP address
2. Create a VLAN and configure the link mode
3. Configure the Virtual gateway and RIP protocol
4. Configure the DNS server and the Web server
5. Verification, testing and saving
Experimental steps:

1. Configure the IP address of the device, then plan the configuration according to the previously written address.

PC Machine:




2. Create a VLAN and configure the link mode

SW1:
Enter system View
Enter system view, return user view with Ctrl + Z.
[Huawei]sys
[Huawei]sysname sw1\Modify Name
[Sw1]vlan Batch 10 20 30 40\Create Vlan10
Info:this operation may take a few seconds. Please wait for a moment...done.
[Sw1]interface gigabitethernet 0/0/1 \Enter 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 VLANs to pass
[Sw1-gigabitethernet0/0/1]q\Exit
[Sw1]interface gigabitethernet 0/0/2\Enter 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 VLANs to pass
[Sw1-gigabitethernet0/0/2]q\Exit
[Sw1]interface gigabitethernet 0/0/3 \Enter Port
[Sw1-gigabitethernet0/0/3]port Link-type trunk \Configuring the link mode trunk
[Sw1-gigabitethernet0/0/3]q\Exit
[Sw1]interface gigabitethernet 0/0/4 \Enter Port
[Sw1-gigabitethernet0/0/4]port Link-type Access\set link mode access
[Sw1-gigabitethernet0/0/4]port Default VLAN 30\allow Vlan30 to pass
[Sw1-gigabitethernet0/0/4]q\Exit
[Sw1]interface gigabitethernet 0/0/5\Enter Port
[Sw1-gigabitethernet0/0/5]port Link-type Access\set link mode access
[Sw1-gigabitethernet0/0/5]port Default VLAN 30\allow Vlan30 to pass
[Sw1-gigabitethernet0/0/5]q\Exit
SW2:
Enter system View
Enter system view, return user view with Ctrl + Z.
[Huawei]sys
[Huawei]sysname sw2\Modify Name
[Sw2]vlan Batch 10 20 30 40\creating VLANs
Info:this operation may take a few seconds. Please wait for a moment...done.
[Sw2]interface gigabitethernet 0/0/1 \Enter 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 VLANs to pass
[Sw2-gigabitethernet0/0/1]q\Exit
[Sw2]interface gigabitethernet 0/0/2\Enter Port
[Sw2-gigabitethernet0/0/2]port trunk Allow-pass VLAN all\allow all VLANs to pass
[Sw2-gigabitethernet0/0/2]q\Exit
SW3:
Enter system View
[Huawei]sysname sw3\Modify Name
[Sw3]vlan Batch 10 20 30 40\creating VLANs
Info:this operation may take a few seconds. Please wait for a moment...done.
[Sw3]interface gigabitethernet 0/0/1 \Enter Port
[Sw3-gigabitethernet0/0/1]port Link-type Access\Configure link Mode access
[Sw3-gigabitethernet0/0/1]port Default VLAN 10\allow Vlan10 to pass
[Sw3-gigabitethernet0/0/1]q\Exit
[Sw3]interface gigabitethernet 0/0/2\Enter 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
[Sw3-gigabitethernet0/0/2]q\vExit
[Sw3]interface gigabitethernet 0/0/3 \Enter Port
[Sw3-gigabitethernet0/0/3]port Link-type trunk \Configuring the link mode trunk
[Sw3-gigabitethernet0/0/3]port trunk Allow-pass VLAN all\allow all VLANs to pass
[Sw3-gigabitethernet0/0/3]q\Exit
[Sw3]interface gigabitethernet 0/0/4 \Enter Port
[Sw3-gigabitethernet0/0/4]port Link-type Trunk\Configuring the link mode trunk
[Sw3-gigabitethernet0/0/4]port trunk Allow-pass VLAN all\allow all VLANs to pass
[Sw3-gigabitethernet0/0/4]q\Exit

SW4:
The device is running!
Enter system View
Enter system view, return user view with Ctrl + Z.
[Huawei]sysname sw4\Modify Name
[Sw4]vlan Batch 10 20 30 40\creating VLANs
Info:this operation may take a few seconds. Please wait for a moment...done.
[Sw4]interface gigabitethernet 0/0/1 \Enter Port
[Sw4-gigabitethernet0/0/1]port Link-type Access\Configure link mode access v
[Sw4-gigabitethernet0/0/1]port Default VLAN 40\allow Vlan40 to pass
[Sw4-gigabitethernet0/0/1]q\vExit
[Sw4]interface gigabitethernet 0/0/2\Enter Port
[Sw4-gigabitethernet0/0/2]port Link-type Trunk\Configuring the link mode trunk
[Sw4-gigabitethernet0/0/2]port trunk Allow-pass VLAN all\allow all VLANs to pass
[Sw4-gigabitethernet0/0/2]q\Exit
[Sw4]interface gigabitethernet 0/0/3\Enter Port
[Sw4-gigabitethernet0/0/3]port Link-type Trunk\Configuring the link mode trunk
[Sw4-gigabitethernet0/0/3]port trunk Allow-pass VLAN all\allow all VLANs to pass
[Sw4-gigabitethernet0/0/3]q\Exit
Enter system View
Enter system view, return user view with Ctrl + Z.
[Huawei]sysname sw5\Modify Name
[Sw5]vlan Batch 10 20 30 40 50\creating VLANs
Info:this operation may take a few seconds. Please wait for a moment...done.
[Sw5]interface gigabitethernet 0/0/1\Enter Port
[Sw5-gigabitethernet0/0/1]port Link-type trunk \Configuring the link mode trunk
[Sw5-gigabitethernet0/0/1]port trunk Allow-pass VLAN all\allow all VLANs to pass
[Sw5-gigabitethernet0/0/1]q\Exit
[Sw5]interface gigabitethernet 0/0/2\Enter Port
[Sw5-gigabitethernet0/0/2]port Link-type Access\Configure link Mode access
[Sw5-gigabitethernet0/0/2]port Default VLAN 40\allow Vlan40 to pass
[Sw5-gigabitethernet0/0/2]q\vExit
[Sw5]interface gigabitethernet 0/0/3\Enter Port
[Sw5-gigabitethernet0/0/3]port Link-type Access\Configure link Mode access
[Sw5-gigabitethernet0/0/3]port Default VLAN 40\allow Vlan40 to pass
[Sw5-gigabitethernet0/0/3]q\Exit
[Sw5]interface gigabitethernet 0/0/4\Enter Port
[Sw5-gigabitethernet0/0/4]port Link-type Access\Configure link Mode access
[Sw5-gigabitethernet0/0/4]port Default VLAN 40\allow Vlan40 to pass
[Sw5-gigabitethernet0/0/4]q\Exit

3. Configure the Virtual gateway and RIP protocol

SW1:
[Sw1]interface vlanif 10\ EnterVirtual Port
[Sw1-vlanif10]undo shutdown \Open 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 virtual Port
[Sw1-vlanif20]undo shu\Open 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 virtual Port
[Sw1-vlanif30]undo shu\Open Port
Info:interface VLANIF30 is not shutdown.
[Sw1-vlanif30]ip Add 192.168.30.2 24\Configuring virtual IP addresses
[Sw1-vlanif30]q\Exit
[Sw1]rip \Configure RIP
[Sw1-rip-1]version 2 \Select version 2
[Sw1-rip-1]network 192.168.10.0\declaring network scope
[Sw1-rip-1]network 192.168.20.0\declaring network scope
[Sw1-rip-1]network 192.168.30.0\declaring network scope
[Sw1-rip-1]q\Exit
SW2:
[Sw2]int VL 30\Enter virtual Port
[Sw2-vlanif30]undo shutdown \Open Port
Info:interface VLANIF30 is not shutdown.
[Sw2-vlanif30]ip address 192.168.30.254 24\Configure the Gateway
[Sw2-vlanif30]int VL 40\Enter 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\declaring network scope
[Sw2-rip-1]network 192.168.40.0\declaring network scope
[Sw2-rip-1]q\Exit

4. Configure the 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 root directory to select the HTML file.

5. Verify that:

Client Access: www.ntd1711.com

PC1 Access:

PC2 Access:

PC3 Access:

PC4 Access:

PC5 Access:

今天的实验就写到这里,内容比较简单,希望大家满意,请大家提出宝贵意见,谢谢!

Small Business Access Web server case

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.