Cmd Generator

ifconfig

配置网络接口。

ifconfig

示例

# 显示所有接口
ifconfig -a

# 设置 IP 地址
ifconfig eth0 192.168.1.10 netmask 255.255.255.0

# 启用接口
ifconfig eth0 up

# 禁用接口
ifconfig eth0 down

# 设置 MTU
ifconfig eth0 mtu 1500

Sponsors