单项选择题

给一个端口配置IP地址,命令书写正确的是()。

A.ip address {IP 地址}{网络掩码}
B.ip address {IP 地址}{端口号}
C.ip address {IP 地址}{DNS 服务器}
D.ip address {IP 地址}