FREEBSD Add IP under a network card

zhaozj2021-02-16  173

Add IP alias on the BGE0 network card:

ifconfig bge0 add alias xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx UP

Note: The setting of the mask here is such that the first IP mask of the same network break is set according to the real mask. When adding IP below this network segment, the mask is 255.255.255.255! Remember!

Delete IP alias on the BGE0 network card:

Ifconfig bge0 -alias xxx.xxx.xxx.xxx

转载请注明原文地址:https://www.9cbs.com/read-8938.html

New Post(0)