手机
当前位置:查字典教程网 >操作系统 >RedHat/Centos >linux命令行(文本模式)下配置网络
linux命令行(文本模式)下配置网络
摘要:除了通用的ifconfig外,对于Redhat/Fedora发行版,有专用的配置工具-netconfig。比较而言,netconfig可以设...

除了通用的ifconfig外,对于Redhat/Fedora发行版,有专用的配置工具-netconfig。比较而言,netconfig可以设置IP获取方式(静态或者DHCP获取)等。 netconfig --help

Usage: netconfig [OPTION...]

--bootproto=(dhcp|bootp|none) Boot protocol to use

--gateway=STRING Network gateway

--ip=STRING IP address

--nameserver=STRING Nameserver

--netmask=STRING Netmask

--hostname=STRING Hostname

--domain=STRING Domain name

-d, --device=STRING Network device

--nodns No DNS lookups

--hwaddr=STRING Ethernet hardware address

--description=STRING Description of the device Help options:

-?, --help Show this help message

--usage Display brief usage message

实例一:设置网卡的DHCP模式自动获得IP [root@localhost ~]# netconfig -d eth0 --bootproto=dhcp

实例一:手动设置网卡的IP等 [root@localhost ~]# netconfig -d eth0 --ip=192.168.1.33 --netmask=255.255.255.0 --gateway=192.168.1.1

【linux命令行(文本模式)下配置网络】相关文章:

linux添加新硬盘的详细经过

Linux cat命令参数

RHEL5 Squid透明代理服务器配置过程详细说明

linux系统下邮件服务器sendmail的配置

redhat linux AS4 下配置无线网卡

Centos 6.4 64位版命令行下设置无线网卡教程

Linux系统下以模块方式安装卸载文件系统

让Linux操作系统开机默认进入文本模式

CentOS7系统进行IP和主机名的网络配置的过程图解

Unix/Linux 命令参考

精品推荐
分类导航