FreeBSD重启网卡

Posted by 4Aiur on 04/06/2010 in BSD |

FreeBSD重启网卡

# 本地重启:
ifconfig le0 down  #stop网卡
ifconfig le0 up  #start网卡

# 远程重启:
/etc/netstart
sh /etc/rc
/etc/rc.d/netif restart

# 重新获取dhcp地址:
/sbin/dhclient interface

Tags:

Copyright © 2010-2019 4Aiur All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.