Первое включение свитча. Настройка адреса и доступа.
Boot Menu 3.1.4.5
CPU Card ID: 0x10508548
CFI Probe: Found x16 device in x16 mode
/DskVol// - disk check in progress ...
/DskVol// - Volume is OK
total # of clusters: 15,312
# of free clusters: 5,859
# of bad clusters: 0
total free space: 11,718 Kb
max contiguous free space: 11,999,232 bytes
# of files: 28
# of folders: 1
total bytes in files: 18,874 Kb
# of lost chains: 0
total bytes in lost chains: 0
volume descriptor ptr (pVolDesc): 0x3cab5f0
XBD device block I/O handle: 0x10001
auto disk check on mount: DOS_CHK_REPAIR |DOS_CHK_VERB_2
volume write mode: copyback (DOS_WRITE)
max # of simultaneously open files: 52
file descriptors in use: 0
# of different files in use: 0
# of descriptors for deleted files: 0
# of obsolete descriptors: 0
current volume configuration:
- volume label: NO LABEL ; (in boot sector: )
- volume Id: 0xf6
- total number of sectors: 61,376
- bytes per sector: 512
- # of sectors per cluster: 4
- # of reserved sectors: 1
- FAT entry size: FAT16
- # of sectors per FAT copy: 60
- # of FAT table copies: 2
- # of hidden sectors: 4
- first cluster is in sector # 136
- Update last access date for open-read-close = FALSE
- directory structure: VFAT
- file name format: 8-bit (extended-ASCII)
- root dir start sector: 121
- # of sectors per root: 15
- max # of entries in root: 240
FAT handler information:
------------------------
- allocation group size: 2 clusters
- free space on volume: 11,999,232 bytes
Boot Menu 3.1.4.5
Select an option. If no selection in 10 seconds then
operational code will start.
1 - Start operational code.
2 - Start Boot Menu.
Select (1, 2):
Operational Code Date: Wed May 5 00:58:31 2010
Uncompressing.....
Host Name: bootHost
Target Name: vxTarget
User: target
usrNetIpAttachCommon: unknown network device
Adding 70479 symbols for standalone.
CPU: Freescale E500 : Unknown system version. Processor #0.
Memory Size: 0x40000000. BSP version 2.0/2.
Created: May 5 2010, 00:01:39
ED&R Policy Mode: deployed
remLib: Not initialized.
remLib: Not initialized.
CFI Probe: Found x16 device in x16 mode
/DskVol// - disk check in progress ...
/DskVol// - Volume is OK
total # of clusters: 15,312
# of free clusters: 5,859
# of bad clusters: 0
total free space: 11,718 Kb
max contiguous free space: 11,999,232 bytes
# of files: 28
# of folders: 1
total bytes in files: 18,874 Kb
# of lost chains: 0
total bytes in lost chains: 0
volume descriptor ptr (pVolDesc): 0x545ddc0
XBD device block I/O handle: 0x10001
auto disk check on mount: DOS_CHK_REPAIR |DOS_CHK_VERB_2
volume write mode: copyback (DOS_WRITE)
max # of simultaneously open files: 52
file descriptors in use: 0
# of different files in use: 0
# of descriptors for deleted files: 0
# of obsolete descriptors: 0
current volume configuration:
- volume label: NO LABEL ; (in boot sector: )
- volume Id: 0xf6
- total number of sectors: 61,376
- bytes per sector: 512
- # of sectors per cluster: 4
- # of reserved sectors: 1
- FAT entry size: FAT16
- # of sectors per FAT copy: 60
- # of FAT table copies: 2
- # of hidden sectors: 4
- first cluster is in sector # 136
- Update last access date for open-read-close = FALSE
- directory structure: VFAT
- file name format: 8-bit (extended-ASCII)
- root dir start sector: 121
- # of sectors per root: 15
- max # of entries in root: 240
FAT handler information:
------------------------
- allocation group size: 2 clusters
- free space on volume: 11,999,232 bytes
PCI unit 0: Dev 0xb820, Rev 0x11, Chip BCM56820_B0, Driver BCM56820_A0
SOC unit 0 attached to PCI device BCM56820_B0
Adding BCM transport pointers
Configuring CPUTRANS TX
Configuring CPUTRANS RX
hpc - No stack ports. Starting in stand-alone mode.
<186> FEB 10 20:53:06 0.0.0.0-1 UNKN[1073741088]: bootos.c(209) 1 % Event(0xaaaaaaaa)
Instantiating RamCP: as rawFs, device = 0x20001
Formatting RamCP: for DOSFS
Instantiating RamCP: as rawFs, device = 0x20001
RamCP:/ - disk check in progress ...
RamCP:/ - Volume is OK
total # of clusters: 1,975
# of free clusters: 1,973
# of bad clusters: 0
total free space: 1,010,176
max contiguous free space: 1,010,176 bytes
# of files: 0
# of folders: 0
total bytes in files: 0
# of lost chains: 0
total bytes in lost chains: 0
OK.
(Unit 1 - Waiting to select management unit)>
Applying Global configuration, please wait ...
Applying Interface configuration, please wait ...
Первым делом ставится айпишник и настраивается доступ
У меня VLAN 77 для железяк.
Все VLAN должны быть созданы через vlan database.
console(config)#vlan database
console(config-vlan)#vlan ?
association Configure associations to VLANs.
makestatic Change the VLAN type from 'Dynamic' to 'Static'.
Configure list of VLAN IDs lying in the range
<1-4093>.
console(config-vlan)#vlan 77
console#show ip interface
Management Interface:
IP Address..................................... 192.168.77.241
Subnet Mask.................................... 255.255.255.0
Default Gateway................................ 192.168.77.1
Burned In MAC Address.......................... 5C26.0AA3.1FF5
Network Configuration Protocol Current......... None
Management VLAN ID............................. 77
Routing Interfaces:
Netdir Multi
Interface IP Address IP Mask Bcast CastFwd
---------- --------------- --------------- -------- --------
Устанавливает адрес через конфиг
console(config)#ip address ?
bootp Set the protocol to bootp.
dhcp Set the protocol to dhcp.
none Set the protocol to none.
vlan Configure the Management VLAN ID of the switch.
Specify an IP address in A.B.C.D format.
Ставится адрес, маска и необходимый влан.
Маршрут ставится так
console(config)#ip default-gateway ?
Specify the IP address of gateway.
Создается access-list:
management access-list "management"
permit ip-source 192.168.77.0 mask 255.255.255.0 vlan 77 service telnet
permit ip-source 192.168.77.0 mask 255.255.255.0 vlan 77 service ssh
permit ip-source 192.168.77.0 mask 255.255.255.0 vlan 77 service http
permit ip-source 192.168.77.0 mask 255.255.255.0 vlan 77 service https
permit ip-source 192.168.77.0 mask 255.255.255.0 vlan 77 service snmp
Применяется к классу
management access-class management
Для внесения изменений в список, надо выключать класс
no management access-class и потом включать заново, либо просто создавать новый список и назначать его
При включении HTTPS сервера выдает ошибку, т.к. нету сертификата.
console(config)#ip https certificate ?
<1 - 2> Instance of the certificate to be activated.
console(config)#ip https certificate 1
Error: Could not activate the specified Certificate.
Нужно загрузить или сгенерировать сертификат
console(config)#crypto certificate 1 ?
generate Generate certificate for HTTPS
import Import a certificate signed by a Certification
Authority for HTTPS.
console(config)#crypto certificate 1 generate ?
Press enter to execute the command.
console(config)#crypto certificate 1 generate
console(config-crypto-cert)#?
common-name Specifies the common name.
country Specifies the country name.
duration Specifies number of days a self-signed certification
would be valid. If unspecified defaults to 365 day.
email Specifies the contact email address.
exit To exit from the mode.
key-generate Regenerate SSL RSA key.
location Specifies the location or city name.
organization-name Specifies the organization name
organization-unit Specifies the organization internal unit
state Specifies the state or province name.
Вы должны войти