WLOG - notes something different

network

A lot has been published on the plan9 / 9front network settings, management and usage.

A list of quick reminders.

configuration

get network MAC address

Read the /net/ether0/addr file

cat /net/ether0/addr

get dhcp provided address manually

The command ip/ipconfig is used to configure the network. Running it without any parameters will get the network up:

up/ipconfig

get dhcp provided address automatically

Edit the /lib/ndb/local config file and add a line with system name and mac address with blank ip settings to acquire dhcp provided address.

Line in /lib/ndb/local:

sys=SYSNAME ether=MACADDRESS ip=

set network address manualy

Edit the /lib/ndb/local config file and configure the necessary network settings.

Example configuration in /lib/ndb/local:

auth=SYSNAME authdom=DOMAIN
ipnet=DOMAIN ip=192.168.0.0 ipmask=255.255.255.0
    ipgw=192.168.0.1
    dns=8.8.8.8
    dnsdom=DOMAIN
    authdom=DOMAIN
    auth=SYSNAME
    cpu=SYSNAME
    fs=SYSNAME
sys=SYSNAME ether=MACADDRESS
    ip=192.168.0.12
    ipmask=255.255.255.0
    ipgw=192.168.0.12
    dns=8.8.8.8
    ntp=216.239.35.12

Replace SYSNAME, DOMAIN, MACADDRESS as desired.

connecting

remote shell

Use command rcpu to execute commands on a remote cpu server.

Example connecting to a remote rc shell:

rcpu -h IP/HOSTNAME -u USERNAME

publishing file trees

To achive this a combination of aux/listen1 and /bin/exportfs comands can be used.

A quick and dirty (NO AUTHENTICATIN OR ENCRIPTION) way to publish a folder:

aux/listen1 -tv tcp!*!4444 /bin/exportfs -r /usr/glenda/data/ &

This will publish sub directory data in the user glenda home folder and run it in the background.

If there are multiple users set up on the system a auth/as command can be used to publish that users folder as that user as the system owener.

A quick and dirty (NO AUTHENTICATIN OR ENCRIPTION) way to publish a folder as system owner ass someone else:

auth/as web aux/listen1 -tv tcp!*!4444 /bin/exportfs -r /usr/web/www/ &

mounting files trees

Published files trees can be binded to a local fromder with srv command on plan9 / 9 front systems or mounted via 9p on other unix systems.

srv

srv tcp!192.168.0.12!4444 NAME /n/NAME

The remote tree is not binded to your /n/NAME in your current namespace (shell).

9fs

9fs tcp!192.168.0.12"4444 /n/NAME

The remote tree is not binded to your /n/NAME in your current namespace (shell).

9p

For Linux get a 9p client such as 9pfs since build it 9p support in mount is lacking.

9pfs 192.168.0.12 -p 4444 /mnt/Plan9/