在Redhat早期的版本中, 有linuxconf 、redhat-config-network 、netconfig 等工具; 在Redhat/Fedora 最新的版本有 system-config-network-tui (文本模式的) 、system-config-network (图形模式的),netconfig(文本模式的)。

这些工具都会直接修改Linux系统中关于网络接口的配置文件;这是 Linux ifconfig 所不能比的; 其中 redhat-config-network 和system-config-network工具不仅仅是配置网卡的工具,还有配置ISDN和普通猫、ADSL的工具、网络硬件的添加、主机名字的配置、DNS各客户端的配置等。其实是一个工具组的集成;

这些工具比较简单,以root权限运行命令就能调用,比如:

  1. [root@localhost ~]# /usr/sbin/system-config-network
  2. [root@localhost ~]# system-config-network

如果您设置了可执行命令的环境变量,不用加路径就可以运行,但前提是您得安装这个网络管理工具; 不过值得一说的是netconfig 工具是一个在文本模式比较好的工具,推荐大家使用;理由是这个工具在文本模式下,也有一个简单的图形界面;还有命令模式;功能强着呢;

  1. [root@localhost ~]#  netconfig -d eth0  注:配置eth0
  2. [root@localhost ~]#  netconfig -d eth1  注:配置eth1

4.23 Redhat/Fedora系统中的netconfig 特别介绍;

netconfig这个工具,在Redhat/Fedora 或类似于它们的系统中都是存在的,这个工具比较强大。所以特别介绍一下。但在Slackware中netconfig是TEXT模式下有一个图形模式,但不能象Linux ifconfig一样用命令来操作网卡接口;

netconfig 的用法如下:

  1. [root@localhost ~]# netconfig --help  注:帮助;
  2. --bootproto=(dhcp|bootp|none)     Boot protocol to use(
  3. --gateway=STRING        Network gateway(指定网关)
  4. --ip=STRING   IP address(指定IP地址)
  5. --nameserver=STRING     Nameserver(指定DNS客户端)
  6. --netmask=STRING        Netmask(指定网络掩码)
  7. --hostname=STRING       Hostname( 指定主机名)
  8. --domain=STRING         Domain name(指定域名)
  9. -d, --device=STRING     Network device (指定网络设备)
  10. 10.   --nodns       No DNS lookups (没有DNS查询)
  11. 11.   --hwaddr=STRING         Ethernet hardware address (指定网卡的物理地址)
  12. 12.   --description=STRING    Description of the device (描述性文字)

13. Help options: (帮助选项)

  1. 14.   -?, --help    Show this help message
  2. 15.   --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

最新文章

  1. Unity3D 5.3 新版AssetBundle使用方案及策略
  2. 9.2.3 .net core 通过TagHelper封装控件
  3. SQL Server 诊断查询-(5)
  4. 内存泄漏,当您使用的 GetDC 方法和 ReleaseDC 方法 CWnd 类版本
  5. Android API在不同版本系统上的兼容性
  6. CentOS添加字体
  7. redmine配置邮件
  8. 如何开始使用bootstrap
  9. Eclipse 版本选择
  10. 【转】搭建spark环境 单机版
  11. linux下卸载已安装的软件
  12. JDK1.8源码(一)——java.lang.Object类
  13. 如何处理IO
  14. Robust Locally Weighted Regression 鲁棒局部加权回归 -R实现
  15. Kali学习笔记23:Web渗透简介
  16. vue 中this指向遇到的坑
  17. phpmailer SMTP Error: Could not connect to SMTP host. 错误解决
  18. Java入门:创建多个对象
  19. Linux 下shell中exec解析
  20. Python学习手册之正则表达式示例--邮箱地址提取

热门文章

  1. AtCoder F - Exhausted?
  2. jquery ajax 放在重复点击事件beforeSend方法
  3. Joomla - 部署(线上部署)
  4. 我喜欢Mouding
  5. 33 N皇后问题
  6. 转:Wireshark基本介绍和学习TCP三次握手
  7. robocopy——Windows下的高效文件拷贝
  8. Android 开发 防止按键连续点击
  9. [转]C#设计模式(8)-Builder Pattern
  10. DB-SQLServer:SQLServer