route add work

Route add doesn't work

Hi, I just installed Vista.
I'm experiencing this problem: I have a network card with 2 IP addresses: ip: 10.70.204.120 255.255.255.0 ip: 10.32.85.120 255.255.255.0 Gateway: 10.32.85.1 DNS: 10.70.204.172 DNS: 192.168.97.57 DNS: 192.168.97.58
I need to set up 2 static route (that generally I configure in the other PC I manage on the network) like this:
route -p add 10.70.0.0 mask 255.255.0.0 10.70.204.254 route -p add 192.168.0.0 mask 255.255.0.0 10.70.204.254
The problem is that the answer is alwasy:
"the requested operation requires elevation" (!!!)
I tryed to write only the word "route add" without other things and the error is always the same...
What
I have to do?
I log in as Administrator so I could make all the changes I want to the system.
If someone could help Thank you Luca

I encountered the same problem. I found this posting http://windowsconnected.com/blogs/jerry/archive/2006/06/08/3007.aspx and enabled the built in Administrator account and run "route add" command. This worked for me. Apparently, if you join a domain, you won't have this issue.
1. Logon as the account you created during the installation. 2. From the Start menu, go to "All Programs", "Accessories" 3. Right-click on "Command Prompt" and choose "Run as Administrator" 4. Click "Allow" from the ConsentUI prompt 5. In the resulting Command window, enter "regedit" and press enter 6. In regedit, browse to HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon 7. Add a new key at that level called SpecialAccounts 8. In the SpecialAccounts key, create a sub-key called UserList 9. At this point the path is: HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList 10. In the UserList key, create a new value of type DWORD (32 bit) called Administrator and set the value to 1. 11. From the command prompt enter: "net user Administrator /Active:yes" 12. Reboot, and now you can logon to the Administrator account
Good luck!
"Luca" wrote:

Hi, I just installed Vista.
I'm experiencing this problem: I have a network card with 2 IP addresses: ip: 10.70.204.120 255.255.255.0 ip: 10.32.85.120 255.255.255.0 Gateway: 10.32.85.1 DNS: 10.70.204.172 DNS: 192.168.97.57 DNS: 192.168.97.58
I need to set up 2 static route (that generally I configure in the other PC I manage on the network) like this:
route
-p add 10.70.0.0 mask 255.255.0.0 10.70.204.254 route -p add 192.168.0.0 mask 255.255.0.0 10.70.204.254
The problem is that the answer is alwasy:
"the requested operation requires elevation" (!!!)
I tryed to write only the word "route add" without other things and the error is always the same...
What I have to do?
I log in as Administrator so I could make all the changes I want to the system.
If someone could help Thank you Luca

Gate, it worked fine! :) Nice trik, btw now I have another problem, let me know if you have any idea:
As I wrote I have one NIC with 2 IP Addresses:
10.32.85.130 ---> that is the Lan where at 10.32.85.1 there is a router/modem ADSL
10.70.204.130 --> that is the Office Lan, where the gateway is 10.70.204.254
I Need that all the information that start with 10.0 and 192.168 are routed to the 10.70.204.254 router...
So the NIC configuration is:
IP: 10.32.85.130 mask: 255.255.255.0 gw: 10.32.85.1
DNS: 10.70.204.172 - 192.168.97.57 - 192.168.97.58
in Advanced I setted up the second IP for the NIC: 10.70.204.130
Than I added (finally ;) ) the stati route:
route -p add 10.70.0.0 mask 255.255.0.0 10.70.204.254 route -p add 192.168.0.0 mask 255.255.0.0 10.70.204.254
Ok in this case, I can go to Internet, I cant reach all the PC on the 10.70 network but if I try to ping a Pc on the 192.168 network it always anser back that the ping was bad.
But, and this is the strange, if in the NIC configuration, I put as first address the 10.70.204.135 and as second the 10.32.85.135, than I can reach all the PC on the 10.70 network, all the pc on the 192.168 network but I can't go to internet!
Of course I can ping the 10.32.85.1 Router, all the "names" are resolved from the DNS but never reached.
So seems that if the 10.70.204.135 address is the first of the two address of the NIC, than the 192.168 network (that in its routing table knows the 10.70 network) works fine, if the address is the second of the NIC the 192.168 network can't resolve the address back as it read the lan 10.32.85.135 as address evenif the 10.70.204.135 too...
The same configuration run well on all the other PC (with Windows XP) ...so do you know if there is some kind of change in the TCP/IP stack in Vista that all the IP Packets shown only the first address of the NIC???
Thank you in advance Luca
"gate678" wrote:

I encountered the same problem. I found this posting http://windowsconnected.com/blogs/jerry/archive/2006/06/08/3007.aspx and enabled the built in Administrator account and run "route add" command. This worked for me. Apparently, if you join a domain, you won't have this issue.
1. Logon as the account you created during the installation. 2. From the Start menu, go to "All Programs", "Accessories" 3. Right-click on "Command Prompt" and choose "Run as Administrator" 4. Click "Allow" from the ConsentUI prompt 5. In the resulting Command window, enter "regedit" and press enter 6. In regedit, browse to HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon 7. Add a new key at that level called SpecialAccounts 8. In the SpecialAccounts key, create a sub-key called UserList 9. At this point the path is: HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList 10. In the UserList key, create a new value of type DWORD (32 bit) called Administrator and set the value to 1. 11. From the command prompt enter: "net user Administrator /Active:yes" 12. Reboot, and now you can logon to the Administrator account
Good luck!
"Luca" wrote:
Hi, I just installed Vista.
I'm
experiencing this problem: I have a network card with 2 IP addresses: ip: 10.70.204.120 255.255.255.0 ip: 10.32.85.120 255.255.255.0 Gateway: 10.32.85.1 DNS: 10.70.204.172 DNS: 192.168.97.57 DNS: 192.168.97.58
I need to set up 2 static route (that generally I configure in the other PC I manage on the network) like this:
route -p add 10.70.0.0 mask 255.255.0.0 10.70.204.254 route -p add 192.168.0.0 mask 255.255.0.0 10.70.204.254
The problem is that the answer is alwasy:
"the requested operation requires elevation" (!!!)
I tryed to write only the word "route add" without other things and the error is always the same...
What I have to do?
I log in as Administrator so I could make all the changes I want to the system.
If someone could help Thank you Luca

Windows Vista

Topic:


Nick: