クラスA プライベートIPアドレス

/ Linux/Unix / Comment[0]
The Internet Assigned Numbers Authority (IANA) has reserved the 
following three blocks of the IP address space for private internets:

10.0.0.0 - 10.255.255.255 (10/8 prefix)
172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
192.168.0.0 - 192.168.255.255 (192.168/16 prefix)

We will refer to the first block as "24-bit block", the second as
"20-bit block", and to the third as "16-bit" block. Note that (in
pre-CIDR notation) the first block is nothing but a single class A
network number, while the second block is a set of 16 contiguous
class B network numbers, and third block is a set of 256 contiguous
class C network numbers.

なんとなくプライベートIPアドレスをクラスAにしてみた
192.168.0.0より10.0.0.0の方が打ちやすいですしおすし

ルータを設定


PCを設定
$ sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.0.0.2
netmask 255.0.0.0
network 10.0.0.0
broadcast 10.255.255.255
gateway 10.0.0.1

$ sudo /etc/init.d/networking restart

関連記事

コメント

:
:
:
:
:
管理人のみ表示を許可