… | |
… | |
119 | node = welshy |
119 | node = welshy |
120 | hostname = www.example.net # resolve at connection time |
120 | hostname = www.example.net # resolve at connection time |
121 | |
121 | |
122 | node = wheelery |
122 | node = wheelery |
123 | # no hostname, will be determinded dynamically using router1 or router2 |
123 | # no hostname, will be determinded dynamically using router1 or router2 |
124 | |
124 | |
125 | C<gvpe> will execute the C<if-up> script on every hosts, which, for linux, |
125 | C<gvpe> will execute the C<if-up> script on every hosts, which, for linux, |
126 | could look like this for all three hosts: |
126 | could look like this for all three hosts: |
127 | |
127 | |
128 | ifconfig $IFNAME hw ether $MAC mtu $MTU |
128 | ifconfig $IFNAME hw ether $MAC mtu $MTU |
129 | ifconfig $IFNAME 10.0.0.$NODE |
129 | ifconfig $IFNAME 10.0.0.$NODE |
… | |
… | |
138 | ping each other. |
138 | ping each other. |
139 | |
139 | |
140 | If you have an internal C<10.x.x.x> network (with a tighter netmask then |
140 | If you have an internal C<10.x.x.x> network (with a tighter netmask then |
141 | C<255.0.0.0>, e.g. C<10.1.0.0> on C<huffy>, C<10.2.0.0> on C<welshy> and |
141 | C<255.0.0.0>, e.g. C<10.1.0.0> on C<huffy>, C<10.2.0.0> on C<welshy> and |
142 | so on), you can now enable ip-forwarding and proxy-arp (or set the hosts |
142 | so on), you can now enable ip-forwarding and proxy-arp (or set the hosts |
143 | as default gateway), and your three hosts should forward traffic from eahc |
143 | as default gateway), and your three hosts should forward traffic from each |
144 | network to each other. |
144 | network to each other. |
145 | |
145 | |
146 | |
146 | |
147 | =for texinfo menu-item Complex Example:: A non-trivial Example |
147 | =for texinfo menu-item Complex Example:: A non-trivial Example |
148 | |
148 | |
… | |
… | |
164 | =for texinfo include example complex-example/node-up |
164 | =for texinfo include example complex-example/node-up |
165 | |
165 | |
166 | =for texinfo menu-end |
166 | =for texinfo menu-end |
167 | |
167 | |
168 | |
168 | |
|
|
169 | =for texinfo menu-item Index:: Keyword and Concept index |
|
|
170 | |
|
|
171 | =begin texinfo |
|
|
172 | |
|
|
173 | @printindex cp |
|
|
174 | |
|
|
175 | =end texinfo |
169 | |
176 | |
170 | =for texinfo menu-end |
177 | =for texinfo menu-end |
171 | |
178 | |
172 | =begin texinfo footer |
179 | =begin texinfo footer |
173 | |
180 | |