networkConfig.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0"?>
  2. <config>
  3. <interface hosts="Source1" names="eth0" address="192.168.11.100" netmask="255.255.255.0"/>
  4. <interface hosts="Host1" names="eth0" address="192.168.25.100" netmask="255.255.255.0"/>
  5. <interface hosts="Host2" names="eth0" address="192.168.22.100" netmask="255.255.255.0"/>
  6. <interface hosts="Host3" names="eth0" address="192.168.35.100" netmask="255.255.255.0"/>
  7. <interface hosts="Source2" names="eth0" address="192.168.33.100" netmask="255.255.255.0"/>
  8. <interface hosts="R1" names="eth0" address="192.168.12.1" netmask="255.255.255.0"/>
  9. <interface hosts="R1" names="eth1" address="192.168.13.1" netmask="255.255.255.0"/>
  10. <interface hosts="R1" names="eth2" address="192.168.11.1" netmask="255.255.255.0"/>
  11. <interface hosts="R2" names="eth0" address="192.168.12.2" netmask="255.255.255.0"/>
  12. <interface hosts="R2" names="eth1" address="192.168.25.2" netmask="255.255.255.0"/>
  13. <interface hosts="R2" names="eth2" address="192.168.22.2" netmask="255.255.255.0"/>
  14. <interface hosts="R3" names="eth0" address="192.168.13.3" netmask="255.255.255.0"/>
  15. <interface hosts="R3" names="eth1" address="192.168.33.3" netmask="255.255.255.0"/>
  16. <interface hosts="R3" names="eth2" address="192.168.35.3" netmask="255.255.255.0"/>
  17. <route hosts="Source1" destination="*" gateway="R1"/>
  18. <route hosts="Host1 Host2" destination="*" gateway="R2"/>
  19. <route hosts="Source2 Host3" destination="*" gateway="R3"/>
  20. <route hosts="R1" destination="192.168.22.0" netmask="255.255.255.0" gateway="R2"/>
  21. <route hosts="R1" destination="192.168.25.0" netmask="255.255.255.0" gateway="R2"/>
  22. <route hosts="R1" destination="192.168.33.0" netmask="255.255.255.0" gateway="R3"/>
  23. <route hosts="R1" destination="192.168.35.0" netmask="255.255.255.0" gateway="R3"/>
  24. <route hosts="R2" destination="192.168.11.0" netmask="255.255.255.0" gateway="R1"/>
  25. <route hosts="R2" destination="192.168.33.0" netmask="255.255.255.0" gateway="R1"/>
  26. <route hosts="R2" destination="192.168.35.0" netmask="255.255.255.0" gateway="R1"/>
  27. <route hosts="R3" destination="192.168.11.0" netmask="255.255.255.0" gateway="R1"/>
  28. <route hosts="R3" destination="192.168.22.0" netmask="255.255.255.0" gateway="R1"/>
  29. <route hosts="R3" destination="192.168.25.0" netmask="255.255.255.0" gateway="R1"/>
  30. <multicast-group hosts="Host2" address="226.1.1.1"/>
  31. </config>