Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


Countryman98

25 posts

Geek


#288735 19-Jul-2021 22:42
Send private message

Hey All,

 

I have a small dilemma that i was hoping someone out there could help me with. I have read all the forums to do with adding static ip's to a fritzbox but have still managed to come up blank with adding a 2nd Static IP to Point to a Ubuntu 20.04 LTS Server.

 

On my 1st Static ip 203.86.xxx.243 i have had Private shared webhosting service which has been running seamlessly for about 7 years now. 12 Months ago i requested another static ip from 2Degrees and was assigned : 111.69.XX.164/30 (Yes, been trying to work this out for 12 months).

 

As will many other, have tried 2degrees for some help but nope we only provide the service but cant support it.

 

Here's the details, Some numbers in ip's address have been "fiddled" for privacy:

 

Router: Fritzbox 7490 | Home Network > Network > Network Settings:

 

IPv4 address: 192.168.178.1 - Subnet: 255.255.255.0 - Enable DHCP Server: Yes  | DHCP Server assigns IPv4 Addresses: From: 192.168.178.1 - Until: 192.168.178.22 - Valid for 5 Days | Local DNS Server: 192.168.178.1

 

Public IPv4 Subnet | Prefix: 111.69.xx.164 - Network Mask: 255.255.255.252

 

I am trying to link this new (actually not so new now) 111.69.xx.164/30 to a VMware server running Ubuntu 20.04LTS, I have also had a PTR record with 2degrees (as i also have with the 203.86.*.* domain) added to the new ip which currently lands at my Router Homepage on new address 111.69.xx.165

 

How do i redirect the ip to the Ubuntu Server rather than my Routers Homepage? I Have setup (i think its right) a static ip on the Ubuntu 20.04 host with the following in the /etc/netplan/00-installer-config.yaml file:

 

I do realize that being a yaml file the indentation is important and the configuration is happily accepted by netplan. Just cant lay it out properly on the forum.

 

network: | ethernets: enp0s3: | addresses: [111.69.xx.164/30] | gateway4: 111.69.xx.167 | nameservers: addresses: [4.2.2.2, 8.8.8.8] | version: 2

 

Can anyone out there shed some light on this please. The fact that the new ip lands at my Fritzbox page must mean that something's at least right.

 

Thanks Guys any help much appreciated.

 

Countryman98

 

 

 

 


Create new topic
fe31nz
1233 posts

Uber Geek


  #2746883 20-Jul-2021 00:43
Send private message

You do realise that a /30 provides two static IP addresses?  I suspect that what 2Degrees have done is assign you the /30 with the expectation that you would use both of its two static IP addresses and give them back the old single static 203.86.xxx.243/32 IP address.  If you go here, you can calculate the subnet (I have used 111.69.0.164/30 as an example):

 

https://www.calculator.net/ip-subnet-calculator.html?cclass=any&csubnet=30&cip=111.69.0.164&ctype=ipv4&printit=0&x=60&y=26

 

So for 111.69.0.164/30 you get the two usable static IP addresses of 111.69.0.165 and 111.69.0.166, along with 111.69.0.167 as the broadcast address for the subnet.  I suspect that a FritzBox lacks the ability to handle more than one IP address range at the same time on its WAN port, so keeping on using 203.86.xxx.243/32 at the same time as using 111.69.0.164/30 would likely not be possible.  If you need to do that, a better router would be required.

 

I am not familiar with the capabilities of a FritzBox for setting up separate subnets - I use EdgeRouters where it is fairly easy to do things like that.  There are several ways to set things up, but it sounds like you want the Ubuntu server to be on your main subnet like all your other devices, but to do all its Internet traffic only on 111.69.0.166.  What should be possible is to set up one NAT on the 111.69.0.164/30 subnet (both of its IP addresses).  Then set up the port forwarding from the 111.69.0.165 address to where it normally went with the 203.86.xxx.243 address.  The port forwarding for the 111.69.0.166 address would go to the Ubuntu server.  The DHCP server would advertise a gateway address of 111.69.0.165, and any static addressing on devices other than the Ubuntu server would also use the same gateway address of 111.69.0.165.  The Ubuntu server would be set up with a gateway address of 111.69.0.166.




aseni
52 posts

Master Geek


  #2747073 20-Jul-2021 11:32
Send private message

fe31nz:

 

You do realise that a /30 provides two static IP addresses?  I suspect that what 2Degrees have done is assign you the /30 with the expectation that you would use both of its two static IP addresses and give them back the old single static 203.86.xxx.243/32 IP address.

 

 

More likely they have set it as a routed subnet behind the main /32. That's how it's usually done with PPPoE.

 

 

 

@Countryman98, you are probably stretching the capabilities of the FritzBox, but you can try setting up the /30 as a secondary IP in the LAN settings. In your example, you'd use 111.69.XX.165/30 on the FritxBox and 111.69.XX.166/30 on the VM (with 111.69.XX.165 being the gateway). This might cause issues with NAT though. The FritzBox will probably assume all the subnets on the LAN interface are private subnets which need NAT, so outbound connections from your VM will still be NATed to the main /32.

 

Since you already have a virtualization server, you could replace the FrixBox with a pfSense or OpenWRT virtual appliance, which would give you more configuration options. You could even use the 4 IP addresses in the 111.69.XX.164/30 range, NATing each one to a separate internal IP address if you wanted.


duffles
100 posts

Master Geek

Trusted
2degrees

  #2747083 20-Jul-2021 11:52
Send private message




They say he carved that spoon himself.. From a bigger spoon..
Any comment made here is my own and should not be taken as that of my employer. You've seen one of these statements before.




Spyware
3764 posts

Uber Geek

Lifetime subscriber

  #2747099 20-Jul-2021 12:41
Send private message




Spark Max Fibre using Mikrotik CCR1009-8G-1S-1S+, CRS125-24G-1S, Unifi UAP, U6-Pro, UAP-AC-M-Pro, Apple TV 4K (2022), Apple TV 4K (2017), iPad Air 1st gen, iPad Air 4th gen, iPhone 13, SkyNZ3151 (the white box). If it doesn't move then it's data cabled.


Countryman98

25 posts

Geek


  #2747133 20-Jul-2021 14:01
Send private message

Hi Spyware,

 

Thanks for your along with everyone else's replys / suggestions. I have tried them all with no success.

 

I will look into ordering an Ubiquiti Edgerouter 4 today. Do you all think this will do the job sufficiently?

 

No doubt i will be back when the new router arrives.

 

 

 

Thanks for your replys!

 

Countryman98

 

 


Spyware
3764 posts

Uber Geek

Lifetime subscriber

  #2747137 20-Jul-2021 14:10
Send private message

Mikrotik also have some great solutions.

 

https://mikrotik.com/products/group/ethernet-routers





Spark Max Fibre using Mikrotik CCR1009-8G-1S-1S+, CRS125-24G-1S, Unifi UAP, U6-Pro, UAP-AC-M-Pro, Apple TV 4K (2022), Apple TV 4K (2017), iPad Air 1st gen, iPad Air 4th gen, iPhone 13, SkyNZ3151 (the white box). If it doesn't move then it's data cabled.


Nudibranch
86 posts

Master Geek

ID Verified

  #2747239 20-Jul-2021 16:59
Send private message

Countryman98:

 

Hi Spyware,

 

Thanks for your along with everyone else's replys / suggestions. I have tried them all with no success.

 

I will look into ordering an Ubiquiti Edgerouter 4 today. Do you all think this will do the job sufficiently?

 

No doubt i will be back when the new router arrives.

 

 

 

Thanks for your replys!

 

Countryman98

 

 

 

 

 

 

Watching this closely. Let us know how you get on with the ER-4. I got one and ran into a rubbish situation with 2Deg. For the time being I'm back on the Fritzbox and the ER-4 is unplugged. Had a rubbish experience with 2Deg and I never found a solution. Eth0, Vlan10 seemed to connect except for PPPoe doesn't.

 

Called 2Deg to ask what they could see from their end. 2nd person I talked to actually bothered looking at my account and it turned out I had a static IP address assigned and neither them nor I knew. She removed it and all connected incl. PPPoe but still couldn't get internet. Got fed up and went back to original setup with FB but Myfritz and my VPN wouldn't work. Was then told I had to have a static IP to make these features of the router work which I reckon is bang out of order. So, I asked can you just put it all back to how it was but now it's costing me another $10 per month for the static IP. Total waste of time, money and an ER-4. I've gone back to enjoying my life for the time being.

 

 


 
 
 

Trade NZ and US shares and funds with Sharesies (affiliate link).
fe31nz
1233 posts

Uber Geek


  #2747373 21-Jul-2021 00:22
Send private message

Nudibranch:

 

Watching this closely. Let us know how you get on with the ER-4. I got one and ran into a rubbish situation with 2Deg. For the time being I'm back on the Fritzbox and the ER-4 is unplugged. Had a rubbish experience with 2Deg and I never found a solution. Eth0, Vlan10 seemed to connect except for PPPoe doesn't.

 

Called 2Deg to ask what they could see from their end. 2nd person I talked to actually bothered looking at my account and it turned out I had a static IP address assigned and neither them nor I knew. She removed it and all connected incl. PPPoe but still couldn't get internet. Got fed up and went back to original setup with FB but Myfritz and my VPN wouldn't work. Was then told I had to have a static IP to make these features of the router work which I reckon is bang out of order. So, I asked can you just put it all back to how it was but now it's costing me another $10 per month for the static IP. Total waste of time, money and an ER-4. I've gone back to enjoying my life for the time being.

 

 

Sorry to hear that you had problems making an ER4 work with 2Degrees.  I have been using an ERLite and then an ER4 with static IP addresses since I joined Snap (before 2Degrees bought them) and after the initial steep learning curve with EdgeRouters have not had any problems with them.  If PPPoE is not connecting, then you can just run tcpdump or tshark on the ER4 and see what is actually going on in the PPPoE packets.  That is what I had to do to figure out why I was having problems with IPv6 initially.  It does require a decent amount of knowledge of TCP/IP though.  I would not expect 2Degrees support to help you with that - they only support their FritzBoxes.  But there are plenty of people here on Geekzone using EdgeRouters on 2Degrees and I am sure we can help.


nztim
3824 posts

Uber Geek

ID Verified
Trusted
TEAMnetwork
Subscriber

  #2747374 21-Jul-2021 01:28
Send private message

Don't use a consumer router to do corporate tasks 

 

use a mikrotik or similar, I posted here about how to use a mikrotik to deal with a /30 here

 

Mikrotik Multiple Public IP's (geekzone.co.nz)

 

and as always, make sure you secure the thing!





Any views expressed on these forums are my own and don't necessarily reflect those of my employer. 


Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.