Feasible configuration scheme of CISCO 3550 Switch

Source: Internet
Author: User

1. Brief Network Topology

650) this. width = 650; "src =" 51cto.com/uploads/allianz 110824/12423j0b-0.jpg "class =" blogimg "border =" 0 "height =" 559 "width =" 746 "/>

2. Configure vswitches

1. Connect the serial port-the serial port of the network port line to the serial port of the PC, connect the serial port to the control interface behind the switch, connect the power supply, and start the switch.

2. Enable SecureCRT under the Super Terminal 2003), configure, 9600/8/n/1

3. Restore the factory configuration first to prevent the previous configuration file from affecting the current configuration. The operation procedure and command are as follows:

Switch> en# Entering privileged Mode

Switch #Erase nvram# Restore the factory command. The following prompt is only available by default. If the prompt is "save", save it.

Switch # reload# Restarting a vswitch

In privileged mode, these commands can also restore the factory Configuration:

Switch # delete config. text

Switch # delete private-config.text

Switch # delete vlan. dat

Switch # reload

4. Basic vswitch Configuration:

Switch>

Switch> enable

Switch # conf t

Switch (config) # host 3550

3550 (config )#No ip dolo #This statement may indicate that the statement fails, but does not affect the subsequent results. You can omit it.

3550 (config) # line con 0

3550 (config-line) # noexec-t

3550 (config-line) # loggsyn

3550 (config-line) # exit

5. Configure port 2: Use Port 2 as the routing forwarding port, which is directly connected to the network segment 192.168.2.0.

From layer-2 switch wiring, because the DHCP pool allocated by the router to the CIDR Block 192.168.2.0 is from 192.168.2.100-192.168.2.199, and others are static allocation.

The gateway of the router is 192.168.2.1255.255.255.0.

Therefore, a route forwarding address for the specified IP192.168.2.10 255.255.255.0 on Port 2 is provided.

The configuration table is as follows:

3550 # conf t

3550(Config) # int g 0/2#Enter port2Configure

3550 (config-if )#Description connection to sale #Add description to facilitate Error Detection

3550 (config-if )#Noswitchport #Enable layer-3 routing

3550 (config-if) # ip add 192.168.2.10 255.255.255.0 #Specified portIP

3550 (config-if) # no shutdown #Save Configuration

3550 (config-if) # exit #Back to previous Layer

6. Configure port 3: connect to the network segment 192.168.3.0/24 under Port 3

Gateway: 192.168.3.1 subnet mask: 255.255.255.0

DHCP pool: 192.168.3.101-192.168.3.254

The configuration table is as follows:

// Configure the Valn port mode for Vlan Division

3550 (config) # vlan 3

3550 (config-vlan) # nametest #ToVlan 3Name itTest

3550 (config-vlan) # intg 0/3

3550 (config-if) # switchport mode access

3550 (config-if) # switchportaccess vlan 3

3550 (config-if) # spanning-treeportfast

// Configure SVI (switch Virtual Interface)

3550 (config) # int vlan 3

3550 (config-if) # description connection to test #Add description to facilitate Error Detection

3550 (config-if) # ipadd 192.168.3.1 255.255.255.0 #SpecifyIPGateway with CIDR Block

3550 (config-if) # no shutdown #Save Configuration

3550 (config-if) # exit #Back to previous Layer

// Configure DHCP

3550 (config )#Service dhcp #Enable in global ModeDHCPService

3550 (config )#No ip dhcp conflict logging #Disable conflict logs

3550 (config) # ipdhcp pool test #The address pool name can be any character)

3550 (dhcp-config) # network 192.168.3.0/24#Configure address pool

3550 (dhcp-config) # default-router192.168.3.1 #Configure Gateway

3550 (dhcp-config) # dns192.168.2.1 #ConfigurationDNS, You do not need to configure

3550 (dhcp-config) # domain-nameWww.cisco.com# DNSDomain Name

3550 (dhcp-config) # lease infinite#Configure address pool lease period, permanent

3550 (dhcp-config) # exit #Back to previous Layer

//Exclude unnecessaryDHCPService address range

3550 (config) # ipdhcp excluded-address 192.168.3.1194253.100



7. Configure port 4: connect to the network segment 192.168.4.0/24 under port 4

Gateway: 192.168.4.1 subnet mask: 255.255.255.0

DHCP pool: 192.168.4.101-192.168.4.254

The configuration table is as follows:

// Configure the Valn port mode for Vlan Division

3550 (config) # vlan 3

3550 (config-vlan) # name test #ToVlan 3Name itTest

3550 (config-vlan) # intg 0/3

3550 (config-if) # switchportmode access

3550 (config-if) # switchportaccess vlan 3

3550 (config-if) # spanning-treeportfast

// Configure SVI (switch Virtual Interface)

3550 (config) # int vlan 4

3550 (config-if) # description connectionto workt #Add description to facilitate Error Detection

3550 (config-if) # ip add192.168.4.1 255.255.255.0 #SpecifyIPGateway with CIDR Block

3550 (config-if) # no shutdown #Save Configuration

3550 (config-if) # exit #Back to previous Layer

// Configure DHCP

3550 (config) # service dhcp #Enable in global ModeDHCPService

3550 (config) # no ip dhcp conflict logging #Disable conflict logs

3550 (config) # ip dhcp pool test #The address pool name can be any character)

3550 (dhcp-config) # network 192.168.4.0/24 #Configure address pool

3550 (dhcp-config) # default-router 192.168.4.1 #Configure Gateway

3550 (dhcp-config) # dns 192.168.2.1 #ConfigurationDNS, You do not need to configure

3550 (dhcp-config) # domain-name www.cisco.com # DNSDomain Name

3550 (dhcp-config) # lease infinite #Configure address pool lease period, permanent

3550 (dhcp-config) # exit #Back to previous Layer

//Exclude unnecessaryDHCPService address range

3550 (config) # ip dhcp excluded-address 192.168.4.1194254.100

8. Configure port 5: connect to the network segment 192.168.5.0/24 under Port 5

Gateway: 192.168.5.1 subnet mask: 255.255.255.0

DHCP pool: 192.168.5.101-192.168.5.254

The configuration table is as follows:

// Configure the Valn port mode for Vlan Division

3550 (config) # vlan 3

3550 (config-vlan) # name test #ToVlan 3Name itTest

3550 (config-vlan) # intg 0/3

3550 (config-if) # switchportmode access

3550 (config-if) # switchportaccess vlan 3

3550 (config-if) # spanning-treeportfast

// Configure SVI (switch Virtual Interface)

3550 (config) # int vlan 5

3550 (config-if) # descriptionconnection to test #Add description to facilitate Error Detection

3550 (config-if) # ip add 192.168.5.1255.255.255.0 #SpecifyIPGateway with CIDR Block

3550 (config-if) # no shutdown #Save Configuration

3550 (config-if) # exit #Back to previous Layer

// Configure DHCP

3550 (config) # service dhcp #Enable in global ModeDHCPService

3550 (config) # no ip dhcp conflict logging #Disable conflict logs

3550 (config) # ip dhcp pool test #The address pool name can be any character)

3550 (dhcp-config) # network 192.168.5.0/24 #Configure address pool

3550 (dhcp-config) # default-router 192.168.5.1 #Configure Gateway

3550 (dhcp-config) # dns 192.168.2.1 #ConfigurationDNS, You do not need to configure

3550 (dhcp-config) # domain-name www.cisco.com # DNSDomain Name

3550 (dhcp-config) # lease infinite #Configure address pool lease period, permanent

3550 (dhcp-config) # exit #Back to previous Layer

//Exclude unnecessaryDHCPService address range

3550 (config) # ip dhcp excluded-address 192.168.5.1194255.100

9. Enable the routing function to enable communication between network segments.

3550 (config) # ip routing

3550 (config) # ip route 0.0.0.0 0.0.0.0 192.168.2.1

3550 (config) # exit

3. Configure the router and add a static route table so that each network segment can communicate with each other and connect to the Internet.

1. log on to the vro, 192.168.2.1

2. routing function-static route table-add new entries:

Destination IP Address: 192.168.3.0 // Add a CIDR Block

Subnet Mask: 255.255.255.0

Default Gateway: 192.168.2.10 // use the IP address of Port 2 for forwarding Routing

Status: Effective

3. Save

4. Add network segments 192.168.4.0 and 192.168.5.0 in the same way as step 2.

5. Test.


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.