Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Cisco Switching Black Book - Sean Odom, Hanson Nottingham.pdf
Скачиваний:
87
Добавлен:
24.05.2014
Размер:
2.89 Mб
Скачать

Figure D.1: The sample configuration.

Possible Solution

More than one solution exists to any problem; however, here is the suggested solution to configuring the Cisco Catalyst 1912EN, the Cisco Catalyst 5000, and the Cisco 2620 trunked interface.

The 1912 Basic Configuration

To configure the Cisco Catalyst 1912EN, follow these steps:

1.Access the Cisco Catalyst through the Console port and configure the switch. Choose K to access the command−line interface. The initial password is to just press Enter, as shown here:

Catalyst 1900 Management Console

Copyright (c) Cisco Systems, Inc. 1993−1999

All rights reserved.

Enterprise Edition Software

Ethernet Address: 00−30−80−54−6C−00

PCA Number:

73−3122−04

PCA Serial Number:

FAB03263DNB

Model Number:

WS−C1912−EN

System Serial Number:

FAB0335V70D

Power Supply S/N:

APQ0325005M

PCB Serial Number:

FAB03263DNB,73−3122−04

———————————————————————————————————————————————

1 user(s) now active on Management Console. User Interface Menu

[M] Menus

[K] Command Line

Enter Selection: K

CLI session with the switch is open.

To end the CLI session, enter [Exit].

>enable

Enter password:

#

2. Just like on a router, enter the conf terminal command to configure an interface:

#conf terminal

3. Configure the hostname:

(config)#hostname 1912EN 1912EN(config)#

4. Configure a password for the switch:

1912EN(config)# enable password ? level Set exec level password

355

1912EN(config)# enable password level ? <1−15> Level number

1912EN(config)# enable password level 1 coriolis1 1912EN(config)# enable password level 15 coriolis2 1912EN (config)# enable secret coriolispass

5.Enter Interface Configuration mode to configure the Fast Ethernet 0/27 port on the 1912EN. Enter the switch’s IP address and the default gateway (router):

(config)# interface f0/27

(config−if)#ip address 63.78.39.164 255.255.255.0 (config)#

1912EN(config)#ip default−gateway 63.78.39.254 1912EN(config)#

6. Enable trunking on this port to always be on:

1912EN(config−if)#trunk ?

auto

Set DISL state to AUTO

desirable

Set DISL state to DESIRABLE

nonegotiate

Set DISL state to NONEGOTIATE

off

Set

DISL

state

to OFF

on

Set

DISL

state

to ON

1912EN(config−if)#trunk on

1912EN(config−if)# exit 1912EN (config)#

7. Assign VLAN names:

1912EN(config)#vlan 2 name CAD 1912EN(config)#vlan 3 name Graphics 1912EN(config)#vlan 4 name DocProduction

8. Assign the VLAN number that matches the Ethernet port number on the front of the switch:

1912EN#config terminal

Enter configuration commands, one per line. End with CNTL/Z.

1912EN(config)#interface e0/2 1912EN(config−if)#vlan−membership static ?

<1−1005> ISL VLAN index

1912EN(config−if)#vlan−membership static 2 1912EN(confi−if)# exit

1912EN(config)#interface e0/3 1912EN(config−if)#vlan−membership static 3 1912EN(confi−if)# exit

1912EN(config)#interface e0/4 1912EN(config−if)#vlan−membership static 4 1912EN(config−if)#exit

9. Enable this device to be a VTP server for the Coriolis VTP domain:

1912EN(config)#vtp ?

client

VTP client

domain

Set VTP domain name

password

Set VTP password

pruning

VTP pruning

server

VTP server

transparent VTP transparent

trap

VTP trap

1912EN(config)#vtp domain ?

WORD Name

of the VTP management domain

356

1912EN(config)#vtp domain Coriolis

1912EN(config)#vtp domain server 1912EN(config)# exit

Note The configuration on the 1912EN is saved automatically, so you do not need to save the configuration.

The Catalyst 5000 Basic Configuration

To configure the Cisco Catalyst 5000 10/100 Ethernet module and Supervisor Engine, follow these steps:

1.Access the Cisco Catalyst 5000 through the Console port located on the Supervisor Engine III. The initial password is to press Enter, as shown here:

Cisco Systems Console

Enter password:

Console> enable

Enter password: Console>(enable)

2. Configure the hostname:

Console>(enable) set prompt Catalyst5000>

Catalyst5000> (enable)

3.Configure a password for the switch. Press Enter for the old password if none has ever been configured:

Catalyst5000> (enable) set password

Enter old password:

Enter new password: coriolis1

Retype new password: coriolis1

Password changed.

4.Configure the password for Enable mode. Press Enter for the old password if none has ever been configured:

Catalyst5000> (enable) set enablepass

Enter old password:

Enter new password: coriolis2

Retype new password: coriolis2

Password changed.

Catalyst5000(enable)

5.Enter the IP address and the default gateway (router) for the switch. The switch must be configured on the SC0 interface:

Catalyst5000> (enable) set interface sc0 63.78.39.174 255.255.255.0 Interface sc0 IP address and netmask set.

Catalyst5000> (enable) set ip route default 38.68.127.254 Route added.

6.Enable trunking on interface 2/2 to complete your trunk link to the 1912EN switch and on interface 2/24 to the router for interVLAN routing:

Catalyst5000> (enable) set trunk 2/2 mode on isl Port(s) 2/2 trunk mode set to on.

Port(s) 2/2 trunk type set to isl.

2000 Oct 19 12:31:54 %DTP−5−TRUNKPORTON:Port 2/2

Catalyst5000> (enable) set trunk 2/24 mode on isl

357

Port(s) 2/24 trunk mode set to on. Port(s) 2/24 trunk type set to isl.

2000 Oct 19 12:32:46 %DTP−5−TRUNKPORTON:Port 2/24

7.Enable this switch to be a VTP client for the Coriolis VTP domain. By doing this step you will propagate VLAN information to and from the 1912EN switch:

Catalyst5000> (enable) set vtp domain ?

Usage: set vtp [domain <name>] [mode <mode>] [passwd <passwd>] [pruning <enable|disable>] [v2 <enable|disable>

(mode = client|server|transparent Use passwd Ô0’ to clear vtp password) Usage: set vtp pruneeligible <vlans>

(vlans = 2..1000 An example of vlans is 2−10,1000)

Catalyst5000> (enable) set vtp domain Coriolis mode client

VTP domain Coriolis modified

Configuring the Cisco 2621 Interface for ISL Trunking

To configure the Cisco 2621 interface, follow these steps:

1.Enter Interface Configuration mode for the Fast Ethernet 0/2 interface and force the port to use full duplex. Disable any IPs and use the no shutdown command:

Cisco2621(conf)# interface fastethernet 0/2

Cisco2621(conf−if)# no ip address

Cisco2621(conf−if)# no shutdown

Cisco2621(conf−if)# full−duplex

2.Create a subinterface for each VLAN. Assign a description (optional), an IP address for the VLAN, and an encapsulation type, as well as the VLAN number:

Cisco2621(conf−if)# interface fastethernet 0/2.2

Cisco2621(conf−if)# description vlan2

Cisco2621(conf−if)# ip address 63.78.39.2 255.255.255.0

Cisco2621(conf−if)# encapsulation isl 2

Cisco2621(conf−if)# interface fastethernet 0/2.3

Cisco2621(conf−if)# description vlan3

Cisco2621(conf−if)# ip address 63.78.39.3 255.255.255.0

Cisco2621(conf−if)# encapsulation isl 3

Cisco2621(conf−ip)# interface fastethernet 0/2.4

Cisco2621(conf−if)# description vlan4

Cisco2621(conf−if)# ip address 63.78.39.4 255.255.255.0

Cisco2621(conf−if)# encapsulation isl 4

Note

Don’t forget to save your configurations. Use the show config command on each device to

 

verify the configurations.

358

Соседние файлы в предмете Программирование