Purpose: (1) Understand several configuration modes of switch routers; (2) Master the switching methods and common configuration commands between several modes. |
|
||||||||||||
Experiment requirements: (1) Complete the conversion of various modes and the use of basic commands on the switch; (2) Complete the conversion of various modes and the use of basic commands on the router. |
|
||||||||||||
One. Five modes of CLI
two. Common commands : 1. In user mode Enable: Enter privileged mode. 2. In privileged mode: Show interface: Show all port information. Show interface: + port type + port number: display the information of a specific port. Configure terminal: Enter global mode. Write: Save the configuration. 3. In global mode: Hostname: Modify the host name. Interface: + port type + port number: enter the interface configuration mode. 4. In interface mode: Duplex: Set the duplex status of the Ethernet port. Speed: Set the working speed of the Ethernet port. Description: Add description information for the Ethernet port. Shutdown: Shut down the Ethernet port. No shutdown: Turn on the Ethernet port. 5. Other: Exit: Enter the previous mode. End: Enter the privileged mode directly. ?: Help. |
|
||||||||||||
Description of the experiment process |
1. Enter privileged mode Enable in user mode 2. Enter global mode: In privileged mode: configuer terminal 3. Change the host name: 全局模式下:hostname + 想要修改成的用户名 4.退回到特权模式下: 全局模式下:exit (返回上一个模式) 5.查看所有端口配置: 特权模式下:show interface 6.进入端口模式: 先进入全局模式, 全局模式下:interface + 端口类型 + 端口号 7.更改端口配置: 更改工作模式: 端口模式下:duplex + 工作模式 更改工作速率: 端口模式下:speed + 速率 为端口增加描述: 端口模式下:description + 描述语句 8.进入特权模式: end 9.查看设置的端口信息: |
||||||||||||
|
show interface fastEthernet + 之前设置过的端口号 10.保存配置: 特权模式下:write
|
||||||||||||
回答问题 |
2.如何配置交换机的默认网关,在哪种配置模式下设置?如何为路由器接口设置IP地址,在哪种配置模式下设置? Ⅰ.为交换机设置默认网关
进入全局模式 ip default-gateway + 网关 进行设置 Ⅱ.为路由器接口配置ip
进入接口模式 用ip address + ip地址 + 子网掩码 进行设置
|
Basic configuration of switch router
Guess you like
Origin blog.csdn.net/ldgjzjmzknbn/article/details/108566154
Recommended
Ranking