要在一个接口上配置 IP 地址和子网掩码,正确的命令是哪个?
A.
Router ( config ) #ip address 192.168.1.1
B.
Router ( config-if ) #ip address 192.168.1.1
C.
Router ( config-if ) #ip address 192.168.1.1 255.255.255.0
D.
Router ( config-if ) #ip address 192.168.1.1 netmask 255.255.255.0