码迷,mamicode.com
首页 > 其他好文 > 详细

防火墙技术

时间:2019-11-28 21:25:22      阅读:62      评论:0      收藏:0      [点我收藏+]

标签:class   number   interface   ip pool   eth   12px   ip地址   The   cat   

 

  1. 配置基本配置并实现全网互通

R1:

interface GigabitEthernet0/0/0

ip address 172.16.85.1 255.255.255.0

interface GigabitEthernet0/0/1

ip address 172.17.85.1 255.255.255.0

ip route-static 172.18.85.0 255.255.255.0 172.17.85.2

 

[R1]user-interface vty 0 4 //配置telnet登陆

[R1-ui-vty0-4]set authentication password cipher admin

[R1-ui-vty0-4]user privilege level 15

 

[R1]ip pool 1 //创建172.16.85.0/24网段的地址池

Info: It‘s successful to create an IP address pool.

[R1-ip-pool-1]network 172.16.85.2 mask 24

[R1-ip-pool-1]gateway-list 172.16.85.1

[R1-ip-pool-1]lease day 1

[R1]int g0/0/0

[R1-GigabitEthernet0/0/0]dhcp select global

[R1-GigabitEthernet0/0/1]q

[R1]ip pool 20 //创建172.19.85.0/24网段的地址池

Info: It‘s successful to create an IP address pool.

[R1-ip-pool-20]network 172.19.85.2 mask 24 //配置可分配的IP地址范围

[R1-ip-pool-20]gateway-list 172.19.85.1

[R1-ip-pool-20]lease day 1

[R1-ip-pool-20]q

[R1]int g0/0/2

R1-GigabitEthernet0/0/2]dhcp select global

 

 

R2:

interface GigabitEthernet0/0/0

ip address 172.17.85.2 255.255.255.0

interface GigabitEthernet0/0/1

ip address 172.18.85.2 255.255.255.0

interface GigabitEthernet0/0/2

ip route-static 172.16.85.0 255.255.255.0 172.17.85.1

 

[R2]user-interface vty 0 4 //配置telnet登陆

[R2-ui-vty0-4]set authentication password cipher admin

[R2-ui-vty0-4]user privilege level 15

 

防火墙技术

标签:class   number   interface   ip pool   eth   12px   ip地址   The   cat   

原文地址:https://www.cnblogs.com/fn07216/p/11953553.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!