system-config-network

You can also edit the following files and ‘service network restart’.

/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/resolv.conf

system-config-network is a GUI, isn’t it? (I don’t use it so I’m not sure.)
To make changes permanent, you would follow Gerald_Clark’s suggestions. There might also be a system-config-network-tui, IIRC, a text mode interface.

The syntax of what you want to do with ifconfig will only stay in effect until the machine is restarted but the commands are

To change eth0 to 192.168.1.20 with a 24 bit (25.255.255.0) netmask and a gateway of 192.168.1.1

ifconfig eth0 192.168.1.20 netmask 255.255.255.0 up
route add -net 192.168.1.0 netmask 255.255.255.0 eth0
route add default gw 192.168.1.1

(The up at the end of the first line and the route add -net line aren’t always necessary, but shouldn’t hurt anything.)

Or, the more modern ip command. (Seems that I read somewhere that ifconfig is deprecated and you’re supposed to use ip but I could be very wrong about that.)

ip addr add 192.168.1.20/24 dev eth0
ip route add default via 192.168.1.1

Now that you have the examples, take a look at the man page and see if you can figure out how it works. I remember, when I was new to all this, finding the man page somewhat difficult to follow for these three commands. Now, they seem simple to me, so it’s very difficult for me to judge. I do feel they would be better if they added examples like the various BSD ifconfig man pages do. Actually the ip command has a document (it’s in ps, so you probably have to use evince to view it) in /usr/share/doc/iproute that does give examples.

# echo 200 chao >> /etc/iproute2/rt_tables# ip rule add from 192.168.1.101 table chao
# ip rule ls
0:    from all lookup local
32765:    from 10.0.0.10 lookup chao
32766:    from all lookup main
32767:    from all lookup default

system-config-network相关推荐

  1. git安装错误:can not read system config

    问题 点击git安装包,显示 can not read system config 分析 此类问题往往是由于之前安装的git配置文件删除不彻底造成git安装失败. 因为git的系统级System配置文 ...

  2. K8s二进制部署-flanneld报(Couldn‘t fetch network config)

    1.报错提示 将网络配置信息写入了ETCD中,启动flanneld测试时一直报错,具体报错如下: [root@master1 ~]# tail -100f /var/log/messages Dec ...

  3. %Error opening tftp://255.255.255.255/network config

    问题:服务配置错误消息(Service Configuration Error Messages) 有时,在通过Cisco IOS软件启动Cisco设备期间,会显示与这些类似的错误消息: %Error ...

  4. 内置系统账户:Local system/Network service/Local Service 区别

    参考文献: http://www.cnblogs.com/xianspace/archive/2009/04/05/1429835.html 前言 今天在安装sqlserver2008 r2的时候,在 ...

  5. SQL内置系统账户:Local system/Network service/Local Service 区别

    内置系统账户:Local system/Network service/Local Service 区别 参考文献: http://www.cnblogs.com/xianspace/archive/ ...

  6. docker network

    前言:前面的部分一直都是单机跑docker,但实际生产环境不可能只用一台来跑.肯定会用到多台,因为他们都是内部私有ip,那么多台主机之间的容器如何通信?这个是个很头疼的问题!目前主流几种方法如下: 1 ...

  7. Git config 查看和设置配置信息

    Git使用git config 指令来指定与git相关的配置 config 配置有system级别.global(用户级别).和local(当前仓库)三个级别,三个设置范围system->glo ...

  8. Requirements of an SAP system administrator

    Requirements of an SAP system administrator Have a "proper" attitude Protect and safeguard ...

  9. net 中web.config一个配置文件解决方法 (其他配置文件引入方式)

    近期一个项目需要写许多的配置项,发现在单个web.config里面写的话会很乱也难于查找 所以搜了一下解决了,记录下来 一.   webconfig提供了引入其他config的方式 <conne ...

  10. php system startup,opencart Warning: require_once(/system/startup.php) failed to open stream

    1.opencart1.5.6.4迁移网站时,访问网站例如http://xxx.com/有时会出现 Warning: require_once(/home/wwwroot/shop/web/syste ...

最新文章

  1. 华为机考HJ4字符串分隔C语言题解
  2. Linux - SVN下载项目
  3. WCF netTcpBinding寄宿到IIS7
  4. vb.net axWindowsMediaPlayer 控件使用
  5. Log4--Java日志记录器
  6. 【Level 08】U08 Positive Attitude L3 What a life
  7. sql server 外键_什么是SQL Server中的外键
  8. 记录——《C Primer Plus (第五版)》第十章编程练习第一题
  9. 部署中遇到的问题(四)
  10. oracle创建用户、创建表空间、授权、建表
  11. (附源码)springboot儿童教育管理系统 毕业设计281442
  12. 培训课程通知邮件模板
  13. 国家计算机2级考试模板,全国计算机二级考试《C++》笔试样卷
  14. 前端、后端、学习网址
  15. ClassLoader和ClassForname的区别(详解)
  16. 用无人机撑伞?日本人脑洞真大
  17. Springboot集成mabatis-plus报com.xly.entity.ClientNot Found TableInfoCache.
  18. 云存储中不可不知的五个安全问题及应对措施
  19. 一种免费将PDF转word的方式
  20. 小项目 经理评分系统 总结

热门文章

  1. 在奋斗的日子里,傻笑出来
  2. selenium 操作 IE11--无法开启新窗口
  3. ping 不通百度问题的解决
  4. mysql如何查看bufferpool_查看Buffer Pool使用情况--[转]
  5. centos下安装firefox
  6. Ubuntu 入门学习之从安装部署到java环境的安装
  7. android:layout_height=match_parent和android:layout_marginTop=100dp同时作用
  8. 终止上市后,依图瞄准自动驾驶赛道|钛媒体独家
  9. 《免费》——比特经济的到来
  10. java实现猴子排序_java实现猴子排序(BogoSort)