●Specify the management interface, IP address, and default gateway:
Console#config
Console(config)#interface vlan 2
Console(config-if)#ip address 10.1.0.2 255.255.255.0
Console(config)#ip default-gateway 10.1.0.254
Console(config)#
MIB Variables: Specifying the Management VLAN and IP Details
TABLE
Field Name | MIB Variable | Access | Value Range | Default Value |
|
|
|
|
|
Management | sun... | Read/write | Integer | 1 |
VLAN | switchMgt. |
|
|
|
| switchManagementVla |
|
|
|
| n |
|
|
|
IP Address Mode sun... | Read/write | user (1), | user | |
| vlanMgt. |
| bootp (2), |
|
| vlanTable.vlanEntry |
| dhcp (3) |
|
| . |
|
|
|
| vlanAddressMethod |
|
|
|
IP Address | Read/write | IP address |
| |
Configuration | ip.ipAddrTable. |
|
|
|
| ipAddrEntry. |
|
|
|
| ipAdEntAddr |
|
|
|
Subnet Mask | Read/write | IP address |
| |
Configuration | ip.ipAddrTable. |
|
|
|
| ipAddrEntry. |
|
|
|
| ipAdEntNetMask |
|
|
|
Broadcast | Read only | Integer | 1 | |
Address | ip.ipAddrTable. |
|
|
|
| ipAddrEntry. |
|
|
|
| ipAdEntBcastAddr |
|
|
|
Default Gateway | sun... | Read/write | IP address |
|
Configuration | ipMgt. |
|
|
|
| netDefaultGateway |
|
|
|
|
|
|
|
|
Chapter 3 General Management of the Switch