ifconfig6.efi

本文介绍了 ifconfig6 命令的使用方法,包括显示或修改网络接口的 IPv6 配置,设置自动配置策略,手动配置 IP 地址及 DNS 服务器等。并提供了实际操作的例子。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 1 ifconfig6 -?
 2 Displays or modifies IPv6 configuration for network interface.
 3 
 4 IfConfig6 -r [Name] | -l [Name]
 5 IfConfig6 -s <Name> [dad <Num>] [auto | [man [id <mac>] [host <IPv6> gw <IPv6>]
 6              [dns <IPv6>]]]
 7 
 8   Name                     Adapter name, i.e., eth0
 9   -r [Name]                Reconfigure all or specified interface, and set
10                            automatic policy. If specified interface is already
11                            set to automatic,then refresh the IPv6 configuration.
12   -l [Name]                List the configuration of the specified interface.
13   -s <Name> dad <Num>      Set dad transmits count of the specified interface.
14   -s <Name> auto           Set automatic policy of the specified interface.
15   -s <Name> man id <Mac>   Set alternative interface id of the specified
16                            interface. Must under manual policy.
17   -s <Name> man host <IPv6> gw <IPv6>
18                            Set static host IP and gateway address of the
19                            specified interface. Must under manual policy.
20   -s <Name> man dns <IPv6> Set DNS server IP addresses of the specified
21                            interface.Must under manual policy.
22 
23 EXAMPLES:
24   * To list the configuration for the interface eth0:
25     Shell:\> ifConfig6 -l eth0
26 
27   * To use automatic configuration to request the IPv6 address configuration
28     dynamically for the interface eth0:
29     Shell:\> ifconfig6 -s eth0 auto
30 
31   * To set the dad transmits count for eth0 under automatic policy:
32     Shell:\> ifconfig6 -s eth0 auto dad 10
33 
34   * To set the alternative interface id of eth0 under manual policy:
35     Shell:\> ifconfig6 -s eth0 man id ff:dd:aa:88:66:cc
36 
37   * To use the static IP6 addresses configuration for the interface eth0,
38     and this configuration survives the network reload:
39     Shell:\> ifconfig6 -s eth0 man host 2002::1/64 2002::2/64 gw 2002::3/64

 

转载于:https://www.cnblogs.com/boowii/p/6070738.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值