This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
navody:server:gre [2015/11/04 10:32] – vytvořeno krcmar | navody:server:gre [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== GRE tunely ====== | ||
- | Pokud potřebujete propojit jednoduše dva různé servery (virtuální nebo fyzické), je nejjednodušší použít [[https:// | ||
- | |||
- | Na prvním serveru (185.8.165.156) provedete následující konfiguraci: | ||
- | |||
- | < | ||
- | [root@185.8.165.156]# | ||
- | [root@185.8.165.156]# | ||
- | |||
- | Na tom druhém (37.205.10.152) pak analogicky: | ||
- | |||
- | < | ||
- | [root@37.205.10.152]# | ||
- | [root@37.205.10.152]# | ||
- | |||
- | Teď už by vám měl fungovat: | ||
- | |||
- | < | ||
- | |||
- | ===== Statická konfigurace RHEL/CentOS ===== | ||
- | |||
- | < | ||
- | DEVICE=tunnel0 | ||
- | BOOTPROTO=none | ||
- | ONBOOT=no | ||
- | TYPE=GRE | ||
- | PEER_OUTER_IPADDR=37.205.10.152 | ||
- | PEER_INNER_IPADDR=185.8.165.156 | ||
- | MY_INNER_IPADDR=192.168.1.1</ | ||
- | |||
- | < | ||
- | DEVICE=tunnel0 | ||
- | BOOTPROTO=none | ||
- | ONBOOT=no | ||
- | TYPE=GRE | ||
- | PEER_OUTER_IPADDR=185.8.165.156 | ||
- | PEER_INNER_IPADDR=37.205.10.152 | ||
- | MY_INNER_IPADDR=192.168.1.2</ | ||
- | |||
- | Poté na obou stranách tunel nahodíme: | ||
- | |||
- | < | ||
- | |||
- | ===== Statická konfigurace Debian/ | ||
- | |||
- | < | ||
- | [root@37.205.10.152]# | ||
- | |||
- | auto tunnel0 | ||
- | iface tunnel0 inet tunnel | ||
- | mode gre | ||
- | netmask 255.255.255.255 | ||
- | address 37.205.10.15 | ||
- | dstaddr 185.8.165.156 | ||
- | endpoint 192.168.1.2 | ||
- | local 192.168.1.1 | ||
- | ttl 255</ | ||
- | | ||
- | < | ||
- | [root@185.8.165.156]# | ||
- | |||
- | auto tunnel0 | ||
- | iface tunnel0 inet tunnel | ||
- | mode gre | ||
- | netmask 255.255.255.255 | ||
- | address 185.8.165.156 | ||
- | dstaddr 37.205.10.15 | ||
- | endpoint 192.168.1.1 | ||
- | local 192.168.1.2 | ||
- | ttl 255</ | ||
- | | ||
- | Poté na obou stranách tunel nahodíme: | ||
- | |||
- | < |