通过ISA代理SQLServer配置说明
2007-11-11 09:00:56 来源:WEB开发网核心提示: 定义主机名: cat2-3550(config)#hostname www.ChinaITLab.com 登陆Banner: Cat1-3550(config)#banner login # Authorized Users elab Only # 端口说明: cat2-3550(config)#int fa0/1
定义主机名:
cat2-3550(config)#hostname www.ChinaITLab.com
登陆Banner:
Cat1-3550(config)#banner login # Authorized Users elab Only #
端口说明:
cat2-3550(config)#int fa0/1
cat2-3550(config-if)#description To www.gotolab.com 100M
激活portfast:
cat2-3550(config-if)#spanning cat2-3550(config-if)#spanning-tree portfast
设置双工:
cat2-3550(config)#int fa0/1
cat2-3550(config-if)#duplex half
设置端口速率:
cat2-3550(config)#int fa0/1
cat2-3550(config-if)#speed 10
设置DNS:
cat2-3550(config)#ip name-server 4.1.1.1
设置 VTP Domain
cat2-3550(config)#vtp domain hello
cat2-3550(config)#vtp mode transparent
创建VLAN:
SW1(vlan)#vlan 10 name RED
SW1(vlan)#vlan 20 name BLUE
SW1(vlan)#exit
设置VLAN优先级:
SW1#config t
SW1(config)#interface vlan 20
SW1(config)#spanning-tree vlan 20 priority 20
SW1(config-subif)#ip addr 1.1.1.1 255.255.255.0
TRUNK设置:
interface FastEthernet0/24
switchport trunk encapsulation isl s
witchport trunk allowed vlan 1,2,4,5,10,12-14,1002-1005 s
witchport mode trunk no ip address
显示trunk信息:
cat2-3550#show interface trunk
SPAN-TREE配置:
Cat1-3550(config)#spanning-tree vlan 101 priority 0
定义网关:
SW1(config)#ip default-gateway 1.1.1.2
创建etherchannel:
First Switch:
SW1(config)#int port-channel 1
SW1(config-if)#switchport trunk encapsulation isl SW1(config-if)#switchport mode trunk
SW1(config)#int fa 0/23
SW1(config-if)#switchport trunk encap isl SW1(config-if)#switchport mode trunk SW1(config-if)#channel-group 1 mode auto
SW1(config)#int fa 0/24
SW1(config-if)#switchport trunk encap isl SW1(config-if)#switchport mode trunk SW1(config-if)#channel-group 1 mode auto
Second Switch:
SW2(config)#int port-channel 1
SW2(config-if)#switchport trunk encapsulation isl SW2(config-if)#switchport mode trunk
SW2(config)#int fa 0/23
SW2(config-if)#switchport trunk encap isl
SW2(config-if)#switchport mode trunk
SW2(config-if)#channel-group 1 mode auto
SW2(config)#int fa 0/24
SW2(config-if)#switchport trunk encap isl
SW2(config-if)#switchport mode trunk
SW2(config-if)#channel-group 1 mode auto
端口上划分VLAN:
SW1(config)#int fastEthernet 0/2
SW1(config-if)#switchport access vlan 20
SW1(config-if)#no shutdown
SW1(config)#interface fastEthernet 0/3
SW1(config-if)#switchport access vlan 10
SW1(config-if)#no shutdown
封装TRUNK:
SW1(config)#int fa 0/1
SW1(config-if)#switchport trunk encap isl SW1(config-if)#switchport mode trunk
分配Ether Channel 到接口:
SW1(config)#interface fa0/23
SW1(config-if)#switchport trunk encapsulation dot1q
SW1(config-if)#switchport mode trunk
SW1(config-if)#channel-group 1 mode auto (other side use desirable)
SW1(config)#interface fa0/24
SW1(config-if)#switchport trunk encapsulation dot1q
SW1(config-if)#switchport mode trunk
SW1(config-if)#channel-group 1 mode auto (other side use desirable)
配置SPAN:
SW2#config t
SW2(config)#no monitor session 1
SW2(config)#monitor session 1 source interface fa0/3
SW2(config)#monitor session 1 destination interface fa0/11 SW2(config)#end
在VLAN接口上配置SPAN:
SW2#config t
SW2(config)#no monitor session 1
SW2(config)#monitor session 1 source vlan 10
SW2(config)#monitor session 1 destination interface fa0/11 (any encap here)
SW2(config)#end
SW2#sh monitor session 1 Session 1
---------
Source Ports:
RX Only: None
TX Only: None
Both: Fa0/3
Source VLANs:
RX Only: None
TX Only: None
Both: None
Destination Ports: Fa0/11
Encapsulation: Native
Filter VLANs: None
Time Stamp Debug 和 Log Messages with Absolute Time:
service timestamps debug datetime
service timestamps log datetime
关闭 DNS Lookup:
no ip domain-lookup
Disable HTTP Server:
no ip http server
能够 Syslog:
logging history informational (这里设置syslog级别
logging facility local6
logging source-interface Loopback0
logging 150.50.111.100
定义SNMP:
snmp-server community hello RO 12
snmp-server community hellorw RW 13
access-list 12 permit 150.50.0.0 0.0.255.255
access-list 13 permit 150.50.16.0 0.0.0.255
access-list 13 permit 150.50.111.0 0.0.0.255
禁止 TCP 和 UDP small server:
R1(config)#no service tcp-small-servers
R1(config)#no service udp-small-servers
在接口上打开 Storm Control on :
cat1-3550(config)#int fa0/6
cat1-3550(config-if)#storm-control broadcast level 50
cat1-3550(config-if)#storm-control multicast level 25
cat1-3550(config-if)#storm-control un
更多精彩
赞助商链接