Grokking Operating Systems and Networking for Backend Engineers
0% completed
Network Namespaces and Virtual Interfaces
Two copies of Checkout run on one Linux machine, and both listen on port 8080. Neither fails with "Address already in use", and the host's own ss shows no listener on port 8080 at all:
Output:
$ ip netns exec checkout1 ss -tln State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess LISTEN 0 16 0.0.0.0:8080 0.0.0.0:* $ ip netns exec checkout2 ss -tln State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess LISTEN 0 16 0.0.0.0:8080 0.0.0.0:* $ ss -tln sport = :8080 (the host)
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%