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/09 12:20] – add tags antisawiki:add_additional_ip_address_interface [2025/10/14 12:22] (current) – [Add additional ip address on interface] remove duplicate code 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 68: Line 69:
   ip route add default via 15.235.15.254 dev br0   ip route add default via 15.235.15.254 dev br0
  
 +If you get:
 +  connect: Network unreachable
 +when trying to ping an address, you have to add a default route.
 ====== Tested on ====== ====== Tested on ======
   *    * 
Line 74: Line 78:
   * [[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.1760012453.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