42
orwell success.
Display
SWITCH# show administrator
Administrator account information
name: orwell
password: orwell
IP Configuration
IP Address/Mask
(192.168.2.8,
255.255.255.0
SWITCH(config)# int vlan 1
SWITCH(config-if)# ip
address
dhcp
SWITCH(config-if)# ip address 192.168.2.8/24
SWITCH(config-if)# ip dhcp client
SWITCH(config-if)# ip dhcp client renew
Gateway
SWITCH(config)# ip route 0.0.0.0/0 192.168.2.254/24
Remove Gateway
SWITCH(config)# no ip route 0.0.0.0/0
192.168.2.254/24
Display
SWITCH# show running-config
………
!
interface vlan1
ip address 192.168.2.8/24
no shutdown
!
ip route 0.0.0.0/0 192.168.2.254/24
!
Time Setting
NTP Server
SWITCH(config)# ntp peer
enable
disable
primary
secondary
SWITCH(config)# ntp peer primary
IPADDR
SWITCH(config)# ntp peer primary 192.168.2.200
Time Zone
SWITCH(config)# clock timezone 26
Sun Jan 1 04:13:24 2006 (GMT) Greenwich Mean Time:
Dublin, Edinburgh, Lisbon, London