Ip a – SMC Networks TigerAccess SMC7816M User Manual

Page 97

Advertising
background image

S

ETTING

THE

S

WITCH

S

IP A

DDRESS

4-15

This example first sets up a dedicated VLAN for management access. It
adds Port 19 (the management port) to that VLAN and also removes this
port from the VLAN 1, which is left for use by the data network. It then
specifies the management interface, IP address and default gateway. For
information on making these configuration changes through the web
interface, refer to Chapter 13 “VLAN Configuration.

Renewing DCHP – DHCP may lease addresses to clients indefinitely or
for a specific period of time. If the address expires or the stack is moved to
another network segment, you will lose management access to the stack. In
this case, you can reboot the stack or submit a client request to restart
DHCP service via the CLI.

Web – If the address assigned by DHCP is no longer functioning, you will
not be able to renew the IP settings via the web interface. You can only
restart DHCP service via the web interface if the current address is still
available.

CLI – Enter the following command to restart DHCP service.

Console#config
Console(config)#vlan database

32-7

Console(config-vlan)#vlan 2 name management media ethernet

32-8

Console(config-vlan)#exit
Console(config)#interface ethernet 1/19

25-2

Console(config-if)#switchport allowed vlan add 2

32-14

Console(config-if)#switchport native vlan 2

32-13

Console(config-if)#switchport allowed vlan remove 1
Console(config-if)#switchport forbidden vlan add 1

32-15

Console(config-if)#exit
Console(config)#interface vlan 2

25-2

Console(config-if)#ip address dhcp

38-2

Console(config-if)#end
Console#ip dhcp restart

37-1

Console#show ip interface

38-4

IP Address and Netmask: 192.168.0.100 255.255.255.0 on VLAN 2,
Address Mode: DHCP
Console(config)#

Console#ip dhcp restart

37-1

Console#

Advertising
This manual is related to the following products: