1.1. IP Networking Control Files

1.1. IP Networking Control Files

Different linux distribution vendors put their networking configuration files in different places in the filesystem. Here is a brief summary of the locations of the IP networking configuration information under a few common linux distributions along with links to further documentation.

Location of networking configuration files

  • RedHat (and Mandrake)

    • Interface definitions /etc/sysconfig/network-scripts/ifcfg-*

    • Hostname and default gateway definition /etc/sysconfig/network

    • Definition of static routes /etc/sysconfig/static-routes

  • SuSe (version >= 8.0)

    • Interface definitions /etc/sysconfig/network/ifcfg-*

    • Static route definition /etc/sysconfig/network/routes

    • Interface specific static route definition /etc/sysconfig/network/ifroute-*

  • SuSe (version <= 8.0)

    • Interface and route definitions /etc/rc.config

  • Debian

    • Interface and route definitions /etc/network/interfaces

  • Gentoo

    • Interface and route definitions /etc/conf.d/net

  • Slackware

    • Interface and route definitions /etc/rc.d/rc.inet1

The format of the networking configuration files differs significantly from distribution to distribution, yet the tools used by these scripts are the same. This documentation will focus on these tools and how they instruct the kernel to alter interface and route information. Consult the distribution's documentation for questions of file format and order of operation.

For the remainder of this document, many examples refer to machines in a hypothetical network. Refer to the example network description for the network map and addressing scheme.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值