开发者

Create IIS Binding Onto Site with IPv6?

http://learn.iis.net/page.aspx/327/powershell-开发者_C百科scripts/

CreateIISBindingOntoSite "DAP1Site1" 80 "www.DAP1Site2.com" "http"

However I want to generate and usa a IPv6 IP address. My new DNS Managment service allows me to use IPv6 addresses and host names.

Do I need to auto-generate IPv6 IP address first? How do I auto-generate a IPv6 IP address? (by code)

note: I use IIS 7.5

thanks!


My advice would be to throw away that old script. If you're using IIS7.5 then you'll have the WebAdministration PowerShell module available to you:

http://technet.microsoft.com/en-us/library/ee909471(WS.10).aspx

To load this do:

Import-Module WebAdministration

Have a look at the New-WebBinding command:

New-WebBinding (Web Server (IIS) Administration Cmdlets in Windows PowerShell)

You can find out more about these CmdLet's here:

Web Server (IIS) Administration Cmdlets in Windows PowerShell

With regard to IPv6 addresses you can't just magically make one up. You'll either be allocated a public IP address from your pool or you need to use a Unique Local IPv6 Unicast Address (which is synonymous with RFC1918 private IPv4 addresses).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜