O'Reilly logo

Windows Server 2003 in a Nutshell by Mitch Tulloch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

netsh/Interface Context

Synopsis

Configures router interfaces for Routing and Remote Access Service.

Subcontexts

IP

Commands

add interface name=iname type=[tunnel | full]

Adds an interface to the router, specifying its name (iname) and type (tunnel for VPN interfaces and full for demand-dial interfaces). The name of the interface must be in quotes if it contains spaces.

delete interface name=iname

Removes the specified interface.

dump

Dumps the configuration of the interfaces for the Routing and Remote Access Service as a series of NetShell commands.

ip

Switches to the IP subcontext to further configure IP interfaces on the router. The commands available in this subcontext are listed in Table 5-11.

reset all

Resets the router configuration by deleting all interfaces.

set credentials name=iname user=username domain=domainname password=password

Specifies the credentials needed to connect to an interface.

set interface name=iname admin=[enabled | disabled] connect=[connected | disconnected] [newname=newiname]

Sets the current state of the WAN interface called iname to either enabled or disabled. If connected is specified, the interface is automatically enabled. newiname is used only for renaming the default LAN interface.

show credentials name=iname

Displays the credentials needed to connect to each interface.

show interface [name=iname]

Displays the name, type, and current state of each interface on the router. If no name is specified, all interfaces are displayed.

Table 5-11. Commands available ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required