路由基本配置命令收录(快速入门)
NTP Server
router#clock set 12:34:50 11 oct 2002
router#conf t
router(config)#hostname gw
gw(config)#ntp server *.*.*.*
gw(config)#clock timezone BST 9
gw(config)#no cdp run
取消超时
gw#conf t
gw(config)#line vty 0 4
gw(config-line)#exec-timeout 0 0
NAT
gw#conf t
gw(config)#int e0
gw(config-if)#ip nat inside
gw(config-if)#exit
gw(config)#int e1
gw(config-if)#ip nat outside
gw(config-if)#exit
gw(config)#Access-list 2 permit 192.168.0.0 0.0.0.255
gw(config)#ip nat inside source list 2 interface e1 overload
优先级队列
gw#conf t
gw(config)#priority-list 1 protocol ip high tcp pop3
gw(config)#priority-list 1 protocol ip high tcp smtp
基本安全
gw(config)#no ip finger
gw(config)#no ip source-route
gw(config)#no service tcp-small-servers
gw(config)#no service udp-small-servers
gw(config)#int s0
gw(config-if)#ip accounting access-violations
SNMP
gw#conf t
gw(config)#snmp-server community ELAB RO
AAA
gw(config)#aaa new-model
gw(config)#aaa authentication login default local enable
gw(config)#username elab passWord 7 password