侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

cisco静态路由-适合初学者

2023-01-12 星期四 / 0 评论 / 0 点赞 / 62 阅读 / 1569 字

RT1enableconf t /进入全局模式banner motd #this is a ccna1# /设置旗标banner login #this is a ccna1#int f0/0 /进

.


RT1
enable
conf t /进入全局模式
banner motd #this is a ccna1# /设置旗标
banner login #this is a ccna1#
int f0/0 /进入接口
ip add 172.16.20.1 255.255.255.0 /接口配ip地址
int f0/1
ip add 172.16.10.1 255.255.255.0
eixt
ip route 172.16.30.0 255.255.255.0 172.16.20.2 /配置路由信息,30网段的地址指向172.16.20.2这个接口
ip route 172.16.40.0 255.255.255.0 172.16.20.2
ip route 172.16.50.0 255.255.255.0 172.16.20.2
exit
write
RT2
enable
conf t
banner motd #this is a ccna2#
banner login #this is a ccna2#
ip route 172.16.10.0 255.255.255.0 172.16.20.2
ip route 172.16.40.0 255.255.255.0 172.16.30.2
exit
write
RT3
enable
conf t
banner motd #this is a ccna3#
banner login #this is a ccna3#
ip route 172.16.10.0 255.255.255.0 172.16.30.1
ip route 172.16.20.0 255.255.255.0 172.16.30.1
ip route 172.16.50.0 255.255.255.0 172.16.30.1
exit
write
pc1
ip 172.16.10.3/24 172.16.10.1 /配置IP地址、掩码和网关
pc2
ip 172.16.50.2/24 172.16.50.1
pc1
ip 172.16.40.2/24 172.16.40.1
路由器替代pc
ip route 172.16.20.0 255.255.255.0 172.16.10.1
ip route 172.16.30.0 255.255.255.0 172.16.10.1
ip route 172.16.40.0 255.255.255.0 172.16.10.1
ip route 172.16.50.0 255.255.255.0 172.16.10.1 /配置路由
或者:配置默认路由 0.0.0.0 0.0.0.0 172.16.10.1

.

广告 广告

评论区