Cisco WS-C2960G-8TC-L Конфігурація - Сторінка 12
Переглянути онлайн або завантажити pdf Конфігурація для Мережевий маршрутизатор Cisco WS-C2960G-8TC-L. Cisco WS-C2960G-8TC-L 30 сторінок. Swtich configuration
Також для Cisco WS-C2960G-8TC-L: Технічні характеристики (2 сторінок)
368
Chapter 12: Initial Switch Configuration
addressing information on the switch: an IP address associated with an interface and
a default gateway address. Here's the configuration you'll use:
Switch(config)# interface vlan VLAN_#
Switch(config-vlan)# ip address IP_address subnet_mask
Switch(config-vlan)# exit
Switch(config)# ip default-gateway router's_IP_address
With layer 2 switches such as the 2960, you must go into the VLAN interface
with which you want the IP address to be associated—this will be the management
VLAN in which your administrative PC is located. The System Configuration
Dialog assumes this will be VLAN 1, but you can use any VLAN you want; however,
you must first create the VLAN (see Chapter 13.) Once you're working in the
VLAN interface, use the ip address command to assign the address and subnet
mask. Next, assign the default gateway: ip default-gateway. This command
is necessary if the switch needs to communicate with other devices, via IP, that are
located in other subnets.
For the switch to access
devices in other VLANs, you need to
assign it an IP address and a default
gateway: use the ip address and ip
Example Configuration
Now let's pull together the basic configuration tasks from Chapter 11 as well as the
above configuration in a simple example, using the network shown in Figure 12-2:
Switch(config)# hostname Switch-A
Switch-A(config)# line console 0
Switch-A(config-line)# exec-timeout 5 0
Switch-A(config-line)# password consolepass123
Switch-A(config)# exit
Switch-A(config)# line vty 0 15
Switch-A(config-line)# password telnetpass123
Switch-A(config-line)# exec-timeout 5 0
default-gateway commands. Hosts
should not use a layer 2 switch's address
as a default gateway.