ros7和ros6的ospf pptp互联
ros6这边是pptp服务端,ip是192.168.72.61/24,pptp的服务端ip是17.17.17.1
ros7这边是pptp客户端,ip是192.168.72.30/24,pptp的客户端ip是17.17.17.2
ppp建出来的隧道,如果想跑ospf,都属于ptp
比如GRE啥的,都属于广播类型了
wireguard要用nbma类型,帧中继
ros6的配置如下
/routing ospf instance
set [ find default=yes ] router-id=17.17.17.1
/interface pptp-server server
set authentication=pap,chap,mschap1,mschap2 enabled=yes
/ppp secret
add local-address=17.17.17.1 name=用户名 password=密码 remote-address=17.17.17.2 service=pptp
/routing ospf network
add area=backbone network=17.17.17.2/32
ros7的配置如下
/interface pptp-client
add connect-to=192.168.72.61 disabled=no name=pptp-out1 user=liebao
/routing ospf instance
add disabled=no name=ospf-instance-1 router-id=17.17.17.2
/routing ospf area
add disabled=no instance=ospf-instance-1 name=ospf-area-1
/routing ospf interface-template
add area=ospf-area-1 disabled=no networks=17.17.17.1/32 type=ptp
如果反过来,ROS7做服务端,ROS6做客户端。
ros6这边是pptp客户端,ip是192.168.72.61/24,pptp的客户端ip是16.16.16.2
ros7这边是pptp服务端,ip是192.168.72.30/24,pptp的服务端ip是16.16.16.1
ROS7的配置如下:
/routing ospf instance
add disabled=no name=ospf-instance-1 router-id=16.16.16.1
/routing ospf area
add disabled=no instance=ospf-instance-1 name=ospf-area-1
/interface pptp-server server
# PPTP connections are considered unsafe, it is suggested to use a more modern VPN protocol instead
set authentication=pap,chap,mschap1,mschap2 enabled=yes
/ppp secret
add local-address=16.16.16.1 name=用户名 password=密码 remote-address=16.16.16.2 service=pptp
/routing ospf interface-template
add area=ospf-area-1 disabled=no networks=16.16.16.2/32 type=ptp
ros6的配置如下
/interface pptp-client
add connect-to=192.168.72.30 disabled=no name=pptp-out1 password=密码 user=用户名
/routing ospf instance
set [ find default=yes ] router-id=16.16.16.2
/routing ospf network
add area=backbone network=16.16.16.1/32