You have been tasked to configure the IPv4 address on the switch only on the VLAN 1 following the details below:

Configuration details:
IP address: 199.255.240.100
Subnet mask: 255.255.255.0
Default gateway: 199.255.240.1

Which of the following commands will you type to complete the task?

(A)
MegaRouter(config)# interface vlan 1
MegaRouter(config-line)# ip address 199.255.240.100 255.255.255.0
MegaRouter(config-line)# no shutdown
MegaRouter(config-line)# end
MegaRouter(config)# ip default-gateway 199.255.240.1

(B)
MegaRouter(config)# interface vlan 1
MegaRouter(config-line)# ip address 199.255.241.100 255.255.255.0
MegaRouter(config-line)# no shutdown
MegaRouter(config-line)# end
MegaRouter(config)# ip default-gateway 199.255.240.1

(C)
MegaRouter(config)# interface vlan 1
MegaRouter(config-line)# ip address 199.255.240.100 255.255.0.0
MegaRouter(config-line)# no shutdown
MegaRouter(config-line)# end
MegaRouter(config)# ip default-gateway 199.255.240.1

(D)
MegaRouter(config)# interface vlan 11
MegaRouter(config-line)# ip address 199.255.240.100 255.255.255.0
MegaRouter(config-line)# no shutdown
MegaRouter(config-line)# end
MegaRouter(config)# ip default-gateway 199.255.240.1


Comments