EoIP Noob query

I am trying to get my head around this..

here is what I want to do..
two physical sites..
My primary site subnet 192.168.100.0/24 - one of my servers 192.168.100.19.
DG is 192.168.100.254

Second network subnet 192.168.200.0/24
DG is 192.168.200.254

I want to be able to move that server from one site to the other and NEVER have to change its IP etc… in essence I want to bridge.
I’m thinking of doing this with a software router on 192.168.200.0, with a second ethernet card in it.
Then bridge from the 192.168.100.0/24 network to the “new” remote ethernet subnet, so I can move my server (192.168.100.19) without changing Ip Addresses etc..
(Before you ask, I have legitimate reasons for not simply changing IP addresses etc… this I don’t want to change or route it or anything… just physically relocate it and turn it back on.. unchanged.)

Important: I don’t have the ability to change the DG routers to do the bridging.. they are hard-installed by the extranet vendor… I have to work through them for this. (there is no filtering on this network at all).

I envisage

  • adding a software router (router1) as 192.168.100.252 (ether0) with a DG to 192.168.100.254. (one ethernet port)
  • adding a software router (router2) as 192.168.200.252 (ether0) with a DG to 192.168.200.254 (two ethernet ports)
  • PPTP tunnel from Router 2 to Router 1 with addresses 10.0.0.2 and 10.0.0.1 respectivly
  • EoIP tunnel from Router 1 to Router 2(pptp:10.0.0.2) aka “EoIP-Main”
  • EoIP tunnel from Router 2 to Router 1(pptp:10.0.0.1) aka “EoIP-Remote”
  • Bridge enabled on Router1 between ether0 and “EoIP-Remote”
  • Bridge enabled on Router 2 between ether1 and “EoIP-Main” (“new” segment has bridge attached only)

My script:
[router 1 - 192.168.100.252]
ip address add address 192.168.100.252 netmask 255.255.255.0 interface ether0
ip address add gateway 192.168.100.254
interface pptp-server> ppp secret add name=joe service=pptp password=top_s3 local-address=10.0.0.1 remote-address=10.0.0.2
interface pptp-server> add name=from_remote user=joe
interface pptp-server> server set enable=yes
interface eoip> add name=“eoip-remote” tunnel-id=0 remote-address=10.0.0.2
interface eoip> enable eoip-remote
interface bridge> add
interface bridge> port add bridge=bridge1 interface=eoip-remote
interface bridge> port add bridge=bridge1 interface=ether0

[Router 2 - 192.168.200.252]
ip address add address 192.168.200.252 netmask 255.255.255.0 interface ether0
#Ether1 will be used for bridging so no IP Address added
ip address add gateway=192.168.200.254
interface pptp-client> add name=pptp user=joe connect-to=192.168.100.252 password=top_s3 mtu=1500 mru=1500
interface pptp-client> enable pptp
interface eoip> add name=“eoip-main” tunnel-id=0 remote-address=10.0.0.1
interface eoip> enable eoip-main
interface bridge> add
interface bridge> port add bridge=bridge1 interface=ether1
interface bridge> port add bridge=bridge1 interface=eoip-main

It looks like it will work, but without doing this yet (I know the routers are working - I can ping from one to the other OK).. will it fly to bridge?

(and before you flame me..
yes.. I will try it - but I want everyones opinion first)

I believe you want to add the bridge first, and then add the IP addresses to that bridge. I would probably work having the IP on the bridge port, but I think its supposed to be on the bridge itself.

ip address add address 192.168.100.252 netmask 255.255.255.0 interface BRIDGEINTERFACE

Sam

sir,
I have some questions… :frowning: The IP addresses that i will set on the PPTP interfaces in this case 10.0.0.1 and 10.0.0.2,are this interfaces are logical,unless how do they communicate with each other,if any kindof physical connection is not exist between them then how do they communicate…i cant get ping the pptp interface ip from my own mikrotik router…