分类:
2012-07-10 17:33:18
cisco 模拟器相关指令,
端口加入到vlan
configure terminal
interface fastEthernet port_id
switchport mode access
switchport access vlan vlan_id
端口加入到channel
二层:
configure termianl
interface port-channel channel_number
exit
interface port_id
channel-group channel_id mode on
exit
configure termianl
interface range fastEthernet 1/1 - 2
channel-group 1 mode on
把port-channel 加入到trunk
interface port-channel port-channel_id
switchport mode trunk (注意不能直接进入interface range port_id1 - portidn 的形式来对port-channel内的端口做trunk)
vrrp configuration
interface vlan_id (在那个vlan上做vrrp)
vrrp vrrp_number ip (配置vrrp的虚拟ip)
vrrp vrrp_number priority priority_number
vrrp vrrp_number preempt
stp 针对vlan的端口,portchannel的端口等
interface port-channel port-channel_id (要配置stp协议的vlan,vlan_id)
stp协议解决什么问题那?
stp使任意两个节点之间只有一条路径链接,而其他的冗余链路则被阻塞,从而防止环路