I came across this question:
You need to configure a Catalyst switch so it can be managed remotely. Which of the following
would you use to accomplish this task?
A. Switch(configs)#int fa0/1
B. Switch(configs-if)#ip address 192.168.10.252 255.255.255.0
C. Switch(configs-if)#no shut
D. Switch(configs-if)#ip gateway 192.168.10.254 255.255.255.0
E. Switch(configs)#ip default-gateway 192.168.10.254
F. Switch(configs-if)#no shut
G. Switch(configs)#ip default-network 192.168.10.254
...and the answer given was C.
I chose B and E (not realizing it didn't ask for 2 answers). My thought was, you need to treat the switch kind of like it is a host where you assign it an address and default gateway.
My questions are:
1) Is the answer they give blatantly wrong? (I mean, it's there twice, after all!)
2) Were my answers right (given what answers were available)? (both together)
3) Can you only assign a switch an IP address (and default gateway, if true) using a VLAN interface? Can you assign a Fa0/x port an IP address? If so, what would that be for since switches use their FA ports for MAC address work (L2)?