User Tools

Site Tools


wiki:ip_-_the_ifconfig_replacement

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:ip_-_the_ifconfig_replacement [2016/11/15 19:34] walkeradminwiki:ip_-_the_ifconfig_replacement [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== IP - the ifconfig replacement ======+====== IP - The ifconfig replacement ======
 \\  \\ 
 \\  \\ 
Line 108: Line 108:
 \\  \\ 
 \\  \\ 
 +\\  
 +==== Managing the Routing Table ==== 
 +\\  
 +With the ip command you can also manage the system’s routing tables. This is a very powerful element of the ip command, and you should use it with caution. 
 +\\  
 +\\  
 +Suppose you want to view all routing tables. To do this, you would issue the command: 
 +\\  
 +    ip r 
 +\\  
 +The output of this command will look like that shown in Figure 2. 
 +\\  
 +Now, say you want to route all traffic via the 192.168.1.254 gateway connected via eth0 network interface: To do that, issue the command: 
 +\\  
 +    ip route add 192.168.1.0/24 dev eth0 
 +\\  
 +To delete that same route, issue: 
 +\\  
 +    ip route del 192.168.1.0/24 dev eth0 
 +\\  
 +\\  
 +This article should serve as merely an introduction to the ip command. This, of course, doesn’t mean you must immediately jump from ifconfig. Because the deprecation of ifconfig has been so slow, the command still exists on many a distribution. But, on the occasion of ifconfig finally vanishing from sight, you’ll be ready to make the transition with ease. For more detailed information on the ip command, take a look at the ip man page by issuing the command man ip from a terminal window. 
 +\\  
 +\\  
 +\\  
 +This article was taken from [[https://www.linux.com/learn/replacing-ifconfig-ip]] 
 +\\  
 +\\ 
  
 <color red></color> <color red></color>
wiki/ip_-_the_ifconfig_replacement.1479238491.txt.gz · Last modified: 2023/03/09 22:35 (external edit)