29
votes
Accepted
Does a Gateway of a Subnet need to be a "real" Computer?
Default route (aka gateway address) has to be owned by something that is capable of forwarding packets to the rest of the internet, and which is willing to do so. It doesn't have to be the "principal"...
- 79k
26
votes
Accepted
AWS NAT vs AWS IGW vs AWS Router
No they are not the same.
Internet Gateway
Routes traffic from instances with Public IPs to the Internet.
It simply forwards traffic between Public IPs in your VPC and Public IPs in the internet ...
- 24.2k
21
votes
Accepted
A few websites are not reachable using Linux gateway
The netmask is wrong on the enp4s1 (WAN) interface.
This system has configured an IP address of 49.x.x.x and a netmask of 255.0.0.0 (prefix /8). But this is not the netmask that your ISP gave you.
...
- 240k
15
votes
Does a Gateway of a Subnet need to be a "real" Computer?
The IP address of the gateway can be any valid host IP address in the subnet, i.e. not the network address itself nor the broadcast address. This IP address does not need to belong to a single ...
- 5,607
9
votes
nginx : no live upstreams while connecting to upstream
This is not a problem with Nginx, it is a problem with your PHP backends not responding in time. You can add logging to Nginx to help confirm this.
As a second point of reference, you can you can top ...
- 3,811
9
votes
Accepted
OpenBSD: Gateway outside subnet (works in Linux)
This is an old thread, but here goes.
As it happens, I run a number of OpenBSD VMs on an ESXi 6.0 running at SoYouStart, a daughter company of OVH. The network setup there is the same as with OVH ...
- 218
9
votes
Does a Gateway of a Subnet need to be a "real" Computer?
"Logical entity" in your usage is a tiny bit confusing. But I'll try to answer it best I can.
From my experience, a gateway in an IP configuration is usually a physical device. While it doesn't have ...
- 373
6
votes
How do i get the default gateway in LINUX given the destination?
ip route show default 0.0.0.0/0
This command is much more quicker then ip route | grep default on system with many (10000+) routes
Look for example from my router with full BGP and manual default ...
6
votes
Fixed Size of IPv6 SLAAC
There is no such thing as /96 or /112 or the like, and you better don't even try to "make" such subnets. Apart from some special cases a subnet in IPv6 is always /64. Several mechanisms rely ...
- 395
6
votes
Accepted
Allow internet access for ec2 instances with private IP addresses inside a public subnet?
You are misunderstanding / misusing Public and Private subnets.
A public subnet has an Internet gateway (IGW). Instances in the public subnet need public IP addresses to access the Internet.
A ...
- 4,454
5
votes
Accepted
Is there a Universal/Generic Default Gateway Address in IPv4?
No, there really is no such thing.
- 97.9k
5
votes
Does a Gateway of a Subnet need to be a "real" Computer?
Routing table entries resolve a subnet to either a gateway or a network adapter.
A typical routing table for a device on a private network might, if you leave out the unnecessary stuff, look like
0....
- 3,237
4
votes
nginx : no live upstreams while connecting to upstream
Don't know if it is quite the same but what worked for me was to add max_fails = 0 to the end of the server name
upstream sm_url {
server LOAD_BALANCER_DOMAIN_NAME: max_fails=0;
}
- 140
4
votes
Supersede default route
The keyword you are looking for is "metric". It basically specifies how "preferred" a particular route is. The comment at the end of this article explains how to set it up on Debian based systems:
...
- 161
4
votes
Postfix configure a gateway to outbound emails
You'll use the relayhost option in main.cf in your office email server. E.g.
relayhost = mailserver.amazingvps.com:25
You probably also want to use smtp_use_tls=yes and smtp_sasl_auth_enable = yes ...
- 32.4k
4
votes
Routing from docker containers using a different physical network interface and default gateway
A friend and I ran into this exact problem where we wanted to have docker support multiple network interfaces servicing requests. We were specifically working with the AWS EC2 service where we were ...
- 141
4
votes
Accepted
OpenVPN server sending bogus default gateway information to client?
No, this is correct.
Your OpenVPN works in "net30" topology mode. In this mode OpenVPN process itself is a router. In reality virtual network schema looks like this:
...
- 9,108
4
votes
Multiple Nics, multiple default gateways on a Server 2012R2 cluster
For every network that the cluster members have in common (having a NIC in the same subnet), the cluster will create a cluster network and enable cluster communication for that cluster network (...
- 109k
4
votes
Accepted
Route propagation from virtual private gateway in AWS
yes, that is what it means, otherwise, you have to do it manually
https://docs.aws.amazon.com/vpn/latest/s2svpn/VPNRoutingTypes.html#vpn-route-priority
Route tables determine where network traffic ...
- 822
4
votes
Not getting faster Internet speed after aggregation of two Verizon gateways
You cannot aggregate links in the way you attempt to do.
First of all:
802.3ab is Gigabit Ethernet. It's not a aggregation protocol.
802.3i is 10Mb Ethernet.
802.3u is 100Mb Ethernet.
802.3x is Full ...
- 5,178
3
votes
How to configure routing between Azure virtual networks?
Azure has introduced vNet Peering if you do not want to bother with VPN every time you want to connect 2 networks :
https://docs.microsoft.com/en-us/azure/virtual-network/create-peering-different-...
- 163
3
votes
How to find the gateway IP address in Linux
Since iproute2 4.14.1, you can also output JSON for a lot of commands.
So this would work:
ip -j route show 0.0.0.0/0 dev <interface> | jq -r '.[0].gateway'
In your case:
ip -j route show 0.0.0....
- 161
3
votes
OpenVPN make redirect-gateway optional
There is a newer, easier solution for this, as of December 2016.
You just need to put this line in your OpenVPN config:
pull-filter ignore redirect-gateway
Literally, it filters the options it pulls ...
- 778
3
votes
IPv6 default gateway route disappear after reboot
Possibly these sysctl settings might help you?
net.ipv6.conf.all.autoconf=0
net.ipv6.conf.all.accept_ra=0
- 304
3
votes
Combining two subnets with same default gateway
You have a few obvious choices.
Choice 1: Add a link (VLAN trunk or separate physical interface) to your router with an address in the 192.168.90.0/24 subnet. Config your router's address on that ...
- 15.5k
3
votes
Debian - One Gateway 2 interfaces how to?
The LAN interface of your gateway VM should not have a gateway defined in /etc/network/interfaces. The gateway represents the default route to the Internet, and you have only one such route (via WAN, ...
- 240k
3
votes
Accepted
Is it possible to have a windows CE static IP assigned with a non-specific gateway?
I don't know if Windows CE is somewhat different (it shouldn't), but in any Windows system you can assign multiple static IP addresses and gateways to a NIC:
- 69.3k
3
votes
Different gateways for different IPs on same interface on Linux
Right. Basically, it should look like this (from the working system with two ethernet links):
admin@mamba:~$ ip route show table all
default via 192.168.10.254 dev eth1 table admin
192.168.10.0/24 ...
- 2,350
3
votes
Accepted
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 ...
- 5,607
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
gateway × 592networking × 136
routing × 114
linux × 80
vpn × 55
iptables × 49
router × 49
openvpn × 44
ip × 38
route × 36
firewall × 33
linux-networking × 29
subnet × 28
azure × 24
proxy × 24
nat × 24
windows × 23
ubuntu × 22
dhcp × 20
domain-name-system × 17
debian × 14
cisco × 14
nic × 14
ip-routing × 14
vlan × 13