setting up a secondary ip stack (/net.alt) in 9front ==================================================== this example is for a machine with multiple ethernet devices ('#l0', '#l1', ...) we assume that the system is a cpu server and that the first ethernet device '#l0' (connected e.g. to a lan) is already bound to the primary ip stack /net in these instructions we bind the second device '#l1' (e.g. an external connection) to a secondary ip stack /net.alt which will be independent from the primary /net stack steps: - copy /lib/ndb/local to /lib/ndb/external - edit /lib/ndb/external to suit the new stack - mkdir -p /sys/$sysname/service.alt (for listen(8)) - add to /cfg/$sysname/cpustart (executed by /rc/bin/cpurc): bind -b '#l1' /net.alt bind -b '#I1' /net.alt ip/ipconfig -x /net.alt ether /net.alt/ether1 ndb/cs -x /net.alt -f /lib/ndb/external ndb/dns -r -x /net.alt -f /lib/ndb/external aux/listen -q -t /rc/bin/service.auth -d /cfg/$sysname/service.alt /net.alt/tcp - adjust the ip/ipconfig and aux/listen lines above to suit the new stack if needed - add to /cfg/$sysname/namespace (executed by /lib/namespace): bind -a #l1 /net.alt bind -a #I1 /net.alt mount -a /srv/cs_net.alt /net.alt mount -a /srv/dns_net.alt /net.alt - reboot (fshalt -r) helpful commands: netstat /net.alt snoopy /net.alt/ether1 see also: ipconfig(8)