一、ifconfig 命令
功能说明:
用于查看和更改网络接口的地址和参数,包括IP地址、网络掩码、广播地址,使用权限是超级用户
格式:
ifconfig –interface [options] address
参数说明:
-interface:指定的网络接口名,如eth0和eth1
up:激活指定的网络接口卡。
down:关闭指定的网络接口。
broadcast address:设置接口的广播地址。
pointopoint:启用点对点方式。
address:设置指定接口设备的IP地址。
netmask address:设置接口的子网掩码
例子:
Ifconfig
Ifconfig eth0 192.168.66.127
Ifconfig eth0 down
Ifconfig eth0 up
二、其他网络命令