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

netmgr: Feature: Implement API flag to handle /32 IP configuration with non-local gateway using Peer entry #6

Open
suezzelur opened this issue Oct 10, 2018 · 2 comments

Comments

@suezzelur
Copy link

You are given the following:

IP Address: A.B.C.D/32
Gateway: E.F.G.1

Now the default gateway is not on the same subnet as the host.

Here is the /etc/systemd/network/10-eth0.network generated by netmgr:

[Match]
Name=eth0

[Network]
Gateway=62.210.249.1
Address=195.154.58.18/32
DHCP=no

[DHCP]
UseDNS=false

This doesn't work as the OS doesn't know how to join the GW.

Here it what should be generated when a /32 subnet is used for the host in /etc/systemd/network/10-eth0.network

[Match]
Name=eth0

[Address]
Address=195.154.58.18/32
Peer=62.210.249.1/32

[Network]
Gateway=62.210.249.1

[DHCP]
UseDNS=false

@ssahani
Copy link

ssahani commented Oct 16, 2018

May be use the onlink option

[Match]
Name= eth0

[Address]
Address=195.154.58.18/32

[Route]
Gateway=62.210.249.1
GatewayOnlink=true

[DHCP]
UseDNS=false

@ssahani
Copy link

ssahani commented Nov 27, 2018

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

2 participants