alias.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. IP-Aliasing:
  2. ============
  3. IP-aliases are an obsolete way to manage multiple IP-addresses/masks
  4. per interface. Newer tools such as iproute2 support multiple
  5. address/prefixes per interface, but aliases are still supported
  6. for backwards compatibility.
  7. An alias is formed by adding a colon and a string when running ifconfig.
  8. This string is usually numeric, but this is not a must.
  9. o Alias creation.
  10. Alias creation is done by 'magic' interface naming: eg. to create a
  11. 200.1.1.1 alias for eth0 ...
  12. # ifconfig eth0:0 200.1.1.1 etc,etc....
  13. ~~ -> request alias #0 creation (if not yet exists) for eth0
  14. The corresponding route is also set up by this command.
  15. Please note: The route always points to the base interface.
  16. o Alias deletion.
  17. The alias is removed by shutting the alias down:
  18. # ifconfig eth0:0 down
  19. ~~~~~~~~~~ -> will delete alias
  20. o Alias (re-)configuring
  21. Aliases are not real devices, but programs should be able to configure and
  22. refer to them as usual (ifconfig, route, etc).
  23. o Relationship with main device
  24. If the base device is shut down the added aliases will be deleted
  25. too.