Questions tagged [route]

A route is the path through the network packets take in order to reach their destinations. The route command lets the user view and modify the IP routing table

351 questions
38
votes
1 answer

netplan generate: `gateway4` has been deprecated, use default routes instead

When using netplan generate I kept on getting an error message: gateway4 has been deprecated, use default routes instead. For static IP address assignments in netplan, I've always used the structure: network: version: 2 renderer: networkd …
erwin
  • 1,723
  • 1
  • 9
  • 18
28
votes
2 answers

How to delete an IP route?

How to delete a route like the one below from a UNIX server? 122.252.228.38/255.255.255.255 122.252.228.38 UH 0 lan4 4136
Nagaraj Ganne
  • 301
  • 1
  • 3
  • 3
28
votes
2 answers

Which order is the route table analyzed in?

On my PC I have to following routing table: Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0 192.168.1.0 0.0.0.0 255.255.255.0 …
zer0uno
  • 1,273
  • 4
  • 16
  • 15
24
votes
2 answers

How to add ipv6 default route

I have the following setup Linux 1 Linux 0 eth1 eth0-------------------eth0 14.14.14.80 19.19.19.20 19.19.19.10 2005::5/64 2004::3/64 2001::3/64 From Linux0,…
kishore .
  • 455
  • 1
  • 3
  • 10
23
votes
6 answers

Why can't I ping Google?

I can't ping google.com (unknown host). But I can ping IP addresses. I tried to ping the IP address of Google but it doesn't work. resolv.conf nameserver 8.8.8.8 nameserver 209.139.209.33 ifconfig -a eth0 Link encap:Ethernet HWaddr…
az93
  • 857
  • 4
  • 9
  • 9
22
votes
1 answer

What is the GNU/Linux equivalent of BSD's "route get ..."?

The BSD route command has a feature that will show what route will be selected for a given host. For example: /Users/mhaase $ route get google.com route to: iad23s07-in-f8.1e100.net destination: iad23s07-in-f8.1e100.net gateway: 10.36.13.1 …
Mark E. Haase
  • 451
  • 2
  • 5
  • 12
19
votes
1 answer

proper syntax to delete default route for a particular interface?

summary: me@client:~$ sudo route del default ppp0 SIOCDELRT: No such process me@client:~$ sudo route del default dev ppp0 SIOCDELRT: No such process me@client:~$ sudo route del -net default dev ppp0 SIOCDELRT: No such process me@client:~$ sudo route…
TomRoche
  • 1,275
  • 3
  • 15
  • 29
18
votes
2 answers

iptables --set-mark - Route diferent ports through different interfaces

Short story, 3 interfaces, eth0 (LAN), eth1(ADSL), eth2(4G). eth0 -> eth1: Works (ports 80, 443, 4070) eth0 -> eth2: Doesn't happen This is a graphical representation of the idea: Port 80 & 443 via eth2 ant the rest via eth1 Netscheme: eth0: -ip…
Torxed
  • 3,567
  • 7
  • 27
  • 44
17
votes
2 answers

What is the best way to add a permanent route?

I need to add a route that won't be deleted after reboot. I read these two ways of doing it : Add ip route add -net 172.X.X.0/24 gw 172.X.X.X dev ethX to the file /etc/network/interfaces or Create the file /etc/network/if-up.d/route…
Pozinux
  • 1,305
  • 5
  • 16
  • 27
14
votes
1 answer

Where is routing table stored internally in the Linux kernel?

When I execute route -n, from where exactly (from which structs) is the information displayed retrieved? I tried executing strace route -n but I didn't help me finding the right place it's stored.
syntagma
  • 12,091
  • 21
  • 57
  • 74
13
votes
1 answer

Set persistent routing table on Debian

I have modified my routing table by deleting one rule, and adding two new rules for my second interface eth1: route del -net 10.1.2.0 netmask 255.255.255.0 route add -host 10.1.2.51 eth1 route add -host 10.1.2.52 eth1 I want the rules to survive…
Martin Vegter
  • 69
  • 66
  • 195
  • 326
13
votes
2 answers

What's the meaning of `linkdown` and `onlink' in Linux Route?

When I typed ip route show: What does linkdown actually mean? Sometimes I can still see onlink. Also want to know what onlink means. Does it affect the routing priority? For example, the case of two default routes in the picture
DanoR
  • 143
  • 1
  • 1
  • 4
13
votes
1 answer

How To Make All Traffic To Go Through One Interface In Linux

I have a self-written interface tun0 (TUN/TAP based) that outputs what it receives. I need all traffic of the system to flow through this interface. The role of the interface is: To figure out packets likely to be censored and tunnel them. Pass all…
ilyaigpetrov
  • 143
  • 2
  • 11
12
votes
3 answers

Command route not found

I can' t use the command route: route bash: route: command not found Why is it not found? (I'm using debian 9). I tried to run it as root but it still does not work. However it is supposed to work also without root. Additional…
Scorpion
  • 737
  • 1
  • 7
  • 18
11
votes
3 answers

how to ping & use specific network card

i have 3 network cards , 1 Lan (wired) , 1 wireless network card & 1 is wireless usb how do i ping from specific network card ? & how do i use specific network card for specific application example i want to ping google from wlan1 example for…
One Zero
  • 211
  • 1
  • 2
  • 5
1
2 3
23 24