The basic setup: what you need before you start

To give a server internet access in Cisco Packet Tracer, you need three things in place: a server device, a router connected to that server, and an ISP cloud object that represents the internet. The server itself cannot reach the internet directly — it needs a router to forward its traffic outward, and that router needs a connection to the ISP cloud to represent a link to the wider network.

Start by placing these three objects on your workspace. Drag a Server from the End Devices category, a Router (usually a 2911 or 2821) from the Routers category, and an ISP cloud from the Cloud category. You do not need to connect them yet — the order of placement does not matter.

Key Takeaways

  • A server reaches the internet through a router, so you must connect the server to a router first using a copper straight-through cable.
  • The router's interface connected to the server needs an IP address in the same subnet as the server, and the router's other interface needs an IP address on a different subnet.
  • The ISP cloud must be connected to the router's outbound interface — the one that does not face the server — using a copper straight-through cable.
  • The server's default gateway must point to the router's IP address on the server's subnet, or the server will not know where to send traffic destined for the internet.
  • You can test the connection by pinging from the server to an address on the ISP cloud's network, such as 8.8.8.8 if you have configured the cloud to use that range.

Connecting the server to the router with the right cable

Click on the server, then click on one of its network ports — usually FastEthernet0. Drag a copper straight-through cable to a port on the router. A straight-through cable is the standard choice here because you are connecting two different types of devices (a server and a router). If you use a crossover cable by mistake, the connection will not work.

After you connect them, both devices will show a green light on the connected port. If you see a red or orange light, the cable type is wrong or the port is not active. Check that you chose a straight-through cable and that both ports are enabled.

Assigning IP addresses to the server and router

The server and router must be on the same subnet so they can talk to each other. Click on the server, go to the Config tab, and select the FastEthernet0 interface. Set the IP address to something like 192.168.1.10 and the subnet mask to 255.255.255.0. Write down the router's port address — you will need it as the server's default gateway.

Now click on the router, go to the Config tab, and select the interface you just connected to the server (usually FastEthernet0/0). Set its IP address to 192.168.1.1 and the subnet mask to 255.255.255.0. This address must be on the same subnet as the server but should be a different host address — routers typically use .1 as their address on a subnet.

The router's other interface — the one that will connect to the ISP cloud — needs a different IP address on a different subnet. Select FastEthernet0/1 and set it to something like 10.0.0.1 with subnet mask 255.255.255.0. This represents the router's connection to the internet side.

Connecting the router to the ISP cloud

Drag a copper straight-through cable from the router's second interface (FastEthernet0/1) to one of the cloud's ports. The cloud object represents the internet, so this cable is the link between your local network and the outside world. You should see a green light on both the router's port and the cloud's port.

The ISP cloud does not require configuration in most basic setups — it simply represents the internet. However, if you want to test connectivity to a specific address, you can configure the cloud's network range. Click on the cloud, go to Config, and set an IP address range that matches the subnet you assigned to the router's outbound interface (10.0.0.0/24 in the example above).

Setting the server's default gateway

The server needs to know where to send traffic that is not destined for its own subnet. This is the default gateway, and it must point to the router's IP address on the server's subnet. Click on the server, go to the Config tab, select the FastEthernet0 interface, and set the Default Gateway field to 192.168.1.1 (the router's address on that subnet).

Without a default gateway, the server will not know how to reach any address outside its own subnet, and all traffic destined for the internet will be dropped. This is one of the most common mistakes in Packet Tracer setups.

Testing the connection with a ping

To verify that the server can reach the internet, use the ping command. Click on the server, go to the Desktop tab, and open the Command Prompt. Type ping 10.0.0.1 to ping the router's outbound interface. If you see replies, the server can reach the router.

For a more complete test, ping an address on the ISP cloud's network. If you configured the cloud to use the 10.0.0.0/24 range, try ping 10.0.0.254. A successful ping means the server's traffic is leaving through the router and reaching the cloud. If the ping times out, check that the default gateway is set correctly on the server and that all cables are connected with green lights showing.

Troubleshooting when the connection does not work

If pings fail, start by checking the physical connections. Look for green lights on all four ports involved: the server's port, the router's two ports, and the cloud's port. A red or orange light means the cable is wrong or the port is disabled. Verify that you used straight-through cables, not crossover cables.

Next, check the IP configuration on both the server and the router. The server and router must be on the same subnet (192.168.1.0/24 in the example), and the server's default gateway must match the router's address on that subnet. Use the show running-config command on the router to verify its settings, or click on the router in the GUI and review the Config tab.

If the server can ping the router but cannot ping the cloud, the problem is usually on the router's outbound side. Check that the router's second interface has an IP address and that it is on a different subnet from the server. The cloud does not need configuration in basic setups, but if you configured it, make sure the IP range matches the router's outbound subnet.

Frequently Asked Questions

Can I use a crossover cable instead of a straight-through cable?

No. A crossover cable is used to connect two similar devices (like two routers or two computers). A straight-through cable connects different types of devices, like a server and a router. Using the wrong cable type will result in a red or orange light on the port and no communication.

What if I do not see a green light after connecting the cable?

Check that you selected a copper straight-through cable, not a crossover or fiber cable. Also verify that both ports are enabled — some ports in Packet Tracer start in a disabled state. If the light is still red or orange, try deleting the cable and creating a new connection.

Do I need to configure the ISP cloud?

No, the cloud works without configuration in basic setups. It simply represents the internet. If you want to test pings to a specific address, you can configure the cloud's IP range, but it is not required for the server to have internet access through the router.

Why does the server not reach the internet even though it is connected to the router?

The most common reason is a missing or incorrect default gateway on the server. The server must know where to send traffic destined for other subnets. Set the default gateway to the router's IP address on the server's subnet, and the connection should work.

Can I use a wireless connection instead of a wired cable?

Yes, but you will need to add wireless devices. Use a wireless router instead of a standard router, add a wireless access point, and configure the server with a wireless network interface. The configuration process is similar, but wireless setup in Packet Tracer requires additional steps for authentication and SSID configuration.