User Tools

Site Tools


wiki:add_additional_ip_address_interface

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:add_additional_ip_address_interface [2025/10/14 12:20] – [Adding routes] add info about Network unreachable antisawiki:add_additional_ip_address_interface [2026/01/15 18:41] (current) – [Adding routes] add RTNETLINK answers: Network is unreachable antisa
Line 2: Line 2:
  
 ====== Add additional ip address on interface ====== ====== Add additional ip address on interface ======
 +First make sure the interface is up:
  
 +  ip link set eth0 up
 +
 +then add an address:
   ip addr add 94.130.84.168/27 dev eth0   ip addr add 94.130.84.168/27 dev eth0
- 
- 
-  root@server:~# ip addr add 94.130.84.168/27 dev eth0 
  
 ///etc/network/interfaces// example (for persistence over reboot): ///etc/network/interfaces// example (for persistence over reboot):
Line 61: Line 62:
   # ip route add default via 15.235.15.254 dev br0   # ip route add default via 15.235.15.254 dev br0
   Error: Nexthop has invalid gateway.   Error: Nexthop has invalid gateway.
 +
 +or
 +
 +  RTNETLINK answers: Network is unreachable
 +
  
 You have to add a route to the gateway itself: You have to add a route to the gateway itself:
Line 77: Line 83:
   * [[set_up_ipv6_host_vm|Set up IPv6 on host and VM]] - example of IPv6 addresses and routes   * [[set_up_ipv6_host_vm|Set up IPv6 on host and VM]] - example of IPv6 addresses and routes
 ====== References ====== ====== References ======
 +  * https://access.redhat.com/sites/default/files/attachments/rh_ip_command_cheatsheet_1214_jcs_print.pdf
  
wiki/add_additional_ip_address_interface.1760444433.txt.gz · Last modified: by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki