Questions tagged [static-routes]

Manually configured entries in the routing table.

Filter by
Sorted by
Tagged with
32 votes
6 answers
270k views

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

I am using the following command to add a route, but the metric isn't working the way I want it to. I want the route I am adding to have a lower cost. C:\Users\cboyle>route ADD 0.0.0.0 MASK 0....
Corey's user avatar
  • 2,081
21 votes
2 answers
174k views

Specify route to an interface in Windows cmd

I have a computer with 2 network interfaces. One interface is connected to LAN network with IP 192.168.0.254, and the other is connected to a recorder server (192.168.0.233). 192.168.0.10 is the ...
Davi GN's user avatar
  • 313
19 votes
5 answers
87k views

Windows static routes w/o specifying gateway (next hop)

I have the following scenario: Computer A: 198.51.100.8, netmask 255.255.255.0 Computer B: 203.0.113.9, netmask 255.255.255.0 Both computers are on the same LAN segment; no default gateway is ...
fission's user avatar
  • 3,651
13 votes
2 answers
136k views

How should I bridge two networks, given each network has its own subnet & DHCP server?

I would like to join/bridge two different networks, network 1 and network 2: Network 1: A network consisted of a Linux box (with one ethernet) port and multiple clients (connected via LAN switch). ...
Arya S.'s user avatar
  • 141
10 votes
3 answers
66k views

Windows 7: Route single IP over different interface (wlan)

I am connected via Ethernet (10.1.1.1, interface 11) as well as via Wireless LAN (172.22.12.1, interface 12). I trying to route just a certain host (140.239.191.10 - which is whatismyipaddress.com for ...
Dennis G's user avatar
  • 628
9 votes
1 answer
8k views

CentOS, two nics eth0 eth1 with different subnets aren't reachable outside VLAN/subnet

I am having an issue with a CentOS 6.3 box. We have two NICs (eth0 and eth1) in the server which each have an ip from a different subnet assigned, let's say eth0:192.168.1.2/24 (gateway 192.168.1.1) ...
Scott's user avatar
  • 163
8 votes
3 answers
5k views

Do not allow domain computers to communicate with each other

Our domain consists of around 60 computers. I have been tasked with making sure that Windows 10 workstations cannot communicate with each other. My manager asked that I create static routes so ...
taiwie's user avatar
  • 83
7 votes
3 answers
22k views

Linux adds the wrong default route

For some reason my Centos 5.9 Linux 2.6.18 x86_64 wants me to have two default routes. Whenever I reboot the server, my routing table looks like this: [root@server1 ~]# route -n Kernel IP routing ...
Zoon's user avatar
  • 171
7 votes
3 answers
11k views

How to automatically assign a route to client in Windows Server PPTP VPN?

Is there a way to configure PPTP VPN on Windows Server which automatically tells the client to add a route for the private network? I have to do it manually on every PC (once) using following command ...
splattne's user avatar
  • 28.6k
6 votes
1 answer
6k views

Routing setup for OpenVPN server on Amazon EC2

Software developer here, trying to get his sysadmin-foo up and running by setting up an OpenVPN server on amazon EC2 to access all the internal resources there. Here's how I envision that on a fresh ...
peritus's user avatar
  • 163
5 votes
4 answers
4k views

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

I try to setup Ubuntu with full disc encryption on top of Hetzner Cloud. I got everything to work except the network connection in initramfs. Thanks to the UI console its possible to unlock, but I ...
user2638109's user avatar
5 votes
1 answer
1k views

CCNA Case Study - Static Routes

I'm currently doing the CCNA (Cisco Certified Network Associate) course at school and am a bit stuck on my case study, so I was wondering if anyone could help. I have the following topology: I have ...
DJDMorrison's user avatar
5 votes
1 answer
12k views

RedHat 7: SIOCDELRT: No such process

[user@telco-aa1]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default gateway 0.0.0.0 UG 100 0 0 ...
Brian Harkness's user avatar
5 votes
1 answer
502 views

Route traffic directly between nodes in a cluster

I apologize if this is a really dumb question. Objective Ensure that traffic that is meant to go between nodes in a cluster does not (inefficiently) go outside the cluster and then come back in, but ...
Chris Dutrow's user avatar
5 votes
2 answers
4k views

Routing using Linux with 2 NIC cards

Configured Clear OS to be in Gateway mode on a machine with two NIC cards. eth0:192.168.2.0/24 with ip 192.168.2.27 which is connected to a modem and thus have internet connectivity. eth1:192.168....
Kevin Parker's user avatar
4 votes
3 answers
256 views

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

I have a VPN, and my server frequently sends data to a private IP address that routes over the VPN. When the OpenVPN gets established or dies, it enables/disables the routes. I want to null-route ...
Crash Override's user avatar
4 votes
2 answers
13k views

Static Routes on Windows - Computer with two NICs connected to two routed networks

I asked this on another site recently, but I figured this might be a good place to ask this as well: Please take a look at the diagram below. My question is in regards to computer "C" in the middle ...
jstevens13's user avatar
3 votes
1 answer
6k views

Linux static route configuration via DHCP

I have a bunch of RedHat VMs that I need to set a static IPv4 routing table. I want to centralize this configuration and it came to my mind the DHCP service that could provide this information (see ...
Mircea Vutcovici's user avatar
3 votes
2 answers
19k views

Add static route (default gateway) on Ubuntu 16.04 server

I have set up Ubuntu 16.04 VM server, and I'm trying to change default GW on it. (all traffic should be redirected to another gw - because of whitelisting problems). Incoming traffic will come from ...
Goran Keleković's user avatar
3 votes
2 answers
1k views

Automatically set static routes between two networks without dhcp or default gateway

I have a windows domain network with two different subnets. Both are connected trough VPN gateways. DHCP and default gateway is an exiting router blackbox. Unfortunately I have very limited control ...
Roman's user avatar
  • 392
3 votes
1 answer
17k views

Static route in conflict with a route

I have a route configured. 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.1 I'd like to add a static route to pass traffic destined for 192.168.1.51 via a load balancer's redundant ...
Athanasios's user avatar
3 votes
2 answers
9k views

Setting a default gateway which is on a different subnet

I work in a company which uses 3 subnets, 10.0.0.0/16, 10.1.0.0/16 and 10.2.0.0/16. The 3 subnets are connected using layer 3 switches (10.0.100.200, 10.1.100.200, 10.2.100.200), all of the machines ...
Rumbles's user avatar
  • 1,014
3 votes
1 answer
1k views

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

this one bugs me for a couple of days now and I cannot find a solution. Sorry for the strange title. This isn't my main field of work and I currently cannot think of a better title. Some facts: I'm ...
malte's user avatar
  • 326
3 votes
1 answer
8k views

what is the "ip route" equivalent of "route add -host" in linux?

Specifically, route add -host allows me to specify the host via hostname to add a route to a host, e.g., route add -host www.google.com gw 192.168.1.1 However, I cannot find a way to do this using ...
Chris Cleeland's user avatar
3 votes
0 answers
388 views

Multiple Subnet, Same Gateway

I have a nexus3000 switch that has a L3 connection with an uplink switch. (172.18.186.129-130/30) ... In downlink, I have multiple servers and VLANs and I have a range of IP-addresses (172.18.186.0/...
Ryan's user avatar
  • 31
2 votes
3 answers
10k views

choose the outgoing interface for a default route

I have a FreeBSD 8.0 virtual box with two ethernet interfaces, em0 and em1. em0 is 192.168.1.99 and em1 is 192.168.1.100. Both are "Attached to: Bridged Adapter". When both are up, if I say # route ...
nc3b's user avatar
  • 153
2 votes
2 answers
603 views

Default route not on LAN

I have a network that in principle looks like this: H1---\ /----Inet1 H2---->---GW1---< H3---/ \----GW2-----Inet2 H1 and H2 = Hosts that need access to internet with GW1 ...
Jarmund's user avatar
  • 535
2 votes
2 answers
1k views

What routing protocol to use with MPLS?

My MPLS provider is giving us a choice to use static routes or BGP for our new MPLS setup. What are advantages/disadvantages of the 2 choices? What is more commonly used?
Alex's user avatar
  • 1,868
2 votes
6 answers
10k views

How to force IE to choose a network card in Windows?

I have 2 network cards each connecting to a different network. For some web sites I need to force IE to use a particular one. How could this be done? P.s. This is NOT VPN related. Both network ...
yyyykk's user avatar
  • 41
2 votes
3 answers
9k views

Static-to-OSPF Route Redistribution

Is it possible to use redistribution of static-to-ospf in order to create an external OSPF route other than the type E2? Does this process only create a type 5 LSA and can any other LSA types be ...
THE DOCTOR's user avatar
2 votes
1 answer
8k views

Iproute2: Routing with multiple networks and multiple gateways

I have a Linux box running Ubuntu 10.04 with three interfaces: eth0, eth1 and eth2. I am planning to use it as a WAN router for 4 public subnets assigned by two different ISP's. Here are the subnets (...
nixnotwin's user avatar
  • 1,553
2 votes
3 answers
254 views

What does this route map modification mean?

I've inherited administration duties for a firewall/gateway server, and I'm trying to understand what a particular static route setup in rc.local means: ... route add 123.123.123.123/30 10.10.3.14 ...
Chris R's user avatar
  • 533
2 votes
3 answers
386 views

Collecting routing information from RIPE?

I would like a way of collecting ip blocks for known networks in the RIPE database. Take this search result as an example: http://www.db.ripe.net/whois?form_type=simple&full_query_string=&...
baloo's user avatar
  • 135
2 votes
1 answer
1k views

Static Route for Windows

I have a network as follows. Router->Windows Server->Clients I want to be able to be on the LAN of the router and access the clients who are on a different subnet behind the Windows Server with ...
soniccool's user avatar
  • 181
2 votes
2 answers
859 views

OpenVPN client lan to reach Server lan

I have OpenVPN Server running in VPC and client running in office network. Have following table on 10.24.11.37 # route -n Kernel IP routing table Destination Gateway Genmask ...
rp346's user avatar
  • 131
2 votes
1 answer
1k views

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

The RFC for Neighbor Discovery (RFC4861), in section 8 states: "A router MUST be able to determine the link-local address for each of its neighboring routers in order to ensure that the target ...
networkIT's user avatar
2 votes
1 answer
2k views

Centos 6.2 Fresh 'Basic Server' install networking issues

I've had a /29 provisioned on a network port for a server and am trying to at least configure the machine so I can ssh into it. It's Centos 6.2 x64 with the Basic Server install. Currently not able to ...
rwc's user avatar
  • 316
2 votes
2 answers
1k views

Connecting two networks together with OpenVPN

I have two Debian boxes sitting on two separate networks. I am trying to set up an OpenVPN link across the internet between the two and I've hit a little roadblock. I would like to set this up so ...
muncherelli's user avatar
2 votes
1 answer
667 views

Static routes for making hosts on different network accessible

I have a ubuntu router machine with following network settings: br0 192.168.1.15 netmask 255.255.255.0 br0:1 192.168.2.209 netmask 255.255.255.248 I have a pc attached to the br0:1 network with ...
nixnotwin's user avatar
  • 1,553
2 votes
1 answer
1k views

Mac OS X 10.5.8 Server - How to save static route

I can use the command: sudo route add 93.***.***.***/29 192.168.1.1 This adds the route that I want but its not persistant as in when I reboot the server the route needs to be re-added. There doesnt ...
Scott's user avatar
  • 359
2 votes
3 answers
9k views

pfSense - Traffic to subnet not being routed by static route

pfSense version: 2.3.4-RELEASE We recently converted over from a WatchGuard firewall to use pfSense. We've almost got everything working the way that we want it but there's this small thing that we ...
greyseal96's user avatar
2 votes
2 answers
15k views

AWS VPN Tunnel going down without traffic

I managed to setup a site-to-site VPN connection from Amazon VPC to a company's network, and after a lot of configuration it was working fine, but now i realized that the VPN tunnel is DOWN every time ...
Asfura's user avatar
  • 21
2 votes
2 answers
12k views

Adding a static route to a virtual interface using configuration files rather than ip command

We statically assign our routes using the /etc/sysconfig/network-scripts/route-ethx files. This makes managing them fairly easy since we add the routes during the kickstart process (by way of post-...
theillien's user avatar
  • 449
2 votes
3 answers
3k views

help with a static route on centos 5.6 please

I currently have a machine connected to a LAN and to the internet working fine. I now got a dedicated connection to a remote office and must create a route from my machine to specifically 1 machine on ...
gkrawiec's user avatar
2 votes
2 answers
1k views

Problem linking two Cisco routers with a static route

I'm trying to link two Cisco routers with a static route and I haven't been able to get it working as expected. Here is the basic setup: Router 1 - WRV210 - 192.168.1.1 - connected to cable modem ...
Chris Kaczor's user avatar
2 votes
0 answers
241 views

Routes in route6-eth0 don't apply [closed]

I made a file /etc/sysconfig/network-scripts/route6-eth0 with the following contents: default dev eth0 src ****:****::**** metric 50 pref medium However, it doesn't show up when I execute ip -6 route:...
Bas's user avatar
  • 21
2 votes
2 answers
2k views

Static route in initramfs

My hosting provider unfortunately requires the use of static routes for network configuration (gateway is on a different subnet than the host IP). For that purpose I added the following lines to the ...
Alec Hans's user avatar
2 votes
1 answer
2k views

Can not add static route in my Ubuntu, SIOCADDRT: Network is unreachable

I'm trying to add a static route in my VPS to a client that is on the other side of the VPN tunnel to my VPS and forwards it's traffic through the tunnel. This is the setup of my destination that I'm ...
Bahador's user avatar
  • 21
2 votes
1 answer
427 views

how to configuring secondary IP subnet that is directly routed to WMware ESXI main IP

I have a ESXI 5.1 which comes with a /29 Block IP (EX. 70.60.50.0/29) and the ESXi management address is frist usable addres 70.60.50.2, also i have a secondary /27 IP block (10.20.30.0/27) which is ...
Reza Bagh's user avatar
2 votes
0 answers
239 views

Static routes in Azure

I have a router that I have a VPN tunnel built and functioning between an Azure Virtual Network and a local router interface. On the router I have 5 VLANs for various purposes, they are like this. ...
NSH's user avatar
  • 51