Netsh routing ip nat install not working


in order configure nat rules rras, installed feature: routing , remoteaccess; after that, i need configure , enable rras, don't want use gui, because need set these nat rules automatically, searched use "netsh routing ip nat install". @ first prepare txt file, context below:

# ----------------------------------
# nat configuration                 
# ----------------------------------
pushd routing ip nat
uninstall
install
set global tcptimeoutmins=1440 udptimeoutmins=1 loglevel=error

#
#nat configuration interface ethernet 4
#
add interface name="ethernet 4" mode=full

#
#nat configuration interface ethernet 2
#
add interface name="ethernet 2" mode=private

#
#nat configuration interface internal
#
add interface name="internal" mode=private

popd

and run command this:

sc config remoteaccess start= auto

net start remoteaccess

netsh -f c:\snat\config-rras-nat.txt

nothing happened. decide "netsh routing ip nat install" manually, shows nothing, , rras not configured, still in disable state.  why? there power shell commands or netsh command enable routing , remote access? 

hi cartman shen, think find solution problem, author of link:

https://windowsmasher.wordpress.com/2013/03/02/scripting-the-build-of-a-server-2008-r2-test-domain/



Windows Server  >  Network Infrastructure Servers



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

RDS 2012 r2 collections show black screen and then close