目录
一 . 介绍
二 . 配置过程
一 . 介绍
pfsense开源防火墙经常在进行组网时,通常会用于连接不同的网络,在这个时候进需要给pfsense配置路由,而这篇文章介绍的是静态路由的配置
二 . 配置过程
拓扑图:
本次实验使用ensp模拟器进行模拟,使用一个cloud连接pfsense ,有两个网段,分别是192.168.184.0/24和192.168.111.0/24
首先给cloud进行配置
给AR1配置ip地址
<Huawei>sys
[Huawei]sys AR1
[AR1]int g0/0/0
[AR1-GigabitEthernet0/0/0]ip add 192.168.184.100 24
[AR1-GigabitEthernet0/0/0]int g0/0/1
[AR1-GigabitEthernet0/0/1]ip add 192.168.111.254 24
[AR1-GigabitEthernet0/0/1]dis ip int br
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.184.100/24 up up
GigabitEthernet0/0/1 192.168.111.254/24 up up
GigabitEthernet0/0/2 unassigned down down
NULL0
然后给pc配置IP地址
首先点击pfsense的系统 -> 路由管理,因为pfsense的默认路由口只有wan口,而我们这次使用的是lan口,所以要先添加一个路由口(我也不知道这个名称对不对,反正是那个意思就行)
进入添加页面,接口选择lan口,设置一个名称,设置网关(此网段流量的 出口)为路由器的184网段的IP地址,其他的保持默认
然后点击静态路由,点击 add 添加一条路由
然后设置目标网段,这里是111网段的,在选择刚才设置的网关,记得保存
然后使用pc ping pfsense的lan口,成功