At any point you may enter a question mark '?' for help. 任何時候可以打?取得幫助 Use ctrl-c to abort configuration dialog at any PRompt. 按Ctrl-C可以取消并退出 Default settings are in square brackets '[]'. 默認參數在[]中
Continue with configuration dialog? [yes/no]: y 繼續交互配置嗎?回答:y Enter ip address: 10.1.1.249 ip地址 Enter IP netmask: 255.255.255.0 子網掩碼 Would you like to enter a default gateway address? [yes]: y 設置默認網關?y IP address of default gateway: 10.1.1.254 默認網關 Enter host name [3548_9A]:
The enable secret is a one-way cryptographic secret used instead of the enable passWord when it exists.
Enter enable secret: _password 輸入超級用戶密碼
Would you like to configure a Telnet password? [yes]: y Enter Telnet password: _password 輸入telnet密碼 Would you like to enable as a cluster command switch? [yes/no]: n 集群模式?n
The following configuration command script was created: 已建立以下配置信息
ip subnet-zero interface VLAN1 ip address 10.1.1.249 255.255.255.0 ip default-gateway 10.1.1.254 enable secret 5 $1$biZ3$AOLb9cMTtBwMtGB9lyBzr. line vty 0 15 password _domainwlzx snmp community private rw snmp community public ro ! end
Use this configuration? [yes/no]: 使用該配置信息嗎? y
修改配置:
禁止通過snmp治理: 3548>enable password: 3548#config term 3548(config)#no snmp community private 3548(config)#no snmp community public
第一次連接交換機,配置終端參數為: 波特率:9600;數據位:8;停止位:1;奇偶校驗:無;流控制:無。 連接上后看到: console> 進入超級用戶模式: console> enable console>(enable) 在此打入以下命令設置系統: set system name 6506 #設置系統名稱 set password _password #設置telnet密碼 set enablepass _password #設置enable(超級用戶)密碼
set interface sc0 1 10.1.1.253/255.255.255.0 10.1.1.255 #設置本交換機的IP地址 set ip route 0.0.0.0/0.0.0.0 10.1.1.254 #設置默認網關 set ip alias default 0.0.0.0 #設置ip對應的設備名,方便治理 set ip alias 6506 10.1.1.253 #用途如:ping 2620, telnet 3548_2a
set vtp domain _domain # 設置設置VTP域名 set vtp passwd ******** # VTP域密碼 set vlan 2 name vlan2 #建立VLAN set vlan 3 name vlan3 ... set trunk 2/1 on dot1q 1-1005 #設置2/1為運行802.1Q協議的干道,答應vlan 1-1005通過 set trunk 2/2 nonegotiate isl 1-1005 #設置3/4為運行isl協議的干道,答應vlan 1-1005通過 ... set trunk 3/1 on dot1q 1-1005 #設置Port Channel(鏈路聚合) set trunk 3/2 on dot1q 1-1005 #Port Channel 各成員要有相同配置 set port channel 3/1-2 mode on #假如是4000交換機,不要將連接L3模塊的端口設為Channel,否則無法支持ACL
set vlan 5 2/1 #指定端口2/1到vlan 5 ... set port name 2/1 gg #設置端口名稱 ...
set mls flow full #設置多層交換流類型
說明: 1.任何命令輸入之后立即保存并生效 2.本配置方法僅說明方法,具體參數選擇參看最近配置文件
Msfc 配置方法 功能:路由/多層交換/DHCP動態主機配置
進入配置:(通過6506,如過配置了telnet密碼,也可直接telnet 10.1.1.254) 6506> (enable) session 15 (MSFC安裝在交換引擎內,槽號為15 務份引擎內的MSFC為16) Trying Router-15... Connected to Router-15. Escape character is '^]'.
msfc>enable 進入超級用戶狀態 Password: msfc#config term 進入全局配置狀態 Enter configuration commands, one per line. End with CNTL/Z. msfc(config)# hostname msfc #配置系統名稱 enable secret ******** #配置超級用戶密碼 no ip dhcp conflict logging #不使用dhcp沖突記錄 ip dhcp excluded-address 10.1.1.1 10.1.1.9 #不用于動態分配的地址范圍 ip dhcp excluded-address 10.1.1.200 10.1.1.254 ip dhcp excluded-address 10.1.2.1 10.1.2.99 ip dhcp excluded-address 10.1.3.1 10.1.3.99 ... ip dhcp pool 1 #一個為動態分配預備的ip pool network 10.1.1.0 255.255.255.0 #網絡地址-不用于動態分配的地址范圍=用于動態分配的地址范圍 default-router 10.1.1.254 #為客戶設定默認網關 netbios-name-server 10.1.8.4 10.1.8.5 #為客戶設定主備wins服務器地址 netbios-node-type h-node #為客戶設定節點類型 ip dhcp pool 2 network 10.1.2.0 255.255.255.0 default-router 10.1.2.254 netbios-name-server 10.1.2.4 10.1.2.5 #Vlan 2 wins服務器地址 netbios-node-type h-node
interface Vlan1 #設置VLAN 1路由接口 msfc(config if)# ip address 10.1.1.254 255.255.255.0 #設置IP地址、子網掩碼 no shutdown #啟用端口