当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > linux命令行(文本模式)下配置网络

Unix/Linux
在Linux系统下面架设Sendmail服务器
Linux操作系统下NFS服务的搭建过程
Linux操作系统下SAMBA服务的搭建过程
使用 Linux 应用服务器场的远程计算
高效配置Linux代理服务器 Squid介绍
基于Fedora Core NFS服务器搭建过程
sendmail+squirrelmail设置邮件服务器
用VSFTPD搭建FTP服务器
Linux操作系统高性能集群监控管理之道
在Centos5环境下搭建安全的SSH服务器
实例解析 DHCP服务器单子网配置应用
Linux系统服务器网络安全管理小技巧
Debian学习 Linux系统服务器的搭建方法
NFS(网络文件系统)的建立与配置方法
Linux上的heartbeat双机热备服务架设
基于Linux系统服务器优化及安全配置
高手进阶 Linux架设最简单的VPN系统
Linux系统服务器安装后的安全配置
Linux下配置NTP 架设本地时间服务器
Linux服务器集群系统实现方案解析

Unix/Linux 中的 linux命令行(文本模式)下配置网络


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-15   浏览: 101 ::
收藏到网摘: n/a

除了通用的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