1. 交換機支持的命令:
交換機基本狀態:
交換機基本狀態:
switch: ;ROM狀態, 路由器是rommon> |
switch>enable ;進入特權模式 |
交換機VLAN設置:
switch#vlan database ;進入VLAN設置 |
交換機設置IP地址:
switch(config)#interface vlan 1 ;進入vlan 1 |
交換機顯示命令:
switch#write ;保存配置信息 |
2. 路由器支持的命令:
路由器顯示命令:
路由器顯示命令:
router#show run ;顯示配置信息 |
路由器口令設置:
router>enable ;進入特權模式 |
路由器配置:
router(config)#int s0/0 ;進入Serail接口 |
路由器文件操作:
router#copy running-config startup-config ;保存配置 ROM狀態:
Ctrl+Break ;進入ROM監控狀態 rommon>confreg 0x2142 ;跳過配置文件 rommon>confreg 0x2102 ;恢復配置文件 rommon>reset ;重新引導 rommon>copy xmodem: rommon>IP_ADDRESS=10.65.1.2 ;設置路由器IP rommon>IP_SUBNET_MASK=255.255.0.0 ;設置路由器掩碼 rommon>TFTP_SERVER=10.65.1.1 ;指定TFTP服務器IP rommon>TFTP_FILE=c2600.bin ;指定下載的文件 rommon>tftpdnld ;從tftp下載 rommon>dir flash: ;查看閃存內容 rommon>boot ;引導IOS |
靜態路由:
ip route |
動態路由:
router(config)#ip routing ;啓動路由轉發 |