作者:电脑信息网日期:
返回目录:设置问题
TELNET命令是需要你在路由器抄端开启VTY的
line vty 0 4(设置5个VTY通道)
password XXXX(设置vty密码,不设百置进不去)度
no shut(这个命令随意,你懂意思就行,反正我是习惯了)
基本上就是这些了
------------------------------最重要的---------------------
思科的CCNA和CCNP需要你自问己去熟悉命令,给你个方向,剩下的你自己去学习
手工打,给个答分把
router 0(x=2)--------以下为命令
en
conf t
int f0/0 !进入端口f0/0
ip add 160.68.30.1 255.255.255.252 !配置IP地址和子网掩码
no sh !激活端口
int f0/1
ip add 192.168.2.254 255.255.255.0
no sh
int f1/0
ip add 160.65.30.2 255.255.255.252
no sh
exit
ip route 192.168.1.0 255.255.255.0 160.68.30.2 !配置到192.168.1.0/24网段的下一跳路由是160.68.30.2
ip route 192.168.3.0 255.255.255.0 160.65.30.1
end
wr
R1--------以下为命令
en
conf t
int f0/1
ip add 160.68.30.2 255.255.255.252
no sh
int f0/0
ip add 192.168.1.254 255.255.255.0
no sh
exit
ip route 192.168.2.0 255.255.255.0 160.68.30.1
ip route 192.168.3.0 255.255.255.0 160.68.30.1
end
wr
R2(x+1=3)--------以下为命令
en
conf t
int f0/1
ip add 160.65.30.1 255.255.255.252
no sh
int f0/0
ip add 192.168.3.254 255.255.255.0
no sh
exit
ip route 192.168.2.0 255.255.255.0 160.65.30.2
ip route 192.168.1.0 255.255.255.0 160.65.30.2
end
wr
PC0配置
ip地址:192.168.1.11
子网掩码:7a64e78988e69d83366255.255.255.0
网关:192.168.1.254
PC1配置
ip地址:192.168.2.11
子网掩码:255.255.255.0
网关:192.168.2.254
PC2配置
ip地址:192.168.3.11
子网掩码:255.255.255.0
网关:192.168.3.254