Skip to content

Commit 744cc61

Browse files
Qiu YutanAlex Shi
authored andcommitted
Docs/zh_CN: Translate alias.rst to Simplified Chinese
translate the "alias.rst" into Simplified Chinese Update to commit 735dadf("docs: networking: Convert alias.txt to rst") Alex Shi: Modify networking/index.rst for merge issue. Signed-off-by: Qiu Yutan <qiu.yutan@zte.com.cn> Signed-off-by: Jiang Kun <jiang.kun2@zte.com.cn> Reviewed-by: Yanteng Si <siyanteng@cqsoftware.com.cn> Reviewed-by: xu xin <xu.xin16@zte.com.cn> Signed-off-by: Alex Shi <alexs@kernel.org>
1 parent 6b818ef commit 744cc61

2 files changed

Lines changed: 57 additions & 1 deletion

File tree

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
.. SPDX-License-Identifier: GPL-2.0
2+
3+
.. include:: ../disclaimer-zh_CN.rst
4+
5+
:Original: Documentation/networking/alias.rst
6+
7+
:翻译:
8+
9+
邱禹潭 Qiu Yutan <qiu.yutan@zte.com.cn>
10+
11+
:校译:
12+
13+
======
14+
IP别名
15+
======
16+
17+
IP别名是管理每个接口存在多个IP地址/子网掩码的一种过时方法。
18+
虽然更新的工具如iproute2支持每个接口多个地址/前缀,
19+
但为了向后兼容性,别名仍被支持。
20+
21+
别名通过在使用 ifconfig 时在接口名后添加冒号和一个字符串来创建。
22+
这个字符串通常是数字,但并非必须。
23+
24+
25+
别名创建
26+
========
27+
28+
别名的创建是通过“特殊的”接口命名机制完成的:例如,
29+
要为eth0创建一个 200.1.1.1 的别名...
30+
::
31+
32+
# ifconfig eth0:0 200.1.1.1 等等
33+
~~ -> 请求为eth0创建别名#0(如果尚不存在)
34+
35+
该命令也会设置相应的路由表项。请注意:路由表项始终指向基础接口。
36+
37+
38+
别名删除
39+
========
40+
41+
通过关闭别名即可将其删除::
42+
43+
# ifconfig eth0:0 down
44+
~~~~~~~~~~ -> 将删除别名
45+
46+
47+
别名(重新)配置
48+
================
49+
50+
别名不是真实的设备,但程序应该能够正常配置和引用它们(ifconfig、route等)。
51+
52+
53+
与主设备的关系
54+
==============
55+
56+
如果基础设备被关闭,则其上添加的所有别名也将被删除。

Documentation/translations/zh_CN/networking/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
netif-msg
2727
xfrm_proc
2828
netmem
29+
alias
2930

3031
Todolist:
3132

@@ -50,7 +51,6 @@ Todolist:
5051
* page_pool
5152
* phy
5253
* sfp-phylink
53-
* alias
5454
* bridge
5555
* snmp_counter
5656
* checksum-offloads

0 commit comments

Comments
 (0)