ipv6设置

来源:互联网 发布:单片机怎样控制继电器 编辑:程序博客网 时间:2024/05/02 03:07

工作的关系,把自己的机器上设置成了IPV6的地址.把步骤列出来:

Windows XP

1.       ipv6 协议的安装

[开始]à[运行]àcmdàipv6 install

如下图:

2.       进入netsh

在命令行下打netsh命令.进入netsh状态.

如下图

3.       进入interface状态

在命令行下打interface命令.进入interface状态.

如下图

4.       进入ipv6状态

在命令行下打ipv6命令.进入ipv6状态.

如下图

5.       ipv6 默认网关设置

键入以下命令:

add address “ 本地连接 ” 2001:da8:207::9402

如下图:

6.       ipv6 默认网关设置(可不设置)

add route ::/0 “ 本地连接 ” 2001:da8:207::9401 publish=yes

:

Netsh is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. Netsh also provides a scripting feature that allows you to run a group of commands in batch mode against a specified computer. Netsh can also save a configuration script in a text file for archival purposes or to help you configure other servers.

 

Linux

1.       安装ipv6协议

modprobe ipv6

2.       ipv6地址设置

ifconfig eth0 inet6 add 2001:da8:207::9402

3.       ipv6默认网关设置(可不设置)

route -A inet6 add ::/0 gw 2001:da8:207::9401