Cisco 交换机综合实例(二)

时间:2023-11-16 19:35:27 来源:网络 浏览:9次

3. Catalyst 4003 的配置
下面给出Catalyst 4003 的配置清单
Enter passWord:
Console> enable

Enter password:
Console> (enable) set system name 4003-ER-F1
System name set.
4003-ER-F1> (enable) set system location 1st Floor Equipment Room
System location set.
4003-ER-F1> (enable) set system contact sysadmin@bigcorp.com
System contact set.
4003-ER-F1> (enable) set time 04/30/1999 9:45:00
Fri Apr 30 1999, 09:45:00
4003-ER-F1> (enable) set password
Enter old password:
Enter new password:
Retype new password:
Password changed.
4003-ER-F1> (enable) set enablepass
Enter old password:
Enter new password:
Retype new password:
Password changed.
4003-ER-F1> (enable) set banner motd %
4003-ER-F1 (Catalyst 4003)
Access Restricted
%
MOTD banner set
4003-ER-F1> (enable) set interface sc0 10.10.1.20/24
Interface sc0 IP address set.
4003-ER-F1> (enable) set ip route default 10.10.1.1
Route added.
4003-ER-F1> (enable) set ip dns server 10.10.10.100
10.10.10.100 added to DNS server table as primary server.
4003-ER-F1> (enable) set ip dns domain bigcorp.com
Default DNS domain name set to bigcorp.com
4003-ER-F1> (enable) set ip dns enable
DNS is enabled
4003-ER-F1> (enable) set vtp domain BigCorp mode client
VTP domain BigCorp modified
4003-ER-F1> (enable) set module name 1 Supervisor
Module name set.
4003-ER-F1> (enable) set module name 2 Gig Uplinks
Module name set.
4003-ER-F1> (enable) set port flowcontrol 2/1-2 send off
Ports 2/1-2 flow control send administration status set to off
(ports will not send flowcontrol to far end)
4003-ER-F1> (enable) set port flowcontrol 2/1-2 receive off
Ports 2/1-2 flow control receive administration status set to off
(ports will not allow far end to send flowcontrol)
4003-ER-F1> (enable) set port negotiation 2/1-2 enable
Ports 2/1-2 negotiation enabled
4003-ER-F1> (enable) set port name 2/1-2 GEC 802.1Q Trunk
Ports 2/1-2 name set.
4003-ER-F1> (enable) set port channel 2/1-2 desirable
Port(s) 2/1-2 channel mode set to desirable.
4003-ER-F1> (enable) set trunk 2/1 desirable dot1q
Port(s) 2/1-2 trunk mode set to desirable.
Port(s) 2/1-2 trunk type set to dot1q.
4003-ER-F1> (enable) set module name 3 Gig Server Links
Module name set.
4003-ER-F1> (enable) set port name 3/1-2 Corporate Server
Ports 3/1-2 name set.
4003-ER-F1> (enable) set port name 3/3 DevEng Server
Port 3/3 name set.
4003-ER-F1> (enable) set port name 3/4 QA Server
Port 3/4 name set.
4003-ER-F1> (enable) set port flowcontrol 3/1-4 send desired
Ports 3/1-4 flow control send administration status set to desired
(ports will send flowcontrol to far end if far end supports it)
4003-ER-F1> (enable) set port flowcontrol 3/1-4 receive desired
Ports 3/1-4 flow control receive administration status set to desired
(ports will allow far end to send flowcontrol if far end supports it)
4003-ER-F1> (enable) set port channel 3/1-2 off
Port(s) 3/1-2 channel mode set to off.
4003-ER-F1> (enable) set port channel 3/3-4 off
Port(s) 3/3-4 channel mode set to off.
4003-ER-F1> (enable) set trunk 3/1-4 off
Port(s) 3/1-4 trunk mode set to off.
4003-ER-F1> (enable) set spantree portfast 3/1-4 enable

Warning: Spantree port fast start should only be enabled on ports connected
to a single host. Connecting hubs, concentrators, switches, bridges, etc. to
a fast start port can cause temporary spanning tree loops. Use with caution.

Spantree ports 3/1-4 fast start enabled.
4003-ER-F1> (enable) set vlan 10 3/1-2
VLAN 10 modified.
VLAN 1 modified.
VLAN Mod/Ports
---- -----------------------
10 2/1-2
3/1-2

4003-ER-F1> (enable) set vlan 20 3/3
VLAN 20 modified.
VLAN 1 modified.
VLAN Mod/Ports
---- -----------------------
20 2/1-2
3/3

4003-ER-F1> (enable) set vlan 40 3/4
VLAN 40 modified.
VLAN 1 modified.
VLAN Mod/Ports
---- -----------------------
40 2/1-2
3/4

4003-ER-F1> (enable)


4. RSM 的配置
对于RSM模块的命令与Cisco的路由器相似
下面给出配置清单
5509-ER-F1> (enable) session 3
Trying Router-3...
Connected to Router-3.
Escape character is "^]".

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RSM-ER-F1
RSM-ER-F1(config)#enable password extra_secret_word
RSM-ER-F1(config)#line vty 0 6
RSM-ER-F1(config-line)#password secret_word
RSM-ER-F1(config-line)#ip domain-name bigcorp.com
RSM-ER-F1(config)#ip name-server 10.10.10.100
RSM-ER-F1(config)#ip domain-lookup
RSM-ER-F1(config)#interface vlan 1
RSM-ER-F1(config-if)#description default (vlan1) VLAN interface
RSM-ER-F1(config-if)#ip address 10.10.1.1 255.255.255.0
RSM-ER-F1(config-if)#no shutdown
RSM-ER-F1(config-if)#interface vlan 10
RSM-ER-F1(config-if)#description Corporate (vlan10) VLAN interface
RSM-ER-F1(config-if)#ip address 10.10.10.1 255.255.255.0
RSM-ER-F1(config-if)#no shutdown
RSM-ER-F1(config-if)#interface vlan 20
RSM-ER-F1(config-if)#description DevEng (vlan20) VLAN interface
RSM-ER-F1(config-if)#ip address 10.10.20.1 255.255.255.0
RSM-ER-F1(config-if)#no shutdown
RSM-ER-F1(config-if)#interface vlan 30
RSM-ER-F1(config-if)#description Mfg (vlan30) VLAN interface
RSM-ER-F1(config-if)#ip address 10.10.30.1 255.255.255.0
RSM-ER-F1(config-if)#no shutdown
RSM-ER-F1(config-if)#interface vlan 40
RSM-ER-F1(config-if)#description QA (vlan40) VLAN interface
RSM-ER-F1(config-if)#ip address 10.10.40.1 255.255.255.0
RSM-ER-F1(config-if)#no shutdown
RSM-ER-F1(config-if)#interface vlan 50
RSM-ER-F1(config-if)#description Finance&Admin (vlan50) VLAN interface
RSM-ER-F1(config-if)#ip address 10.10.50.1 255.255.255.0
RSM-ER-F1(config-if)#no shutdown
RSM-ER-F1(config-if)#interface vlan 60
RSM-ER-F1(config-if)#description Sales&Mktg (vlan60) VLAN interface
RSM-ER-F1(config-if)#ip address 10.10.60.1 255.255.255.0
RSM-ER-F1(config-if)#no shutdown
RSM-ER-F1(config-if)#^Z
RSM-ER-F1#copy running-config startup-config
Building configuration...
[OK]
RSM-ER-F1#

5. Catalyst 5505 的配置
下面给出配置清单
Enter password:
Console> enable

Enter password:
Console> (enable) set system name 5505-WC-F2
System name set.
5505-WC-F2> (enable) set system location 2nd Floor Wiring Closet
System location set.
5505-WC-F2> (enable) set system contact sysadmin@bigcorp.com
System contact set.
5505-WC-F2> (enable) set time 04/30/1999 10:00:00
Fri Apr 30 1999, 10:00:00
5505-WC-F2> (enable) set password
Enter old password:
Enter new password:
Retype new password:
Password changed.
5505-WC-F2> (enable) set enablepass
Enter old password:
Enter new password:
Retype new password:
Password changed.
5505-WC-F2> (enable) set banner motd %
5505-WC-F2 (Catalyst 5505)
Access Restricted
%
MOTD banner set
5505-WC-F2> (enable) set interface sc0 10.10.1.30/24
Interface sc0 IP address set.
5505-WC-F2> (enable) set ip route default 10.10.1.1
Route added.
5505-WC-F2> (enable) set ip dns server 10.10.10.100
10.10.10.100 added to DNS server table as primary server.
5505-WC-F2> (enable) set ip dns domain bigcorp.com
Default DNS domain name set to bigcorp.com
5505-WC-F2> (enable) set ip dns enable
DNS is enabled
5505-WC-F2> (enable) set vtp domain BigCorp mode client
VTP domain BigCorp modified
5505-WC-F2> (enable) set module name 1 Supervisor III
Module name set.
5505-WC-F2> (enable) set port name 1/1-4 FEC ISL Trunk
Ports 1/1-4 name set.
5505-WC-F2> (enable) set port speed 1/1-4 100
Ports 1/1-4 transmission speed set to 100Mbps.
5505-WC-F2> (enable) set port duplex 1/1-4 full
Ports 1/1-4 set to full-duplex.
5505-WC-F2> (enable) set port flowcontrol 1/1-4 send off
Ports 1/1-4 flow control send administration status set to off
(ports will not send flowcontrol to far end)
5505-WC-F2> (enable) set port flowcontrol 1/1-4 receive off
Ports 1/1-4 flow control receive administration status set to off
(ports will not allow far end to send flowcontrol)
5505-WC-F2> (enable) set port negotiation 1/1-4 enable
Ports 1/1-4 negotiation enabled
5505-WC-F2> (enable) set port channel 1/1-4 desirable
Port(s) 1/1-4 channel mode set to desirable.
5505-WC-F2> (enable) set trunk 1/1 desirable isl
Port(s) 1/1 trunk mode set to desirable.
Port(s) 1/1 trunk type set to isl.
5505-WC-F2> (enable) set module name 2 QA 100Mb Hosts
Module name set.
5505-WC-F2> (enable) set port name 2/1-4 QA Sparc20
Port 2/1-4 name set.
5505-WC-F2> (enable) set port name 2/5-12 QA NT Workstation
Ports 2/5-12 name set.
5505-WC-F2> (enable) set port speed 2/1-12 100
Ports 2/1-12 transmission speed set to 100Mbps.
5505-WC-F2> (enable) set port duplex 2/1-12 full
Ports 2/1-12 set to full-duplex.
5505-WC-F2> (enable) set port flowcontrol 2/1-12 send desired
Ports 2/1-12 flow control send administration status set to desired
(ports will send flowcontrol to far end if far end supports it)
5505-WC-F2> (enable) set port flowcontrol 2/1-12 receive desired
Ports 2/1-12 flow control receive administration status set to desired
(ports will allow far end to send flowcontrol if far end supports it)
5505-WC-F2> (enable) set port channel 2/1-12 off
Port(s) 2/1-12 channel mode set to off.
5505-WC-F2> (enable) set trunk 2/1-12 off
Port(s) 2/1-12 trunk mode set to off.
5505-WC-F2> (enable) set spantree portfast 2/1-12 enable

Warning: Spantree port fast start should only be enabled on ports connected
to a single host. Connecting hubs, concentrators, switches, bridges, etc. to
a fast start port can cause temporary spanning tree loops. Use with caution.

Spantree ports 2/1-12 fast start enabled.
5505-WC-F2> (enable) set vlan 40 2/1-12
VLAN 40 modified.
VLAN 1 modified.
VLAN Mod/Ports
---- -----------------------
40 1/1-4
2/1-12

5505-WC-F2> (enable) set module name 3 QA 10Mb Hosts
Module name set.
5505-WC-F2> (enable) set port name 3/1-48 QA WinNT PC
Ports 3/1-48 name set.
5505-WC-F2> (enable) set port duplex 3/1-48 full
Ports 3/1-48 set to full-duplex.
5505-WC-F2> (enable) set spantree portfast 3/1-48 enable

Warning: Spantree port fast start should only be enabled on ports connected
to a single host. Connecting hubs, concentrators, switches, bridges, etc. to
a fast start port can cause temporary spanning tree loops. Use with caution.

Spantree ports 3/1-48 fast start enabled.
5505-WC-F2> (enable) set vlan 40 3/1-48
VLAN 40 modified.
VLAN 1 modified.
VLAN Mod/Ports
---- -----------------------
40 1/1-4
2/1-12
3/1-48

5505-WC-F2> (enable) set module name 4 Corp/F&A 10Mb Hosts
Module name set.
5505-WC-F2> (enable) set port name 4/1-12 Corp Win98 PC
Ports 4/1-12 name set.
5505-WC-F2> (enable) set port name 4/13-48 F&A Win98 PC
Ports 4/13-48 name set.
5505-WC-F2> (enable) set port duplex 4/1-48 full
Ports 4/1-48 set to full-duplex.
5505-WC-F2> (enable) set spantree portfast 4/1-48 enable

Warning: Spantree port fast start should only be enabled on ports connected
to a single host. Connecting hubs, concentrators, switches, bridges, etc. to
a fast start port can cause temporary spanning tree loops. Use with caution.

Spantree ports 4/1-48 fast start enabled.
5505-WC-F2> (enable) set vlan 10 4/1-12
VLAN 10 modified.
VLAN 1 modified.
VLAN Mod/Ports
---- -----------------------
10 1/1-4
4/1-12

5505-WC-F2> (enable) set vlan 50 4/13-48
VLAN 50 modified.
VLAN 1 modified.
VLAN Mod/Ports
---- -----------------------
50 1/1-4
4/13-48

5505-WC-F2> (enable) set module name 5 S&M 10Mb Hosts
Module name set.
5505-WC-F2> (enable) set port name 5/1-48 S&M Win98 PC
Ports 5/1-48 name set.
5505-WC-F2> (enable) set port duplex 5/1-48 full
Ports 5/1-48 set to full-duplex.
5505-WC-F2> (enable) set spantree portfast 5/1-48 enable

Warning: Spantree port fast start should only be enabled on ports connected
to a single host. Connecting hubs, concentrators, switches, bridges, etc. to
a fast start port can cause temporary spanning tree loops. Use with caution.

Spantree ports 5/1-48 fast start enabled.
5505-WC-F2> (enable) set vlan 60 5/1-48
VLAN 60 modified.
VLAN 1 modified.
VLAN Mod/Ports
---- -----------------------
60 1/1-4
5/1-48

5505-WC-F2> (enable)

全文结束

评论
评论
发 布