Community discussions

MikroTik App
 
User avatar
dgonzalezh
Trainer
Trainer
Topic Author
Posts: 40
Joined: Wed Jun 05, 2013 9:39 am
Location: Colombia
Contact:

[SOLVED] - Cable modem, multiple dynamic public IPs through one cable.

Sun Oct 04, 2015 7:18 pm

Hello there guys,

Ihave the following scenario and want expert input on the problem I'm facing.

I have the ISP 4 Ethernet-port cable modem in bridge mode, apparently due to setup or bug -- who knows -- this device gives away public IPs on each of the ports. I want to exploit this and I tried connecting a four port hAP Lite on three of the modem ports, I run one Cat6 cable to my basement abd then I do the other way around; another hAP and three cables going to a CCR a CRS and a cisco router which I want each of them to get a public IP from the cable modem. Each hAP has it's four ports in a bridge with no firewall, IPs or anything just plain Bridge.

I don't know if this is absolutely bananas to attempt this and make it work, I know connection is ok because one of the devices on the other end of the link actually gets an IP -- the CCR1009 -- the others just time out.

Is this scenario possible?, can I setup the MT in another way so that using just one cable I can get three IPs from the ISP's modem?. which setup should I use?, I though of VLANs but I have no access to the Arris modem and it doesn't support VLANs either.

This is lake a mux-demux kinda thing ;)

I anyone and shed a light on this, it'd be greatly appreciated.

Thanks
Last edited by dgonzalezh on Mon Oct 05, 2015 7:13 pm, edited 1 time in total.
 
ulysses
Member Candidate
Member Candidate
Posts: 101
Joined: Fri Sep 25, 2015 1:26 pm

Re: Cable modem, multiple dynami public IPs through one cable.

Sun Oct 04, 2015 10:00 pm

Are you sure that the different IPs are operational at once? You would observer this behavior if you had a dynamic IP plan, and connected your PPPoE client device to different ports one ofter another. Cable modem (when operating in bridge mode) simply relays ethernet frames to all ports since they are bridged together, so you can initiate a PPPoE session being connected to any of those. At the same time, dynamic IP plan means that each time you reconnect you may receive a new IP.
However, provider may not allow simultaneous PPP session with the same user account credentials, or it may want to charge for each concurrent connection. In the former case you would observe that the first device to initiate a PPPoE session would work, and the others wouldn't. Try disabling PPPoE client on the connected device and see if one of the others connect.
 
troffasky
Member
Member
Posts: 436
Joined: Wed Mar 26, 2014 4:37 pm

Re: Cable modem, multiple dynami public IPs through one cable.

Sun Oct 04, 2015 11:13 pm

I though of VLANs but I have no access to the Arris modem and it doesn't support VLANs either.
Your VLANs would be untagged on the ports facing the Arris modem [ie, whatever plugs into them would not be VLAN-aware]. You would tag VLANs on the trunk between the two hAP Lite's.
 
User avatar
dgonzalezh
Trainer
Trainer
Topic Author
Posts: 40
Joined: Wed Jun 05, 2013 9:39 am
Location: Colombia
Contact:

Re: Cable modem, multiple dynami public IPs through one cable.

Sun Oct 04, 2015 11:33 pm

@troffasky, now, that's what I'm talking about, I didn't put it in the right way there, but here's what I think.

Setup the Arris <> MT with three untagged access ports connected to the Arris, tag the trunk port with eg: vlan1, vlan2, vlan3, connect the trunk-clae to the downstairs MT's trunk port which will also have the same vlans and connect to the devices; so no bridges, no routing, just plain VLANs, now what I need to figure out is how to do that on the hAPs as I know how to do so on a CRS.

Thanks for your enlightenment. :)
I though of VLANs but I have no access to the Arris modem and it doesn't support VLANs either.
Your VLANs would be untagged on the ports facing the Arris modem [ie, whatever plugs into them would not be VLAN-aware]. You would tag VLANs on the trunk between the two hAP Lite's.
 
User avatar
dgonzalezh
Trainer
Trainer
Topic Author
Posts: 40
Joined: Wed Jun 05, 2013 9:39 am
Location: Colombia
Contact:

[SOLVED] - Cable modem, multiple dynamic public IPs through one cable.

Mon Oct 05, 2015 6:46 am

Ok everyone, this was an easy fix,

As @troffasky suggested, I went ahead and implemented it and it did the trick, that's what VLANs are for, aren't they?.

Here's what I did, it may server for anyone interested or facing this same issue, different approaches or scenarios, but at the end of the day, VLANs

1. Three patch cords from each port from the Arris to the first three hAP access ports
2. Setup three VLANs three access ports and a trunk port on The Arris cable-modem facing Mikrotik hAP lite.

Commemorated this:
http://wiki.mikrotik.com/wiki/Manual:Sw ... outerOS_v6

MT1 and MT2
/interface ethernet
set ether2 master-port=ether1
set ether3 master-port=ether1
set ether4 master-port=ether1

/interface ethernet switch port
set ether1 vlan-mode=secure vlan-header=always-strip default-vlan-id=100
set ether2 vlan-mode=secure vlan-header=always-strip default-vlan-id=200
set ether3 vlan-mode=secure vlan-header=always-strip default-vlan-id=300
set ether4 vlan-mode=secure vlan-header=add-if-missing

/interface ethernet switch vlan
add ports=ether1,ether4 switch=switch1 vlan-id=100
add ports=ether2,ether4 switch=switch1 vlan-id=200
add ports=ether3,ether4 switch=switch1 vlan-id=300

/interface ethernet switch port
set switch1_cpu vlan-mode=secure vlan-header=leave-as-is

/interface ethernet switch vlan
add ports=ether4,switch1_cpu switch=switch1 vlan-id=99

/interface vlan
add name=vlan99 vlan-id=99 interface=ether1

/ip address
add address=192.168.99.100/24 interface=vlan99 network=192.168.99.0
3. Tagged frames on port four.
4. connected the cat6 60m extension to the basement's MT
4. Three more patch cords to the CRS, the CCR and the cisco thing.
5. Rebooted the Arris cable-modem.
6. Opened a beer when all devices got their public IPs and IFs went up

I need to see how do I use one of those overpowered, overthrown cisco switches I have somewhere because I need the MTs to teach classes LoL.


TODO
Setup OSPF and OSPFv3 -- EoIP or IPIP tunnel, any suggestions.
IPv6 is already running on all devices thanks to TunnelBroker.

Thanks to everyone and then again Mikrotik Rules
@troffasky, now, that's what I'm talking about, I didn't put it in the right way there, but here's what I think.

Setup the Arris <> MT with three untagged access ports connected to the Arris, tag the trunk port with eg: vlan1, vlan2, vlan3, connect the trunk-clae to the downstairs MT's trunk port which will also have the same vlans and connect to the devices; so no bridges, no routing, just plain VLANs, now what I need to figure out is how to do that on the hAPs as I know how to do so on a CRS.

Thanks for your enlightenment. :)
I though of VLANs but I have no access to the Arris modem and it doesn't support VLANs either.
Your VLANs would be untagged on the ports facing the Arris modem [ie, whatever plugs into them would not be VLAN-aware]. You would tag VLANs on the trunk between the two hAP Lite's.

Who is online

Users browsing this forum: anav, Elvis1991, garyjduk, k6ccc, RobWFS, saifulmd0, VProk and 49 guests