network.xml 931 B

123456789101112131415161718
  1. <config>
  2. <interface hosts="host1" address="192.168.1.1" netmask="255.255.255.0" />
  3. <interface hosts="host2" address="192.168.2.41" netmask="255.255.255.0" />
  4. <interface hosts="router" names="wlan0" address="192.168.1.254" netmask="255.255.255.0" />
  5. <interface hosts="router" names="wlan1" address="192.168.2.254" netmask="255.255.255.0" />
  6. <!--
  7. <wireless id="W1" hosts="host1"/>
  8. <wireless id="W1" hosts="router" interfaces="wlan0"/>
  9. <wireless id="W2" hosts="host2"/>
  10. <wireless id="W2" hosts="router" interfaces="wlan1"/>
  11. -->
  12. <route hosts="host1" destination="*" gateway="192.168.1.254" interface="wlan0"/>
  13. <route hosts="host2" destination="*" gateway="192.168.2.254" interface="wlan0"/>
  14. <route hosts="router" destination="192.168.1.0" gateway="*" netmask="255.255.255.0" interface="wlan0"/>
  15. <route hosts="router" destination="192.168.2.0" gateway="*" netmask="255.255.255.0" interface="wlan1"/>
  16. </config>