FreeBSD

FreeBSD: Добавить описание к сетевому интерфейсу

Для добавления описания к интерфейсу нужно в rc.conf прописать:

ifconfig_vr0="inet 192.168.0.1/24 description Inet"
ifconfig_nfe0="inet 192.168.1.1/24 descr Local"

Можно использовать description или descr

Если нужно применить находу:

# ifconfig vr0 descr Inet
# ifconfig nfe0 descr Local

Проверяем что получилось:

# ifconfig
vr0: flags=8943 metric 0 mtu 1500
        description: Inet
        options=82808
        ether 00:19:5b:55:2a:e5
        inet6 fe80::219:5bff:fe72:2ae5%vr0 prefixlen 64 scopeid 0x2
         nd6 options=29
        media: Ethernet autoselect (100baseTX )
        status: active
nfe0: flags=8943 metric 0 mtu 1500
        description: Local
        options=8210b
        ether 00:1a:82:33:f9:34
        inet6 fe80::21a:92ff:fe33:f934%nfe0 prefixlen 64 scopeid 0x3
        nd6 options=29
        media: Ethernet autoselect (1000baseT )
        status: active

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments