Thursday, 20 October 2016

Adding IP aliases in FreeBSD - Freebsd ifconfig add Remove Alias IPv4 / IPv6 / inet6

FreeBSD Assign IPv4 address
: # ifconfig em0 inet 192.168.10.5 netmask 255.255.255.0
FreeBSD ifconfig add alias for IPv4
: # ifconfig em0 inet 192.168.10.10/24 add
FreeBSD ifconfig remove alias for IPv4
: # ifconfig em0 inet 192.168.10.10/24 -alias
For IPv6
FreeBSD Enable IPv6 functionality of the interface:
: # ifconfig em0 inet6 -ifdisabled
FreeBSD Add the IPv6 address 2001:DB8:DBDB::123/48 to the interface em0:
: # ifconfig em0 inet6 2001:db8:bdbd::123 prefixlen 48 alias
FreeBSD ifconfig remove/delete Alias for IPv6 inet6
: # ifconfig em0 inet6 2001:db8:bdbd::123/48 delete

2 comments:

  1. Je vous invite à vous informer sur l'affaire jean jacque perrut ici

    ReplyDelete
  2. This is a concise and practical guide to configuring IP aliases in FreeBSD. I appreciate how it explains both the temporary ifconfig method and the persistent /etc/rc.conf configuration, making it useful for system administrators managing multiple IP addresses on a single interface. A clear, well-structured article that serves as a valuable reference for FreeBSD networking tasks.
    Family Taxi Perth
    airport drop off service
    emergency boiler response training

    ReplyDelete