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