IPv6 Configuration commands

Source: Internet
Author: User
Tags spl anycast

There are two methods for configuring 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] other information about the index number [-v] interface of the specified interface. For example, IPv6 if displays information about all interfaces. IPv6 if 4 displays information about interface 4. 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 <ifindex>/<address> [life validlifetime [/preflifetime] [anycast] [unicast] configure IPv6 addresses for the specified interface. Note that the prefix length is not configured here. Parameter description: [life validlifetime [/preflifetime] alive time of an IPv6 Address [anycast] sets the address as the pan-play Address [unicast] And the address as the unicast address, by default, the unicast address [-p] is used to 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. Example: IPv6 adu 4/3eff: 124e: 1 configure IPv6 address 3eff: 124e: 1 IPv6 adu 4/3eff: 124e :: 1 life 0 Delete the previously configured IPv6 address ◆ IPv6 [-p] ifc <ifindex> [forwards] [-forwards] [advertises] [-advertises] [mtu # bytes] [site-identifier] [preference P] describes the attribute parameters of the configuration interface: forwards allows the interface to forward received packets. -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 sets the maximum transmission unit (mtu) for the link (in bytes ). Set the site ID. The site ID is used to differentiate interfaces that belong to different management areas (using local addressing of the site. For example, IPv6 ifc 4 forwards enables the IPv6 forwarding function of interface 4 ◆ IPv6 [-v] rt view route table parameter description: [-v] view 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 (manual routes and system routes). Note: The route table includes automatically generated routes (system routes) table items and manually added routing (manual routing) Table items. ◆ IPv6 [-p] rtu <prefix> <ifindex> [/address] [life valid [/pref] [preference P] [publish] [age] [spl SitePrefixLength] add route table parameters: [/address] specifies the next hop address [life valid [/pref] survival time [publish] whether to publish [age] whether aging [spl SitePrefixLength] specify the site prefix length associated with the route example: IPv6 rtu 2000: 3440:/64 4 Add 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: 124. E:/64 4 add prefix for interface 4 64 Note: by default, the route table items created are aging but not published, but can be set to aging and released. ◆ IPv6 [-p] ifcr v6v4 <v4src> <v4dst> [nd] [pmld] creating IPv6/IPv4 tunnel parameters: [nd] Allow "Neighbor Discovery" to cross the tunnel to send and receive "router published" messages [pmld] Allow periodic "Multicast listener discovery (MLD)" message examples: you need 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. Then you can run 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. The configuration method for this interface is the same as that for other interfaces, but you must note that it is a point-to-point Link Interface. ◆ IPv6 [-p] ifcr 6over4 <v4src> use the specified IPv4 source address to create the 6over4 interface ◆ IPv6 [-p] ifd <ifindex> 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 high-speed cache displays the interface identifier used for the neighbor high-speed cache item, the IPv6 address of the neighbor node, the corresponding link layer address, and the status of the neighbor high-speed cache item. Parameter description: ifindex indicates the interface [address]. If an interface is specified, you can specify an IPv6 address to display only the cache items of a single neighbor. Example: IPv6 nc view neighbor cache IPv6 nc 4 View neighbor cache IPv6 nc 4 3eff: 124e :: 1 view 3eff: 124e :: on interface 4 :: 1. address cache items ◆ IPv6 ncf [ifindex [address] deletes the specified neighbor cache item. Parameter description: ifindex specifies the interface number [address]. If an interface is specified, you can specify an IPv6 address and delete only the cache items of a single neighbor. For example, IPv6 ncf 4 Note: Only neighboring caches without reference 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: If ifindex specifies the interface number [address], the route cache items of the specified address on the specified interface will be displayed. Example: IPv6 rc 4 displays the route 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, mainly for each bound home address, forwarding address, and bound serial number, and the survival time. 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 <prefix> <ifindex> [life L] adds, deletes, or updates prefix parameters in the site prefix table: [life L] specifies the survival time, which is an indefinite period by default. If the survival time is 0, delete the table item example: IPv6 spu 3ffe: 124e :: /64 4 Add a prefix table item IPv6 spu 3ffe: 124e:/64 4 life 0 delete a prefix table item ◆ IPv6 gp display the value of global parameters of IPv6 Protocol example: IPv6 gp display: C:> IPv6 gp DefaultCurHopLimit = 128 UseAnonymousAddresses = yes MaxAnonDADAttempts = 5 MaxAnonLifetime = 7d/24 h AnonRegenerateTime = 5S MaxAnonRandomTime = 10 m AnonRandomTime = 2m21s NeighborCacheLimit = 8 RouteCacheLimit = 32 BindingCacheLimit = 32 ReassemblyLimit = 262144 MobilitySecurity = 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 data packet header, default Value: 128 ◆ IPv6 [-p] gpu UseAnonymousAddresses [yes | no | always | Counter. The default value is yes IPv6 [-p] gpu MaxAnonDADAttempts. Set the number of times to check the uniqueness of anonymous addresses. The default value is 5 ◆ IPv6 [-p] gpu MaxAnonLifetime. Set the valid and preferred survival time for anonymous addresses. The default validity period is 7 days. Default preferred survival Time is 1 day ◆ IPv6 [-p] gpu AnonRegenerateTime <Time> set the Time period (in seconds) ◆ IPv6 [-p] gpu MaxAnonRandomTime <Time> set the maximum anonymous random Time in minutes ◆ IPv6 [-p] gpu AnonRandomTime <Time> sets the minimum anonymous random Time in seconds the value of time. The default value is 0 seconds. ◆ IPv6 [-p] gpu NeighborCacheLimit <Number> sets the maximum Number of projects for each interface in the neighboring cache. The default value is 8 items. ◆ IPv6 [-p] gpu RouteCacheLimit <Number> sets the maximum Number of items for each interface in the route table. Default Value: 32 Items ◆ IPv6 ppt display prefix policy table note: prefix policies are used to specify the policies used for source and target address selection. ◆ IPv6 [-p] ppu prefix precedence P srclabel SL [dstlabel DL] update the prefix policy table using policies that specify preference, source tag value (SourceLabelValue), and destination tag value (DestinationLabelValue. ◆ IPv6 [-p] ppd Delete prefix policy ◆ IPv6 renew [ifindex] restores IPv6 Configuration parameters for all interfaces: [ifindex] restore IPv6 Configuration example of the specified interface: IPv6 renew 4 refresh interface 4 Automatic Address Allocation note: the host's automatic configuration address will be refreshed by sending a "router request" message on the appropriate interface. Configure the address based on the received "vro announcement" message. Similar to the ipconfig/renew command in ipv4. In Windows Server 2003 and later versions, IPv6 commands are discarded and replaced by the netsh command series. For IPv6 commands, the netsh command series all have one-to-one command line.

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.