Compartilhar via


IP routing commands

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

IP routing commands

The following table lists the netsh commands that you can type at a command prompt to administer IP settings on a server running Routing and Remote Access. If there are multiple commands for a particular function, they are indicated by separating the individual commands with a slash (/). For example, the command routing ip set/show loglevel is actually two separate commands: routing ip set loglevel and routing ip show loglevel.

When you type the command at the command prompt, precede each command with netsh. For the exact syntax of each command, type the command with the ? option. For example, to receive command-line Help on the netsh routing ip set interface command, type netsh routing ip set interface ? at the command prompt.

Command Description

routing ip add/delete/set/show interface

Adds, deletes, configures, or displays general IP routing settings on a specified interface.

routing ip add/delete/set/show filter

Adds, deletes, configures, or displays IP packet filters on a specified interface.

routing ip add/delete/show boundary

Adds, deletes, or displays multicast boundary settings on a specified interface.

routing ip add/delete/set/show rtmroute

Adds, deletes, configures, or displays a non-persistent Route Table Manager route.

routing ip add/delete/set/show persistentroute

Adds, deletes, configures, or displays persistent routes.

routing ip add/delete/set/show preferenceforprotocol

Adds, deletes, configures, or displays the preference level for a routing protocol.

routing ip add/delete/set/show scope

Adds, deletes, or displays a multicast scope.

routing ip set/show loglevel

Configures or displays the global IP logging level.

routing ip show helper

Displays all Netsh utility subcontexts of IP.

routing ip show protocol

Displays all running IP routing protocols.

routing ip show mfe

Displays multicast forwarding entries.

routing ip show mfestats

Displays multicast forwarding entry statistics.

routing ip show boundarystats

Displays IP multicast boundaries.

routing ip show rtmdestinations

Displays destinations in the Route Table Manager routing table.

routing ip show rtmroutes

Displays routes in the Route Table Manager routing table.

routing ip nat set/show global

Configures or displays global network address translation (NAT) settings.

routing ip nat add/delete/set/show interface

Adds, deletes, configures, or displays network address translation (NAT) settings for a specified interface.

routing ip nat add/delete addressrange

Adds or deletes an address range to the NAT interface public address pool.

routing ip nat add/delete addressmapping

Adds or deletes a NAT address mapping.

routing ip nat add/delete portmapping

Adds or deletes a NAT port mapping.

routing ip autodhcp set/show global

Configures or displays global DHCP allocator parameters.

routing ip autodhcp set/show interface

Configures or displays DHCP allocator settings for a specified interface.

routing ip autodhcp add/delete exclusion

Adds or deletes an exclusion from the DHCP allocator range of addresses.

routing ip dnsproxy set/show global

Configures or displays global DNS proxy parameters.

routing ip dnsproxy set/show interface

Configures or displays DNS proxy parameters for a specified interface.

routing ip igmp set/show global

Configures or displays IGMP global settings.

routing ip igmp add/delete/set/show interface

Adds, deletes, configures, or displays IGMP on the specified interface.

routing ip igmp show grouptable

Displays the IGMP host groups table.

routing ip igmp show ifstats

Displays the IGMP statistics for each interface.

routing ip igmp show iftable

Displays the IGMP host groups for each interface.

routing ip igmp show proxygrouptable

Displays the IGMP group table for the IGMP proxy interface.

routing ip igmp show rasgrouptable

Displays the group table for internal interface used by the remote access server.

routing ip ospf set/show global

Configures or displays global OSPF settings. This feature is not available on the Itanium-based versions of the Windows operating systems. This content is not available in this preliminary release.

routing ip ospf add/delete/set/show interface

Adds, removes, configures, or displays OSPF on a specified interface.

routing ip ospf add/delete/set/show area

Adds, removes, configures, or displays an OSPF area.

routing ip ospf add/delete/set/show virtif

Adds, removes, configures, or displays an OSPF virtual interface.

routing ip ospf add/delete/show neighbor

Adds, removes, configures, or displays an OSPF neighbor.

routing ip ospf add/delete/show protofilter

Adds, removes, configures, or displays routing information sources for OSPF external routes.

routing ip ospf add/delete/show routefilter

Adds, removes, configures, or displays route filtering for OSPF external routes.

routing ip ospf show areastats

Displays OSPF area statistics.

routing ip ospf show lsdb

Displays the OSPF link state database.

routing ip ospf show virtifstats

Displays OSPF virtual link statistics.

routing ip relay set global

Configures DHCP Relay Agent global settings.

routing ip relay add/delete/set interface

Adds, removes, or configures DHCP Relay Agent settings on a specified interface.

routing ip relay add/delete dhcpserver

Adds or removes a DHCP server IP address to the list of DHCP server addresses.

routing ip relay show ifbinding

Displays IP address bindings for interfaces.

routing ip relay show ifconfig

Displays DHCP Relay Agent configuration for each interface.

routing ip relay show ifstats

Displays DHCP statistics for each interface.

routing ip rip set/show global

Configures or displays global RIP-for-IP settings.

routing ip rip add/delete/set/show interface

Adds, deletes, configures, or displays RIP-for-IP settings on a specified interface.

routing ip rip add/delete peerfilter

Adds or removes a RIP peer filter.

routing ip rip add/delete acceptfilter

Adds or removes a RIP route filter to the list of routes being accepted.

routing ip rip add/delete announcefilter

Adds or removes a RIP route filter to the list of routes being announced.

routing ip rip add/delete/show neighbor

Adds, removes, or displays a RIP neighbor.

routing ip rip set/show flags

Configures and displays advanced settings of RIP for IP on a specified interface.

routing ip rip show globalstats

Displays global RIP parameters.

routing ip rip show ifbinding

Displays IP address bindings for interfaces.

routing ip rip show ifstats

Displays RIP statistics for each interface.