在Linux系统中,把本机IP地址更改为192.168.1.1的正确命令是()。

免费题库2022-08-02  36

问题 在Linux系统中,把本机IP地址更改为192.168.1.1的正确命令是()。A.[/root]#ipconfig eth0 up 192.168.1.1B.[/root]#ifconfig eth0 192.168.1.1 upC.[/root]#ipconfig 192.168.1.1 upD.[/root]#ifconfig 192.168.1.1 up

选项 A.[/root]#ipconfig eth0 up 192.168.1.1
B.[/root]#ifconfig eth0 192.168.1.1 up
C.[/root]#ipconfig 192.168.1.1 up
D.[/root]#ifconfig 192.168.1.1 up

答案 B

解析 Ifconfig命令用于Linux系统中查看和更改网络接口的地址和参数,包括IP地址、网络掩码、广播地址,使用权限是超级用户。格式如下: ifconfig -interface [options] address 主要参数: -interface:指定的网络接口名,如eth0和eth1。 up:激活指定的网络接口卡。 down:关闭指定的网络接口。 broadcast address:设置接口的广播地址。 pointopoint:启用点对点方式。 address:设置指定接口设备的IP地址。 netmask address:设置接口的子网掩码。
转载请注明原文地址:https://tihaiku.com/congyezige/2431818.html

最新回复(0)