Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to configure IPv4 static IP over OCN Hikari IPoE #40

Open
jeffersonchua opened this issue Dec 20, 2024 · 16 comments
Open

how to configure IPv4 static IP over OCN Hikari IPoE #40

jeffersonchua opened this issue Dec 20, 2024 · 16 comments

Comments

@jeffersonchua
Copy link

I've followed the guide and the ER605 router is working fine, but it's getting different IP that what's NTT has assigned.

When I plugged in the Yamaha RTX1220 it's getting the correct static IP assigned by NTT, but when I use the ER605, it's getting a different IP. I've verified that with the newer TP-Link ER706W, I'm able to get the correct static IP assigned by NTT.

So, what's the steps to set for static WAN IP?

Thank you!

Jeff

@LIII-XXII
Copy link

Hello @jeffersonchua, it's hard to understand exactly what is happening in your case. What interface is the ip assigned to? is it an ipv4 or ipv6? what is the length of the prefix you get on ipv6 with your ISP with the yamaha router? do the ipv4 / ipv6 you get with your ISP-provided router agree with the map-e calculator?

for example, if you have a plan that includes a voip line, you get a static ipv4 on wan, but that is specifically for voip, and not for general internet traffic. your yamaha router would also get this address assigned, but probably it would not be visible anywhere (since it's for the voip only), which may cause some confusion because it would look like you'd indeed get a different ipv4.

@jeffersonchua
Copy link
Author

What interface is the ip assigned to? is it an ipv4 or ipv6?

It's IPv6.

what is the length of the prefix you get on ipv6 with your ISP with the yamaha router?

Using the map-e calculator, I got "option ip4prefixlen 20"

do the ipv4 / ipv6 you get with your ISP-provided router agree with the map-e calculator?

It doesn't agree. That's the issue. And I don't know what's is wrong.

And this line doesn't come with voip line. It's supposed to be just a "static IPv4" line.

@LIII-XXII
Copy link

  • Since the map-e calculator gives you an address, I guess your ipv6 is in the range that is given by Japanese ISPs for map-e.
  • the map-e calculator gives you a prefix len of 20, but what is the length of the ipv6 address you get with the yamaha router? /64 ? /56 ? I think these are related, but different things.
  • what is a "static ipv4" line? afaik, that's a separate thing from map-e. is it a separate ISP (which one if we may ask) option? I'm not sure if it's still possible, but a few years back, it was possible to have simultaneously ipv6 with map-e, and ipv4 with pppoe, maybe that's what you are seeing here? That was called "v6 plus" with ISPs then.

@jeffersonchua
Copy link
Author

my email is jeff.chua.linux@gmail ... I'll share with you the ipv6 address ... and may be you can spot something that I don't

@jeffersonchua
Copy link
Author

what is a "static ipv4" line? afaik, that's a separate thing from map-e. is it a separate ISP (which one if we may ask) option?

It's NTT OCN IPoE. I subscribed to one with Static IP so I access my server from the internet. NTT gave a IPv4 static IP. The Yamaha Rx1200 could correctly obtain the same static IP as was given by NTT. And so was the TP-Link ER706W. But the ER605W (with openwrt gave a totally different IP (this different IP was the same as was derived from the map-e calculator).

I use openwrt-23.05.5-ramips-mt7621-tplink_er605-v2-squashfs-sysupgrade.bin to flash the ER605. Everything works, except it's a different IP, and I couldn't access from internet to my server.

my email is jeff.chua.linux@gmail ... I'll share with you the ipv6 address ... and may be you can spot something that I don't

@schmitmd
Copy link

schmitmd commented Jan 30, 2025

Why would you bother with MAP-E if you paid for a static IPv4 address? Wouldn't it be easier and simpler to just use the regular IPoE IPv6 address you're issued via DHCPv6 and set your static IPv4 address on the WAN interface?

@LIII-XXII
Copy link

Why would you bother with MAP-E if you paid for a static IPv4 address? Wouldn't it be easier and simpler to just use the regular IPoE IPv6 address you're issued via DHCPv6 and set your static IPv4 address on the WAN interface?

this tbh

although it may make sense to have both the fixed ipv4 interface for outside connectivity and the map-e ipv4 for redundancy (and possibly speed, I suspect it may be faster if the fixed address is PPPoE or the like)

@LIII-XXII
Copy link

LIII-XXII commented Jan 31, 2025

looking at ocn's website, particularly their "double bandwidth compared to """conventional PPPoE""" method", I suspect that it is indeed both fixed ipv4 via PPPoE (or IPoE) + ipv6 via DHCP (and possibly also ipv4 with map-e, I don't see why not if they let you do it).

the ipv4 you are seeing is likely NOT your fixed address (it's not the one you would get with the other router anyway), it is probably what the ISP equipment is giving you on their local network in order to use it to connect via PPPoE (or whatever other scheme they are using, since their docs doesn't mention PPPoE itself, it is likely some other flavor of IPoE that may or not be map-e)

so you can probably set up map-e as wan6, also set up your fixed address as wan4 with that other IPoE sche,e, set whichever you want between wan6/mape or wan4 as default ipv4 interface for reaching the internet, and configure network accordingly (e.g. wan6 + wan4 + mape in "wan" firewall zone, port redirections from wan4 fixed address to your server...

if you have a username / password provided for connecting to the internet, my guess is that you need it for that other IPoE scheme, try to dig a bit more :)

@jeffersonchua
Copy link
Author

Thanks for the links. It's like I need to go back to school to configure the RTX1220 to do this. Why can't NTT make it easier?

https://www.ntt.com/content/dam/nttcom/hq/jp/business/services/network/internet-connect/ocn-business/ftth/ipoe-detail/pdf/service_compatible_terminal.pdf

Looking at the list, I'll try to test out WXR-6000AX12P ... will let you know how it goes. ...

Thank you!
Jeff

@jeffersonchua
Copy link
Author

so you can probably set up map-e as wan6, also set up your fixed address as wan4 with that other IPoE sche,e, set whichever you want between wan6/mape or wan4 as default ipv4 interface for reaching the internet, and configure network accordingly (e.g. wan6 + wan4 + mape in "wan" firewall zone, port redirections from wan4 fixed address to your server...

I'll try it out... not quite sure what you mean, but I'll try it Monday. To me, this iPoE thing is a nightmare.

if you have a username / password provided for connecting to the internet, my guess is that you need it for that other IPoE scheme, try to dig a bit more :)

No username/password provided.

@LIII-XXII
Copy link

looking a bit more into the yamaha docs, it looks like there is a specific option for ocn map-e, I wonder if they are doing something specific that openwrt's map package does not

tunnel encapsulation map-e
tunnel map-e type ocn

@LIII-XXII
Copy link

LIII-XXII commented Feb 3, 2025

do you get the same ipv6 with openwrt (different ipv4) or are they both different altogether?

@jeffersonchua
Copy link
Author

do you get the same ipv6 with openwrt (different ipv4) or are they both different altogether?

It's the same IP on both the Yamaha RTX1220 and on the ER605 (OpenWrt 24.10.0-rc2 r28161-ea17e958b9 / LuCI openwrt-24.10 branch 24.337.27339~b1968d9).

can I've your email? Or you can send me private message at [email protected].

@jeffersonchua
Copy link
Author

on the RTX1220, I use "show ipv6 address" and got the IP address. I then use this address 2400:4051:8702:xxxx:yyyy:yyyy:yyyy:0/64 and went to https://ipv4.web.fc2.com/map-e.html and it shows the ipv4 address 114.172.zzzz.zzz that's different what's showing on https://www.whatismyip.com/ (the yyyy:yyyy:yyyy portion is different)

@jeffersonchua
Copy link
Author

jeffersonchua commented Feb 3, 2025

I don't know how the Yamaha RTX1220 and Tp-Link ER706W managed to get the same static IP as given by NTT. But I just couldn’t derive this from map-e calculator. On the ER706W, there's nothing I need to do. Just need to set the config to iPoE. The reason why I need to use openwrt is because the ER706W NAT/ip-forwarding is disabled on the interface the moment iPoE is enabled on the GUI.

Perhaps there's a way to force NAT/ip-forwarding using the console, but I don't know enough to do that. And since the openwrt/map-e is not getting the correct static IP, I don't know what's the right ports to use to listen for incoming traffic from the internet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants