sowmini.varad...@oracle.com wrote: > On (06/22/10 08:40), Ben wrote: >> Secondly, if it is, how do I do it? (I know about configuring the >> zone, it's just the DHCP server and router bit I'm stuck on) > > To configure a dhcp server, your best option is to use dhcpmgr(1m). E.g., > http://docs.sun.com/source/819-6461-13/appendixA.html#50401303_76516 > > To configure in.routed, you have to set up the desired configuration > for in.routed (I'm assuming you want to set up a router that runs RIPv2 > or rdisc) and then enable routing using routeadm: > > # routeadm -e ipv4-forwarding -e ipv4-routing -u > > See http://docs.sun.com/app/docs/doc/816-4554/gcvjj?l=en&a=view&q=routing
Your answer is technically correct, but I suspect that by saying "router," the original poster may well actually have meant "NAT." It's sort of common usage ... unfortunately. To configure NAT, use /etc/ipf/ipnat.conf. See ipnat(1M) and ipnat(4). (The latter of which is, sadly, just plain missing on OpenSolaris, but can be googled.) >> Thirdly, once I've created the zone and configured it as a DHCP >> server, how can I create static IPs for machines based on their MAC >> address? > > Not sure I understand that question- "static IPs based on MAC address"? > IP addresses are constructed indpendant of MAC addresses- different > layers of the networking stack. You can statically assign particular IP addresses to be handed out to particular clients based on a client ID, which is (by default) a MAC address. You just have to set up entries for 01mmmmmmmmmmmm in your DHCP network table, where "mmmmmmmmmmmm" is the MAC address in hex, and the leading "01" identifies the entry as Ethernet. See pntadm(1M). I'm another person using OpenSolaris with in.dhcpd (Solaris DHCP) and IP Filter for NAT at home. There are several of us out here so if you (the original poster) have questions after reading through the documentation and trying out the commands, post them here. -- James Carlson 42.703N 71.076W <carls...@workingcode.com> _______________________________________________ networking-discuss mailing list networking-discuss@opensolaris.org