博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Cisco路由配置入门
阅读量:6970 次
发布时间:2019-06-27

本文共 1720 字,大约阅读时间需要 5 分钟。

  hot3.png

Cisco路由配置基础
刚刚接触cisco路由配置,下面是学习的笔记,感觉命令还是多敲才能熟悉
一、 所处状态各类
  1. router>
    1. 用户处于用户命令状态,可以查看网络和主机
  2. router#
    1. 用户处于特权模式,可以查看状态,还可以看到和更改路由器的设置内容
  3. router(config)#
    1. 全局配置状态,可以设置路由的全局参数
  4. router(config-if)#;router(config-line)#;router(config-router)#.....
    1. 处于局部配置状态,可以设置路由的局部参数
二、配置端口ip
  1. 命令
    1. en
    2. config t   //全局模式
    3. interface f0/0
    4. ip address 192.168.1.1 255.255.255.0 //设置端口ip
    5. no shu   //生效
    6. exit
    7. interface f0/1
    8. ip address 192.168.10.1 255.255.255.0  
    9. no shu
    10. exit
    11. end
    12. disable
三、配置静态路由
  1. 命令
    1. en
    2. config t   //全局模式
    3. ip route 192.168.100.0 255.255.255.0 192.168.10.2    //到192.168.100.0/24通过192.168.10.2接口
    4. end
    5. show ip route //可以看到前面标明S,即为静态路由
四、配置动态路由(RIP)
  1. 命令
    1. en
    2. config t   //全局模式
    3. no route rip      //禁止rip协议
    4. route rip
    5. network 192.168.1.0      //network参数为路由的两个端口对应的网络地址
    6. network 192.168.10.0
    7. exit
    8. end
    9. disable
五、配置DHCP
  1. 命令
    1. en
    2. config t   //全局模式
    3. ip dhcp excluded-address 192.168.1.1   //需要排除的ip地址
    4. ip dhcp pool gr-dhcp-pool   //ip地址池名
    5. default-server   192.168.1.1  //指定dhcp服务器
    6. network  192.168.1.0 255.255.255.0   //配置网络
    7. dns-server 61.177.7.1   //配置dns服务器
    8. exit
    9. end
    10. disable
  2. 可以通过 ip helper-address指定 DHCP中继代理
    1. interface FastEthernet0/1
    2. ip address 192.168.1.1 255.255.255.0
    3. ip helper-address 192.168.10.2                 \\配置DHCP中继代理,DHCP
六、配置NAT
         
  1. 命令
    1. en
    2. config t   //全局模式
    3. interface f0/0
    4. ip address 192.168.1.1 255.255.255.0
    5. ip nat inside   //内部端口
    6. no shu
    7. exit
    8. interface f0/1
    9. ip address 192.168.10.1 255.255.255.0
    10. ip nat outside   //外部端口
    11. no shu
    12. exit
    13. access-list 1 permit any   //设置一个可访问列表
    14. ip nat pool gr-nat-pool  192.168.10.3 192.168.10.254 netmask 255.255.255.0  //设置分配池
    15. ip nat inside resource list 1 pool gr-nat-pool overload
    16. show ip nat traslations
    17. clear ip nat traslation *
七、其它
    1. sh running-config    //显示当前运行配置
    2. sh startup-config     //显示开机配置
    3. sh ip route             //显示路由
    4. sh nat traslations    //显示nat当前情况

转载于:https://my.oschina.net/grnick/blog/161005

你可能感兴趣的文章
[LeetCode]题解(python):045-Jump Game II
查看>>
[LeetCode]题解(python):099-Recover Binary Search Tree
查看>>
【Unity Shaders】Reflecting Your World —— Unity3D中的遮罩反射(Masking Reflections)
查看>>
Lambda为什么又称为匿名函数
查看>>
搜索阅读二合一 win8移动端开发计划与组员分工
查看>>
[转]说说.NET中被我忽视的方法
查看>>
dfs - 走过的标记取消
查看>>
node path.resolve()
查看>>
关于 多个git用户或多个git管理工具切换时出现的问题总结
查看>>
Sqli-labs less 15
查看>>
Mutation Testing(变异测试)
查看>>
HADOOP实践101:在Hadoop集群中添加机器和删除机器
查看>>
LOJ 10160 - 「一本通 5.2 练习 3」周年纪念晚会 / 没有上司的晚会
查看>>
File Zilla连接Ubuntu 失败
查看>>
Javassist 使用,动态生成类,动态代理
查看>>
tomcat 内存溢出
查看>>
第一次 作业 workcount (基础功能实现)
查看>>
【1】今天开始学习python
查看>>
实用字符串函数
查看>>
java中使用 正则 抓取邮箱
查看>>