There is no routing involved if the devices are on the same subnet. I've tried configuring an IP route on the switch and enable routing This isn't something you guess at, you should know how these are connected.
I've tried changing switchport modes from access to trunk Otherwise, the switch's default-gateway command has no effect on the hosts connected to it. If everything is in the same VLAN and subnet, you don't need any gateways to communicate. I've tried playing around with default-gateway on the switch Also, you don't "configure" something as a default gateway, that definition only makes sense to the devices connecting to or through it.
I can't figure out in the slightest how to configure it to have an IP address/be the default gatewayĮxactly like you gave the switch's VLAN1 interface an IP. I've tried playing around with default-gateway on the switch, I've tried changing switchport modes from access to trunk, I've tried configuring an IP route on the switch and enable routing. I think the router needs an IP address, I'd like it to be 116.198.32.1, but I can't figure out in the slightest how to configure it to have an IP address/be the default gateway. Sending 5, 100-byte ICMP Echos to 116.198.32.1, timeout is 2 seconds: %SYS-5-CONFIG_I: Configured from console by console Switch#conf tĮnter configuration commands, one per line. All of these devices can ping one another and can ping the vlan1's address, however I cannot ping a 2810 router from either the switch or a device within vlan1 (For example, a computer at 116.198.32.3).
I have a Cisco 2960 switch and some devices connected to it under vlan1.