Skip to content

Instantly share code, notes, and snippets.

@awsvpc
Forked from basepi/10-netplan-enp0s3.network
Created May 3, 2025 03:41
Show Gist options
  • Save awsvpc/f625a75a9337c4c0f56be828e57728ec to your computer and use it in GitHub Desktop.
Save awsvpc/f625a75a9337c4c0f56be828e57728ec to your computer and use it in GitHub Desktop.
[Match]
Name=enp0s3
[Network]
DHCP=ipv4
[Route]
Destination=204.8.230.0/24
Gateway=192.168.1.1
Metric=3
Table=129
[Route]
Destination=192.168.1.0/24
Gateway=192.168.1.1
Metric=3
Table=129
[Route]
Destination=0.0.0.0/0
Gateway=192.168.1.1
Metric=3
Table=129
[RoutingPolicyRule]
From=192.168.1.160
Table=129
[DHCP]
UseMTU=true
RouteMetric=100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment