sw(config)# interface port num sw(config-if)# ip address ip-addr/mask [secondary]
sw(config)# interface manage sw(config-if-mng)# ip address ip-addr/mask
sw(config-if)# auto-negotiation disable sw(config-if)# link-speed-duplex type
(config-if)# media utp|gbic
sw# sh int status Pt. [Description] Link Flow Auto Advertise Fix Pause MDIX Media Status Status Neg Spd/Dpx Spd/Dpx --------------------------------------------------------------------------- 1 [server00] Down OFF ON 1G/F,100M,10M 100M/H OFF ON(---) UTP 2 [server01] Disable OFF ON 1G/F,100M,10M 100M/H OFF ON(---) UTP 3 [ ] Disable OFF ON 1G/F,100M,10M 100M/H OFF ON(---) UTP
sw(config)# ip route ip-addr/mask nexthop [distance]
sw# show ip route
sw# show ip route database [type]
sw(config)# router vrrp id
sw(config-router)# virtual-ip vip-addr master
sw(config-router)# interface vlan vlan-id
sw(config-router)# enable
sw00# show vrrp [id] VrId <id> State is Master Virtual IP is vip-addr (IP owner) Interface is vlan vlan-id Priority is 255 Advertisement interval is 1 sec Preempt mode is TRUE
sw01# show vrrp [id] VrId <id> State is Backup Virtual IP is vip-addr (Not IP owner) Interface is vlan vlan-id Priority is 100 Advertisement interval is 1 sec Preempt mode is TRUE
sw(config)# lldp enable
sw(config)# lldp mode mode
sw(config)# lldp msg-tx-interval time
sw(config)# lldp msg-tx-hold time
sw(config)# lldp tx-delay time
(config)# vlan database (config-vlan)# vlan num name name
(config)# interface type num (config-if)# switchport mode access (config-if)# switchport access vlan num
(config)# interface type num (config-if)# switchport mode trunk
(config-if)# switchport mode trunk native vlan
(config-if)# switchport mode trunk add|remove vlan
# show vlan --- vlan port information --- a = access-port t = trunk-port Port 1 8 9 16 17 24 25 32 33 40 41 48 +------+ +------+ +------+ +------+ +------+ +------+ Port Mode aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaatt --- vlan mapping information --- St = Status En = Enable Dis = Disable u = untag t = tag p = protocol vlan Port 1 8 9 16 17 24 25 32 33 40 41 48 Name VID St +------+ +------+ +------+ +------+ +------+ +------+ default 1 En ........ ........ uuuuuuuu uuuuuuuu uuuuuuuu uuuuuu.. vlan10 10 En uuuuuuuu ........ ........ ........ ........ ......tt vlan20 20 En ........ uuuuuuuu ........ ........ ........ ......tt --- protocol vlan information --- VID protocol type --------------------- SNAP nonzero OUI: Disable
(config)# interface port num-num
(config-if)# link-aggregation group-num
(config-if)# link-aggregation algorithm type
sw(config)# packet-filter2
sw(config-filter)# id assign port num
sw(config-filter)# id seq-num condition 条件
sw(config-filter)# id seq-num action action
sw(config)# forwarding inbound-port outbound-port
sw(config)# forwarding enable
sw# show forwarding Forwarding: Enabled f:forward .:not forward Port 1 8 9 16 17 24 25 32 33 40 41 48 Port +------+ +------+ +------+ +------+ +------+ +------+ 1 ........ ........ ........ ........ ........ ..ff.... 2 ........ ........ ........ ........ ........ ..ff.... 3 ........ ........ ........ ........ ........ ..ff.... 4 ........ ........ ........ ........ ........ ..ff.... 5 ........ ........ ........ ........ ........ ..ff....
sw# show snmp-server SNMP management: Enabled SNMP mib management: Read-Only manager: Enabled IP address Community Name public Read-Write manager: Enabled IP address Community Name private SNMP trap management: authentication failure: Enabled cold start : Enabled cpu utilization : Enabled topology change : Enabled fan error : Enabled power error : Enabled login incorrect : Enabled flooding control : Enabled loop-watch : Enabled na : Disabled na logout clock : Enabled mmrp : Disabled link change mng port : Enabled temperature condition : Enabled link change port 1: Enabled port 2: Enabled port 3: Enabled port 4: Enabled port 5: Enabled port 6: Enabled port 7: Enabled port 8: Enabled port 9: Enabled port10: Enabled port11: Enabled port12: Enabled port13: Enabled port14: Enabled port15: Enabled port16: Enabled port17: Enabled port18: Enabled port19: Enabled port20: Enabled port21: Enabled port22: Enabled port23: Enabled port24: Enabled port25: Enabled port26: Enabled port27: Enabled port28: Enabled port29: Enabled port30: Enabled port31: Enabled port32: Enabled port33: Enabled port34: Enabled port35: Enabled port36: Enabled port37: Enabled port38: Enabled port39: Enabled port40: Enabled port41: Enabled port42: Enabled port43: Enabled port44: Enabled port45: Enabled port46: Enabled port47: Enabled port48: Enabled port-security port 1: Enabled port 2: Enabled port 3: Enabled port 4: Enabled port 5: Enabled port 6: Enabled port 7: Enabled port 8: Enabled port 9: Enabled port10: Enabled port11: Enabled port12: Enabled port13: Enabled port14: Enabled port15: Enabled port16: Enabled port17: Enabled port18: Enabled port19: Enabled port20: Enabled port21: Enabled port22: Enabled port23: Enabled port24: Enabled port25: Enabled port26: Enabled port27: Enabled port28: Enabled port29: Enabled port30: Enabled port31: Enabled port32: Enabled port33: Enabled port34: Enabled port35: Enabled port36: Enabled port37: Enabled port38: Enabled port39: Enabled port40: Enabled port41: Enabled port42: Enabled port43: Enabled port44: Enabled port45: Enabled port46: Enabled port47: Enabled port48: Enabled IP address Community Name Trap Version SysContact : SysLocation: SysName : Trap Source: manage Trap delay time: 1 seconds RMON history default entry: Disabled
#adsense(728x90)