Questions tagged [route]

Command line tool for manipulating and listing the routing table.

620 questions
12
votes
1 answer

How many custom route tables can I have on Linux?

I've been working with custom route tables on Linux, and I'm a bit confused by some of the documentation and behavior of the "ip route" command. It seems that the only valid values should be 0-255 plus the names defined in…
Bob
  • 223
  • 1
  • 2
  • 5
12
votes
3 answers

Pick the default network interface

I have a server with 2 interfaces. eth0 is 100 times faster than eth1. Though for some reason, every reboot, the default interface is picked at random. To make things more annoying, they both use the same gateway, so selecting the default gateway…
user163365
  • 371
  • 1
  • 2
  • 9
11
votes
2 answers

How can I configure my DHCP server to distribute IP routes?

I have a DHCP server (Linux, IPCop, dnsmasq) running on my default gateway server 192.168.0.1. I have a VPN endpoint on another server in the network (192.168.0.4). Is it possible to configure the DHCP server so it sends not only the default gateway…
blerontin
  • 404
  • 1
  • 5
  • 13
11
votes
4 answers

How to check a route exist between two hosts for a particular port?

How to check whether there is a route between two hosts for a particular port (e.g. 1433).
ohho
  • 1,005
  • 8
  • 19
  • 34
11
votes
1 answer

Change default route to DHCP interface without a route push?

How can I change the default route to utilize eth1 (DHCP), instead of eth0 (static)? I want this to be a permanent solution persistent through reboots. Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use…
Jon Skarpeteig
  • 951
  • 2
  • 14
  • 29
11
votes
2 answers

What does this linux command mean "route add -net 224.0.0.0 netmask 240.0.0.0 eth0"

Could somebody explain what exactly this command means in relation to transmitting and receiving multicast traffic route add -net 224.0.0.0 netmask 240.0.0.0 eth0
smicjk
  • 113
  • 1
  • 1
  • 5
10
votes
1 answer

How to tunnel all Internet traffic via SoftEther?

My intention is to route all Internet traffic via a remote machine behind multiple NATs. The ISP's NAT servers are not under my control. I do control my own NAT server, which is a local router. Both server and client are running Windows 7 (client -…
Sergiy Belozorov
  • 171
  • 1
  • 2
  • 10
9
votes
1 answer

OpenBSD route via different gateways which have same IP but on different interfaces

I have multiple VPN connections which use the same gateway IP (I do not have the ability to change this as it is out of my control). These VPNs all provide access to different networks, and the networks are at least one or two hops upstream, so a…
bao7uo
  • 1,704
  • 12
  • 24
9
votes
3 answers

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 testing purposes) via the wlan instead of the…
Dennis G
  • 598
  • 3
  • 8
  • 20
8
votes
1 answer

ip rule and route doesn't get respected

I'm trying to route packets based on their source address, and have added the following: # ip rule add from 10.10.10.0/16 dev eth0 table foobar # ip route add default via 100.100.100.1 dev eth0 table foobar Testing the routing however gives me…
Alfred Balle
  • 409
  • 3
  • 9
  • 22
8
votes
3 answers

What is the local routing table used for?

I am trying to understand what is the local routing table. If I add a random address in it with the following command: sudo ip route add to local dev Now I can ping this address, but no interface listed by…
Lilás
  • 213
  • 1
  • 3
  • 5
8
votes
2 answers

Stop local emails being sent to relay host with postfix

I've recently signed up to SMTP2GO (smtpcorp). I've setup postfix on one of EC2 servers and have pointed it to my smtp2go account: relayhost = [smtpcorp.com]:2525 Now all my mail is being routed through SMTP2GO, but the issue is, that the 1000+…
user149631
  • 83
  • 1
  • 1
  • 4
8
votes
1 answer

Listing the routing table takes long time to complete

When I print routes defined on my computer using route, it takes about 5 to 20 seconds to complete. Why does it take so much time? With VPN enabled: $ time sudo route Kernel IP routing table (...) real 0m21.423s user 0m0.000s sys…
Rafał Rawicki
  • 187
  • 1
  • 7
7
votes
3 answers

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 table Destination Gateway Genmask …
Zoon
  • 171
  • 1
  • 1
  • 4
7
votes
4 answers

AWS VPC internet gateway and AWS services

Am I doing something wrong or is the AWS VPC ec2 instances not able to reach any of the AWS managed services (s3/sns/sqs) without a public route to the Internet Gateway in the routetable? I was told here Aws vpc default route table in CloudFormation…
Sleeper Smith
  • 523
  • 1
  • 4
  • 11
1
2
3
41 42