CCNA(Stand-ALONE)Lab 8-Introduction to Interface configuration

本文详细介绍如何在路由器上启用接口及所需步骤。通过具体实验步骤,包括进入全局配置模式、设置主机名、进入接口配置模式、显示可用命令、启用接口、添加描述等,帮助读者掌握路由器接口的基本配置。
Objective: Learn to enable interfaces on a router, and learn what is required for an interface to be up.
Lab Equipment: Router 1 and Router 2 from the eRouters menu
Background Reading: Lab Primer Lesson 4: Router Interfaces
1. On Router 1, enter global configuration mode.
Router>enable
Router#conf t
Router(config)#
Router(config)#hostname Router1

2. Type the command to enter interface configuration mode for Ethernet 0.
Router1(config)#interface Ethernet 0
Router1(config-if)#

3. Display all the commands available in interface configuration mode by typing ?.
Router1(config-if)#?

4. The shutdown command shuts down the selected interface. You can often achieve the opposite of a command by typing no in front of it. Execute the command on  Router 1 Ethernet 0 to enable the interface.
Router1(config-if)#no shutdown

5. Add a description for this interface.
Router1(config-if)#description Ethernet interface on Router 1

6. To view the interface description, exit back to privileged mode, and run the show interface command. You should see the description under Ethernet 0.
Router1(config-if)#end
Router1#show interface

7. Connect to Router 2, and assign it a host name of Router2.
Router#conf t
Router(config)#hostname Router2

8. Now, access the Ethernet 0 interface, and enable the interface.
Router2(config)#interface Ethernet 0
Router2(config-if)#no shutdown

9. Now that the interfaces on both sides of the Ethernet connection are enabled, they should be able to see one another through CDP. Use the show cdp neighbor command on Router2 to view all directly connected Cisco routers.
Router2(config-if)#end
Router2#show cdp neighbor
*************************************************************



本文转自redking51CTO博客,原文链接:http://blog.51cto.com/redking/71662 ,如需转载请自行联系原作者


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值