Packet Tracer won't assign ip address on a switch
MrCoolTech
Registered Users Posts: 2 ■□□□□□□□□□
in CCNA & CCENT
I am using Packet Tracer version 6.1.1 on my switch 2960 upon typing these commands
S3(config)#interface fa
S3(config)#interface fastEthernet0/5
S3(config-if)#ip address 192.168.1.13 255.255.255.0
^
% Invalid input detected at '^' marker.
I am getting Invalid input it does not reconfignise "address" command i have use question mark ? and there is no buildin command address so how do you assign a ip address ? I have google upon google and I get the same result.
have reinstall Packet tracer , any ideas would be welcome.
S3(config)#interface fa
S3(config)#interface fastEthernet0/5
S3(config-if)#ip address 192.168.1.13 255.255.255.0
^
% Invalid input detected at '^' marker.
I am getting Invalid input it does not reconfignise "address" command i have use question mark ? and there is no buildin command address so how do you assign a ip address ? I have google upon google and I get the same result.
have reinstall Packet tracer , any ideas would be welcome.
Comments
-
Alex90 Member Posts: 289Hi mate,
You can't assign an ip address to an interface on a 2960 because it's only a L2 switch. You could give the native vlan an ip address:
#int vlan 1
#ip address 192.168.1.13 255.255.255.0
Or use a L3 switch instead? -
TechGuru80 Member Posts: 1,539 ■■■■■■□□□□Correct...you se the network on the vlan giving it an IP and then any devices plugged into ports in that vlan need to have IPs in that network.
-
TechGuru80 Member Posts: 1,539 ■■■■■■□□□□
-
MrCoolTech Registered Users Posts: 2 ■□□□□□□□□□Many thanks guys for that feed back and suggestion , I have now use layer 3 switch and all is working , it was L2 Switch issue you are right you can't assign IP to layer 2 switchport .
I guess I have lots to learn before I become a guru -
bharvey92 Member Posts: 420 ■■■□□□□□□□TechGuru80 wrote: »Correct...you se the network on the vlan giving it an IP and then any devices plugged into ports in that vlan need to have IPs in that network.
Spot on, alternatively on a L3 switch you could make an interface a Routed port (which you could assign an IP address too using the "#no switchport" command.2018 Goal: CCIE Written [ ]