ChorusOS 5.0 System Administrator's Guide

Appendix A Appendix A: System Image Configuration Summary

.

Table A-1 Networking Features, Tunables, Processes and Scripts

If you want... 

Set... 

Include the following in the system image... 

DHCP (client)

  • BPF=true

  • dhclient.cf script

  • dhclient process

  • sysadm.ini

Ethernet 

 

  • sysadm.ini

ifconfig (built-in C_INIT(1M) command)

  

mount (built-in C_INIT(1M) command)

  

netstat (built-in C_INIT(1M) command)

  

PPP (client)

  • VTTY=true

  • PPP=true

  • iom.nfs.rsize=1024

  • iom.nfs.wsize=1024

  • chat.cmd chat script (if needed to configure a modem)

  • chat process (if needed to configure a modem)

  • pppstart process

  • sysadm.ini

RARP (client)

  • BPF=true

  • BPF=true

  • sysadm.ini commands

route (built-in C_INIT(1M) command)

  
   

Table A-2 Networking sysadm.ini Commands

If you want... 

Adapt the following example sysadm.ini commands...

DHCP (client)

# Create an Ethernet interface
#
mkdev ifeth 0 /pci/epic100
#mkdev ifeth 1 /pci/pci-isa/smc1660-1

# Create a Berkeley Packet Filter
mkdev bpf 0
mknod /dev/bpf0 c 20 0

# Create a loopback interface
#
mkdev lo 0

# Configure the Ethernet interface with DHCP
  /image/sys_bank/dhclient ifeth0 &
ifwait ifeth0

# Configure the loopback interface
#
ifconfig lo0 127.0.0.1 up

Ethernet 

# Create an Ethernet interface
#
mkdev ifeth 0 /pci/epic100
#mkdev ifeth 1 /pci/pci-isa/smc1660-1

# Create a loopback interface
#
mkdev lo 0

# Configure the interfaces using ifconfig
# (IP address is known)
#
ifconfig ifeth0 129.157.197.88 netmask 0xffffff00 \ 
broadcast 129.157.197.255
ifconfig lo0 127.0.0.1 up

IP forwarding

#
# Enable IP forwarding
#
/bin/sysctl -w net.inet.ip.forwarding=1
#
# Deliver packets addressed to the local system
#
route add -host 129.157.197.88 lo0

#
# Send other packets back out to the Ethernet
#
route add default -interface ifeth0

PPP (client)

mkdev tty 0 /pci/pci-isa/ns16550-2      # Create a tty interface
                                        # using the second serial port
                                        # because the first is reserved
                                        # for the tip line

mkdev ppp 0                             # Create a PPP interface that is
                                        # not bound to the tty yet.

mknod /dev/tty01 c 0 0                  # Create a tty special file

#mknod /dev/ttyp0 c 5 0                # Pseudo tty devices, needed
#mknod /dev/ptyp0 c 6 0                # for dialup on demand.

# Enable PPP
# Requires pppstart  in system image
#
  /image/sys_bank/pppstart &

pppd /dev/tty01                         # Open a PPP line.

# Wait for the interface to be up.
#
ifwait ppp0

RARP (client)

# Create an Ethernet interface
#
mkdev ifeth 0 /pci/epic100
#mkdev ifeth 1 /pci/pci-isa/smc1660-1

# Create a loopback interface
#
mkdev lo 0

# Create a Berkeley Packet Filter for RARP
mkdev bpf 0
mknod /dev/bpf0 c 20 0

# Configure the Ethernet interface with RARP
rarp ifeth0

# Configure the loopback interface
#
ifconfig lo0 127.0.0.1 up
  

See the appropriate document in the ChorusOS 4.0 Target Family Documentation Collection for serial device IDs for other serial line hardware.

Table A-3 Networking Features, Tunables, Processes and Scripts

If you want... 

Set... 

Include the following in the system image... 

DHCP (client)

  • BPF=true

  • dhclient.cf script

  • dhclient process

  • sysadm.ini

Ethernet 

 

  • sysadm.ini

ifconfig (built-in C_INIT(1M) command)

  

mount (built-in C_INIT(1M) command)

  

netstat (built-in C_INIT(1M) command)

  

PPP (client)

  • VTTY=true

  • PPP=true

  • iom.nfs.rsize=1024

  • iom.nfs.wsize=1024

  • chat.cmd chat script (if needed to configure a modem)

  • chat process (if needed to configure a modem)

  • pppstart process

  • sysadm.ini

RARP (client)

  • BPF=true

  • BPF=true

  • sysadm.ini commands

route (built-in C_INIT(1M) command)

  
   

Table A-4 Networking sysadm.ini Commands

If you want... 

Adapt the following example sysadm.ini commands...

DHCP (client)

# Create an Ethernet interface
#
mkdev ifeth 0 /pci/epic100
#mkdev ifeth 1 /pci/pci-isa/smc1660-1

# Create a Berkeley Packet Filter
mkdev bpf 0
mknod /dev/bpf0 c 20 0

# Create a loopback interface
#
mkdev lo 0

# Configure the Ethernet interface with DHCP
  /image/sys_bank/dhclient ifeth0 &
ifwait ifeth0

# Configure the loopback interface
#
ifconfig lo0 127.0.0.1 up

Ethernet 

# Create an Ethernet interface
#
mkdev ifeth 0 /pci/epic100
#mkdev ifeth 1 /pci/pci-isa/smc1660-1

# Create a loopback interface
#
mkdev lo 0

# Configure the interfaces using ifconfig
# (IP address is known)
#
ifconfig ifeth0 129.157.197.88 netmask 0xffffff00 \ 
broadcast 129.157.197.255
ifconfig lo0 127.0.0.1 up

IP forwarding

#
# Enable IP forwarding
#
  /bin/sysctl -w IPCTL_FORWARDING=1

#
# Deliver packets addressed to the local system
#
route add -host 129.157.197.88 lo0

#
# Send other packets back out to the Ethernet
#
route add default -interface ifeth0

PPP (client)

mkdev tty 0 /pci/pci-isa/ns16550-2      # Create a tty interface
                                        # using the second serial port
                                        # because the first is reserved
                                        # for the tip line

mkdev ppp 0                             # Create a PPP interface that is
                                        # not bound to the tty yet.

mknod /dev/tty01 c 0 0                  # Create a tty special file

#mknod /dev/ttyp0 c 5 0                # Pseudo tty devices, needed
#mknod /dev/ptyp0 c 6 0                # for dialup on demand.

# Enable PPP
# Requires pppstart in system image
#
  /image/sys_bank/pppstart &

pppd /dev/tty01                         # Open a PPP line.

# Wait for the interface to be up.
#
ifwait ppp0

RARP (client)

# Create an Ethernet interface
#
mkdev ifeth 0 /pci/epic100
#mkdev ifeth 1 /pci/pci-isa/smc1660-1

# Create a loopback interface
#
mkdev lo 0

# Create a Berkeley Packet Filter for RARP
mkdev bpf 0
mknod /dev/bpf0 c 20 0

# Configure the Ethernet interface with RARP
rarp ifeth0

# Configure the loopback interface
#
ifconfig lo0 127.0.0.1 up
  

See the appropriate document in the ChorusOS 5.0 Reference Target Description collection for serial device IDs for other serial line hardware.