All pastes #771848 Raw Edit

netsh

public text v1 · immutable
·published 2007-11-13 08:45 UTC
rendered paste body
#========================
# Interface configuration
#========================
pushd interface

reset all


popd
# End of interface configuration


                                            
# ----------------------------------------- 
# RAS Configuration                         
# ----------------------------------------- 
pushd ras

set authmode mode = nodcc
delete authtype type = PAP
delete authtype type = SPAP
delete authtype type = MD5CHAP
delete authtype type = MSCHAP
delete authtype type = MSCHAPv2
delete authtype type = EAP
add authtype type = MSCHAP
delete link type = SWC
delete link type = LCP
add link type = SWC
add link type = LCP
delete multilink type = MULTI
delete multilink type = BACP
add multilink type = MULTI
add multilink type = BACP

set user name = Administrator dialin = policy cbpolicy = none 
set user name = bb dialin = policy cbpolicy = none 
set user name = Guest dialin = policy cbpolicy = none 

set tracing component = * state = disabled

popd

# End of RAS configuration.                  
                                             
                                             

                                            
# ----------------------------------------- 
# RAS IP Configuration                      
# ----------------------------------------- 
pushd ras ip

delete pool

set negotiation mode = allow
set access mode = all
set addrreq mode = deny
set addrassign method = auto

popd

# End of RAS IP configuration.               
                                             

                                            
# ----------------------------------------- 
# RAS IPX Configuration                      
# ----------------------------------------- 
pushd ras ipx

set negotiation mode = allow
set access mode = all
set nodereq mode = allow
set netassign method = autosame

popd

# End of RAS IPX configuration.               
                                             
                                             

                                            
# ----------------------------------------- 
# RAS NBF Configuration                      
# ----------------------------------------- 
pushd ras netbeui

set negotiation mode = allow
set access mode = all

popd

# End of RAS NBF configuration.               
                                             
                                             

                                            
# ----------------------------------------- 
# RemoteAccess AppleTalk Configuration      
# ----------------------------------------- 
pushd ras appletalk

set negotiation mode = allow
set access mode = all

popd

# End of RemoteAccess AppleTalk configuration.


                                            
# ----------------------------------------- 
# RAS AAAA Configuration                    
# ----------------------------------------- 
pushd ras aaaa

set authentication provider = windows
set accounting provider = windows

delete authserver name = *
delete acctserver name = *



popd

# End of RAS AAAA configuration.             
                                             
                                             
# Routing configuration
pushd routing
reset
popd
# IP configuration
pushd routing ip
reset
set loglevel error
add preferenceforprotocol proto=LOCAL preflevel=1
add preferenceforprotocol proto=NetMgmt preflevel=10
add preferenceforprotocol proto=STATIC preflevel=3
add preferenceforprotocol proto=NONDOD preflevel=5
add preferenceforprotocol proto=AUTOSTATIC preflevel=7
add preferenceforprotocol proto=OSPF preflevel=110
add preferenceforprotocol proto=RIP preflevel=120
add interface name="Local Area Connection" state=enable
set filter name="Local Area Connection" fragcheck=disable
add interface name="Internal" state=enable
set filter name="Internal" fragcheck=disable
add interface name="Loopback" state=enable
set filter name="Loopback" fragcheck=disable
popd
# End of IP configuration



# ---------------------------------- 
# DHCP Allocator Configuration       
# ---------------------------------- 
pushd routing ip autodhcp
uninstall


popd
# End of DHCP Allocator Configuration



# ---------------------------------- 
# DNS Proxy configuration            
# ---------------------------------- 
pushd routing ip dnsproxy
uninstall


popd
# End of DNS proxy configuration



# ---------------------------------- 
# IGMP Configuration                 
# ---------------------------------- 
pushd routing ip igmp
uninstall


popd
# End of IGMP configuration



# ---------------------------------- 
# NAT configuration                  
# ---------------------------------- 
pushd routing ip nat
uninstall


popd




# ---------------------------------- 
# OSPF configuration                 
# ---------------------------------- 

pushd routing ip ospf
uninstall

popd
# End of OSPF configuration




# ---------------------------------- 
# DHCP Relay Agent configuration     
# ---------------------------------- 
pushd routing ip relay
uninstall


popd
# End of DHCP Relay configuration



# ---------------------------------- 
# RIP configuration                  
# ---------------------------------- 
pushd routing ip rip
uninstall


popd
# End of RIP configuration



# ---------------------------------- 
# Router Discovery Configuration     
# ---------------------------------- 
pushd routing ip routerdiscovery
uninstall
add interface name="Local Area Connection" disc=disable minint=7 maxint=10 life=30 level=0
add interface name="Internal" disc=disable minint=7 maxint=10 life=30 level=0
add interface name="Loopback" disc=disable minint=7 maxint=10 life=30 level=0


popd

#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#                                                         #
#   BEFORE running this script                            #
#                                                         #
# To restore IPX router configuration, you must first     #
# UNINSTALL IPX from the Network connections folder and   #
# then REINSTALL it.                                      #
#                                                         #
#   This deletes the old IPX router configuration         #
#   and restores the IPX router configuration to its      #
#   default                                               #
#                                                         #
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#

#----------------------------------------------------------
# IPX configuration
#----------------------------------------------------------

pushd routing ipxThe specified protocol identifier is not known to the router.

#----------------------------------------------------------
# IPX Interface configuration
#----------------------------------------------------------


#----------------------------------------------------------
# IPX Traffic Filter configuration
#----------------------------------------------------------


#----------------------------------------------------------
# IPX Static Route configuration
#----------------------------------------------------------


#----------------------------------------------------------
# IPX Static Service configuration
#----------------------------------------------------------

#----------------------------------------------------------
# IPX RIP configuration
#----------------------------------------------------------

pushd routing ipx rip
popd


# End of IPX RIP configuration

#----------------------------------------------------------
# IPX SAP configuration
#----------------------------------------------------------

pushd routing ipx sap
popd


# End of IPX SAP configuration

#----------------------------------------------------------
# IPX NETBIOS configuration
#----------------------------------------------------------

pushd routing ipx netbios
popd


# End of IPX NB configuration


popd

# End of IPX configuration