思科 路由与交换基础 实验一
思科 路由和交换基础
思科学习: 实验一:
ヾ(・ω・`=´・ω・)ノ♪ 早
[**路由器]
工具:PC2
路由器1
线若干
步骤
第一步: 配置两台PC地址 (ip地址 子网掩码 网关) 注:两台PC处于不同网段
(1) Pc1配置:
(2)Pc2配置:
第二步 : 配置路由器
(1) 进入路由器端口1 ,
命令:interface Fe 0/0 缩写:int f
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
(2) 配置ip add
命令: ip address xxx.xxx.xxx.xxx 255.255.255.0 缩写:ip add
Router(config)#int f0/0
Router(config-if)#ip add 192.168.10.254 255.255.255.0
(3) **路由器
命令:no shutdown 缩写: no shut
Router(config-if)#ip add 192.168.10.254 255.255.255.0
Router(config-if)#no shutdown
同理:路由器端口2
Router(config)#int f0/1
Router(config-if)#ip add 192.168.20.254 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#exit
第三步 : 验证联通性
Pc1 ping Pc2
完整命令
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#ip add 192.168.10.254 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#int f0/1
Router(config-if)#ip add 192.168.20.254 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
write
Building configuration...
搞定(∗❛ั∀❛ั∗)✧*。
补充小知识
- 操作:
- (1) 命令不动时:Ctrl+shit + 6
- (2) 配置信息时 端口对不上是 在思科模拟器软件左上角 点options-prefenerces(第一个选项)——always show
- 命令:
- (1) 查看设备配置信息 show ip interface brief 缩写:show ip int b
- (2) 信息中显示 up ** down 不**
- (3) 键盘上下键可以调出之前输入的内容
Tab键可以自动补全省略命令
但 痛并快乐着٩(●´৺`●)૭٩(●´৺`●)و 晚上11.35