思科cisco 3560配置命令講解:cisco的好多個配置模式
switch> 命令行模式;config#權利模式
一、配置網絡交換機vlan模式;有這兩種方法
第一種:
config#vlan ID 這兒的ID是想要你本人給要區分的vlan起的序號
config-if#name 名稱
switch#show vlan brief 查詢vlan 用于檢測是不是配置取得成功
第二種:
switch#vlan database 網絡交換機的vlan配置情況
switch(vlan)#vlan ID name 名稱 配置vlan 而且分派對應的名稱
二、3560上打開路由器作用配置
switch(config)#ip routing
switch(config)#ip route ipaddress net-hop 配置路由器(靜態數據)
switch(config)#ip default-gateway ipaddress 配置網關ip
三、打開匯聚鏈接配置
#conf t
SW(config)#interface range f1/1 -2
SW(config-if)#channel-group 1 mode desirable/on
SW(config-if)#swithport
SW(config-if)#switchport mode trunk
SW(config-if)#switchport trunk encap dot1q
四、運行telnet管理方法模式
switch(config)#line vty 0 4
switch(config-line)#password 登陸密碼
switch(config-line)#login
五、打開cisco日志作用
switch(config)#logging on
switch(config)#logging trap 信息內容
switch(config)#logging host 你的IP地址
switch(config)#logging facility 你選擇的信息內容
配置3550做為dhcp服務器
六、配置cisco運行dhcp作用
配置詳細地址池
switch(config)ip dhcp pool 名稱
switch(config-pool)network mask
switch(config-pool)dns-server
switch(config-pool)default-router 網關ip
設定dhcp保存不分派的詳細地址
switch(config)ip dhcp excluded-address 地址 詳細地址