acefxlabs
(Abayomi Oyewumi)
June 23, 2023, 4:47pm
1
Hello,
So i got this server from NOCIX and i was provided 5 IP address with the details below :
System IP: 74.91.31.154/29
Usable IP Range: 74.91.31.154 - 74.91.31.158
Gateway: 74.91.31.153
Subnet Mask:255.255.255.248
I created a Network with config details below :
config:
ipv4.address: 74.91.31.154/29
ipv4.dhcp: “true”
ipv4.dhcp.gateway: 74.91.31.153
ipv4.dhcp.ranges: 74.91.31.154-74.91.31.158
ipv4.nat: “true”
ipv6.address: fd42:287:62d1:7e86::1/64
ipv6.nat: “true”
When i create a launch a new container and attach the network to the container, Ip is given but i have issues reaching the IP addressing either via ping or ssh. Nothing is working.
I have contacted the provider and multiple tests have shown i am the one not doing something right
Please i need help on this as i have tried everything for almost a month and no luck
Luken
(Łukasz Zaroda)
June 23, 2023, 10:18pm
3
If these are public IP addresses, then you don’t need to create your own network, you just need to connect to the existing network of the provider, by using these addresses. For that, you could use the routed
or macvlan
nictypes. Here is an example of routed
profile: https://blog.simos.info/how-to-get-lxd-containers-get-ip-from-the-lan-with-routed-network/
1 Like
acefxlabs
(Abayomi Oyewumi)
June 23, 2023, 10:33pm
4
Okay, I’ll try it out and revert
Thanks
acefxlabs
(Abayomi Oyewumi)
July 11, 2023, 6:33pm
5
I was able to use the macvlan config
Below is the config which i had to do per container
config:
user.network-config: |
version: 2
ethernets:
eth0:
dhcp4: false
addresses: ["74.91.31.155/29"]
gateway4: "74.91.31.153"
nameservers:
addresses: ["8.8.8.8"]
description: ""
devices:
eth0:
nictype: macvlan
parent: enp0n12
type: nic
name: macvlan
I was able to configure the profile for other things as well, but this work for the network
@Luken Thanks for the guide
1 Like