Brief-Wishbone9091
Member
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:7c:17:30 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.73/24 brd 192.168.1.255 scope global dynamic noprefixroute enp0s3
valid_lft 85955sec preferred_lft 85955sec
inet6 2400:1a00:b020:4822:a00:27ff:fe7c:1730/64 scope global dynamic noprefixroute
valid_lft 820sec preferred_lft 820sec
inet6 fe80::a00:27ff:fe7c:1730/64 scope link noprefixroute
valid_lft forever preferred_lft forever
Assume this scenario.
As per jodies calculator,
IP Calculator / IP Subnetting
jodies.de
I can use any host ip ranging from 192.168.1.1 to 192.168.1.254
But when I randomly select ip address like 192.168.1.10 or say 1.69, the server doesn't get access to the internet?
I mean I can open the server, the serve can network with other such servers but not with the internet.
The ping 8.8.8.8 will show(in case of 1.10 ip):
- reply from 192.168.1.10 destination host unreachable.
I feel like there's some rocket science going behind that I am not understanding. Can anyone explain? Or am I trying to do the impossible?