Skip to main content
22 votes

How can I set the metric of a manually added route on Windows?

This question is ancient, but if you stumbled across it like I did, try the following (confirmed on Win10); open the adapter properties, IPv4 settings, Advanced, then... Uncheck the "Automatic ...
Dave's user avatar
  • 321
21 votes
Accepted

Specify route to an interface in Windows cmd

To specify the interface in windows route command, you are supposed to use 'IF'... Uppercase letters, not lowercase. Also, where you are specifying you want to add a route to a single IP 192.168.0.6, ...
Dre's user avatar
  • 1,844
11 votes

Do not allow domain computers to communicate with each other

You could do this, if you did something as horrible as make 1 subnet per client. This would be a management nightmare. The Windows Firewall, with appropriate policies, will help with this. You could ...
mfinni's user avatar
  • 36.3k
11 votes

Specify route to an interface in Windows cmd

This should work:  route add 192.168.0.6 mask 255.255.255.0 192.168.0.254 If you want persistence: route -p add 192.168.0.6 mask 255.255.255.0 192.168.0.254 Not sure what the "if" was for, ...
Anthony Fornito's user avatar
5 votes
Accepted

Prohibiting an IP range from going out to the Internet in Red Hat/CentOS Linux

Your interface specification in the iptables rule is backward. You specified: iptables -A OUTPUT -i eth0 -p tcp -d 192.168.0.0/16 -j REJECT Using -i matches traffic that enters the system on the ...
Michael Hampton's user avatar
5 votes

Ubuntu full disc encryption on Hetzner Cloud adding add static route in initramfs

had same problem / small discussion with tech support that it cannot be that the initramfs fails only in Hetzner cloud instances like this. But Hetzner Support repeately states only that their DHCP ...
Reiner030's user avatar
4 votes

Ubuntu full disc encryption on Hetzner Cloud adding add static route in initramfs

jajo's answer starts on the right track, but it misses a few key things. Here is how I got this to work on Ubuntu Bionic without having to patch any files (meaning, this method isn't susceptible to ...
Vladimir Panteleev's user avatar
3 votes

Add static route (default gateway) on Ubuntu 16.04 server

Since your server is only connected to the 10.50.0.0/24 network, you can't fix this by only changing settings on the server. This server can only have 10.50.0.1 as its default gateway. No other static ...
Tommiie's user avatar
  • 5,685
3 votes
Accepted

Ubuntu full disc encryption on Hetzner Cloud adding add static route in initramfs

For those who come across this thread: At least in Debian Stretch a little more generic configuration (which won't break on package update) works. We just configure network statically with a script ...
jajo's user avatar
  • 46
3 votes

IPv6 Route with expiry time, expires late

The expired check in Linux net/ipv6/route.c is not fancy, just a time_after comparison. Your testing indicated the route does become unreachable around when expected. I am not sure that the iproute ...
John Mahowald's user avatar
2 votes

Prohibiting an IP range from going out to the Internet in Red Hat/CentOS Linux

You've already got the answer you needed to do it with iptables. If you want to do it with routes, a good way is to have a route for 192.168.0.0/16 and have your vpn server send you two routes that ...
GnP's user avatar
  • 965
2 votes

Prohibiting an IP range from going out to the Internet in Red Hat/CentOS Linux

In addition to Michael's answer, I think one should block the traffic in the FORWARD chain, since the OUTPUT chain applies only to locally generated packets and going out from the firewall. As far as ...
Tero Kilkanen's user avatar
2 votes

Access a device in a different subnet

What is probably missing from your configuration is answers to these two questions: How an information packet from a device connected to router B can be routed to your NAS? How an information packet ...
EvensF's user avatar
  • 156
2 votes

Access a device in a different subnet

First you'll need the external IP of router A (as reachable by router B), let's say it is 10.0.0.2/24, and router B (as reachable by router A) let's say it's 10.0.0.3/24. Router A or B could also be ...
Isabell Cowan's user avatar
2 votes

How can I set the metric of a manually added route on Windows?

Disable "Automatic Metric" for the interface. Modify the default route increasing its metric route CHANGE 0.0.0.0 MASK 0.0.0.0 192.168.76.1 METRIC 2 IF 11. Create you own route with a lower metric ...
Jaime Hablutzel's user avatar
2 votes

is the use of link-local address mandatory for IPv6 static routing next hop?

In practice using GUA addresses is perfectly fine. The restriction (well, strong recommendation, as it is specified as SHOULD) is to make it possible for the device with the static route to send ...
Sander Steffann's user avatar
2 votes

RedHat 7: SIOCDELRT: No such process

This route to network 10.120.100.0/24 is not a static route (one that you configure), but it's there because your interface ens192 has an IP configured in that subnet (10.120.100.132 it seems.) In ...
filbranden's user avatar
2 votes
Accepted

No Internet access while connected with Cisco AnyConnect VPN client

You don't have access to Internet because your default resolver is DNS provided by AnyConnect. Those DNS couldn't resolve names from Internet. According Cisco forums that issue and routing issue could ...
Alexander Tolkachev's user avatar
2 votes

How can additional routes be added to anaconda kickstart?

Why don't you just set up the static routes in %post? %post cat > /etc/sysconfig/network-scripts/route-eth0 <<EOF 10.0.0.0/8 via 192.168.0.2 172.16.0.0/12 via 192.168.0.3 EOF If you need ...
Michael Hampton's user avatar
2 votes

Ubuntu full disc encryption on Hetzner Cloud adding add static route in initramfs

Based on the other answers the following script placed as executable in /etc/initramfs-tools/scripts/init-premount/ did make it finally work with Hetzner Cloud Server Ubuntu 20.04: #!/bin/sh PREREQ=&...
cre's user avatar
  • 21
2 votes

How can additional routes be added to anaconda kickstart?

I eventually found the solution %pre nmcli connection modify "System eth0" +ipv4.routes "10.0.0.0/8 192.168.0.2" %end This both works for the build, but also then stays persistent for afterwards
Jarrod's user avatar
  • 131
2 votes
Accepted

3 router 2 networks want to see each other + share internet

It looks like several routers on your network are not behaving as expected. This is most likely due to them acting as NAT gateways in addition to performing the routing functions. These are TL-WR841N (...
Benjamin Hastings's user avatar
1 vote
Accepted

RouterOS push static route for IPSec IKEv2 VPN

The ipsec mode-config is supposed to provide such functionality. For example if you have the following settings in RouterOS: /ip pool add name="ipsec_pool" ranges=192.168.50.2-192.168.50.6 /...
bcs78's user avatar
  • 382
1 vote

centos 7 persistent static route

I have configured static and persistent rule using nmtui utility. You can play around with route metric to give proper gateway precedence. Attached an example of route config across two NICs. And here ...
m_r_nadh's user avatar
1 vote

Setting up classless static routes manually in GCE

udhcpc doesn't request classless static routes by default, you need to instruct it to do so by adding -O 121 or -O staticroutes to the command line. Alternatively DHCP server can be configured to ...
A. Z.'s user avatar
  • 96
1 vote

Access server on secondary LAN-to-WAN subnet from the main subnet in a cascaded network

Delete your double NAT. It will cause confusion and break things. Especially with consumer gear not designed for this use case. Add a router and firewall capable of VLANs and multiple subnets at your ...
John Mahowald's user avatar
1 vote
Accepted

Traffic via static route on router does not find its way back

Challenges: You have only one broadcast domain (think physical / layer 2 network) that matters, and on that broadcast domain, you have three IP (logical) networks: 10.0.30.0/24 - A 10.10.10.0/24 - B ...
Slartibartfast's user avatar
1 vote

pfSense - Traffic to subnet not being routed by static route

If you can access (ping) the management IP from the pfsense but not the computer segment, it would be easiest to add a hybrid NAT option to pfsense with something like this: (switch GUEST for ...
Jacob Evans's user avatar
  • 8,046
1 vote

Nat or Static Route in pfsense

Firewall -> NAT -> Outbound There you can create a new rule for the WAN with source 10.1.1.0/24 and NAT address 'WAN address'. This should automatically be done by pfsense if you assigned a WAN and ...
mzhaase's user avatar
  • 3,838

Only top scored, non community-wiki answers of a minimum length are eligible