Point to point IP konfigurace
Situace
Na ptp spojich je mozne pouzit ptp adresy z rozsahu lokalniho ethernetu a usetrit si tak potiz se shanenim rozsahu. Pokud router ma ethernetovou adresu treba 192.168.200.1, tak by se adresa 192.168.200.2 (s maskou /32) pouzila pro vsechny ptp spoje u nej.
Priklad:
- router A ethernet 192.168.200.1/24
- router B ethernet 192.168.201.1/24
- spoj A-B 192.168.202.1 a 192.168.202.2 z 192.168.202.0/29
Namisto toho:
- spoj A-B na routeru A 192.168.200.2/32, na routeru B 192.168.201.2/32.
- Neni treba dalsi sitovy rozsah.
Nastaveni
Pomoci ifconfigu:
ifconfig ath0 192.168.200.2 netmask 255.255.255.255 pointopoint 192.168.201.2
Pomoci ip:
ip addr add dev ath0 192.168.200.2 peer 192.168.201.2
V interfaces:
iface ath2 inet static
address 192.168.200.2
netmask 255.255.255.255
pointopoint 192.168.201.2
...