IPv6 Configuration in Windows (1)

Source: Internet
Author: User
Tags spl anycast

There are two methods to configure IPv6 in the windows system family: IPv6 and netsh. We can use them to query and configure IPv6 interfaces, addresses, caches, and routes.
Take the IPv6 command in windows xp as an example:
◆ IPv6 install IPv6 protocol stack
◆ IPv6 uninstall IPv6 protocol stack
◆ IPv6 [-v] if [ifindex] displays the configuration information of all interfaces of IPv6. The interface is represented by the interface index number.
Parameter description: [ifindex] Index Number of the specified Interface
[-V] other Interface Information
For example, IPv6 if displays information about all interfaces.
IPv6 if 4 displays interface 4 Information
Note:Generally, after the IPv6 protocol stack is installed, there are four default network interfaces for one network adapter, interface 1 for the loopback interface, interface 2 for the automatic tunnel Virtual interface, and interface 3 for the 6to4 tunnel Virtual interface, interface 4 is used for normal network connection interfaces, that is, unicast interfaces of IPv6 addresses. If there are multiple NICs, there are other interfaces.
◆ IPv6 [-p] adu /[Life validlifetime [/preflifetime]
[Anycast] [unicast] configures an IPv6 address for the specified interface. Note that the prefix length is not configured here.
Parameter description: [life validlifetime [/preflifetime] IPv6 address survival time
[Anycast] sets an address as a wildcard address.
[Unicast] sets the address as the unicast address. The default address is the unicast address.
[-P] Save the configuration. If this parameter is not added for configuration, the configuration will be lost when the computer restarts. The following-p parameters have the same effect and are not described here.
For example, IPv6 adu 4/3eff: 124e: 1 configure IPv6 address 3eff: 124e: 1 on the Interface interface with index number 4
IPv6 adu 4/3eff: 124e: 1 life 0 Delete the IPv6 address just configured above
◆ IPv6 [-p] ifc [Forwards] [-forwards] [advertises] [-advertises] [
Mtu # bytes] [site-identifier] [preference P] configure interface attributes
Parameter description: forwards allows you to forward received packets on this interface.
-Forwards disables forwarding packets received on this interface.
Advertises allows you to send "vro publishing" messages on this interface.
-Disable advertises to send "vro publishing" messages on this interface.
Mtu Set the maximum transmission unit (mtu) for the link in bytes ).
Site Set the site ID. The site ID is used to differentiate the local addressing of the site in different management areas.
For example, IPv6 ifc 4 forwards enables the IPv6 forwarding function of interface 4.
◆ IPv6 [-v] rt view route table
Parameter description: [-v] views the system route in the route table. Without parameters, you can only view manually added routes.
For example, IPv6-v rt checks all routes in the route table for manual routing and system routing)
Note:The route table includes the route (system route) Table items automatically generated by the system and the route (manual route) manually added by the user)
Table item.
◆ IPv6 [-p] rtu [/Address] [life valid [/pref] [preference P]
[Publish] [age] [spl SitePrefixLength] add route table entry
Parameter description: [/address] specifies the next hop address
[Life valid [/pref] survival time
[Publish] whether to publish
[Age] aging?
[Spl SitePrefixLength] specifies the site prefix length associated with the route
For example, IPv6 rtu 2000: 3440:/64 4 adds a route for interface 4
IPv6 rtu 2000: 3440:/64 4 life 0 for interface 4 delete a route
IPv6 rtu:/0 4/3ffe: 124e: 2 Add a default route, the gateway is 3ffe: 345e: 2
IPv6 rtu 3ffe: 124e:/64 4 add prefix 64 for interface 4
Note:By default, the created route table items are aging but not published, but can be set to aging and released.
◆ IPv6 [-p] ifcr v6v4 [Nd] [pmld] creating IPv6/IPv4 tunnel)
Parameter description: [nd] allows "Neighbor Discovery" to cross the tunnel to send and receive "vro published" messages.
[Pmld] allows periodic "Multicast listener discovery (MLD)" messages
For example, if you want to establish an IPv6/IPv4 Tunnel with another machine, your IPv4 address is 133.100.8.2, And the IPv4 address of the other machine is 210.28.10.4, You can execute the following command:
IPv6 ifcr v6v4 133.100.8.2 210.28.10.4
After executing this command, the system will tell you the index value of the newly created interface. How to configure this interface
It is exactly the same as other interfaces, but it must be noted that it is a point-to-point Link Interface.
◆ IPv6 [-p] ifcr 6over4 Create a 6over4 interface with the specified IPv4 source address
◆ IPv6 [-p] ifd Delete Interface
Example: IPv6 ifd 4 deletion interface 4
Note: This command cannot delete the loopback and tunnel virtual interfaces, that is, interfaces 1, 2, and 3.
◆ IPv6 nc [ifindex [address] views the neighbor cache of all interfaces, similar to arp cache in ipv4
The neighbor cache displays the interface identifier used for the neighbor cache item, the IPv6 address of the neighbor node, the corresponding link layer address, and the status of the neighbor cache item.
Parameter description: ifindex specified Interface
[Address] If an interface is specified, you can specify an IPv6 address to display only the cache items of a single neighbor.
For example, IPv6 nc checks the neighbor cache.
IPv6 nc 4 view the neighbor cache of interface 4
IPv6 nc 4 3eff: 124e: 1 check the cache items of the 3eff: 124e: 1 address on interface 4
◆ IPv6 ncf [ifindex [address] deletes a specified neighbor high-speed buffer item.
Parameter description: ifindex specifies the interface number.
[Address] If an interface is specified, you can specify an IPv6 address to delete only one
Neighbor high-speed cache item.
For example, IPv6 ncf 4
Note:Only the cache with no reference neighbors will be deleted. Because the route cache entry contains references to the neighbor cache, we recommend that you run the IPv6 rcf command first.
◆ IPv6 rc [ifindex [address] views the route cache.
Parameter description: ifindex specifies the interface number.
[Address] displays the route cache entries of the specified address on the specified interface.
For example, IPv6 rc 4 displays the routing cache of interface 4.
Note: The route cache displays the destination address, interface identifier, Next hop address, interface identifier, address used as the source address when sent to the destination, and the target path MTU.
◆ IPv6 rcf [ifindex [address] deletes the specified route cache item.
The parameter description is the same as that of IPv6 rc.
For example, IPv6 rcf 4 deletes the route cache entry on interface 4.
◆ IPv6 bc displays the content bound to the cache, including the home address, transfer address, bound serial number, and survival time of each bound package.
Note: binding to the cache will save the binding between the home address and the forwarding address used for mobile IPv6.
◆ IPv6 spt displays the content of the site prefix table
◆ IPv6 spu [Life L] add, delete, or update the prefix in the site prefix table
Parameter description: [life L] specifies the survival time. The default value is indefinite. If the survival time is 0, the table item is deleted.
Example: IPv6 spu 3ffe: 124e:/64 4 Add a table prefix
IPv6 spu 3ffe: 124e:/64 4 life 0 delete a prefix table item
◆ IPv6 gp displays the value of the global parameter of IPv6 protocol
For example, IPv6 gp is shown as follows:

     
      C:\>IPv6 gpDefaultCurHopLimit = 128UseAnonymousAddresses = yesMaxAnonDADAttempts = 5MaxAnonLifetime = 7d/24hAnonRegenerateTime = 5sMaxAnonRandomTime = 10mAnonRandomTime = 2m21sNeighborCacheLimit = 8RouteCacheLimit = 32BindingCacheLimit = 32ReassemblyLimit = 262144MobilitySecurity = on
     


IPv6 [-p] gpu... this is a group of commands used to modify the global parameters of the IPv6 protocol, that is, the parameters displayed by the IPv6 gp ),
◆ IPv6 [-p] gpu DefaultCurHopLimit Sets the value of the "Hop limit" field in the IPv6 packet header. The default value is 128.
◆ IPv6 [-p] gpu UseAnonymousAddresses [yes | no | always | Counter] sets whether to use an anonymous address. Yes by default


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.