NetBSD network setup & SSH

Network setupNetwork setup

manually

hostname SHORT
ifconfig xennet0 inet x.x.x.x/xx up
route add default x.x.x.x

at boot time

echo SHORT > /etc/myname
echo inet x.x.x.x/xx up > /etc/ifconfig.xennet0
echo x.x.x.x > /etc/mygate
#service network restart

static name resolution

vi /etc/hosts

127.0.0.1 localhost
x.x.x.x   SHORT.example.local SHORT
x.x.x.x   gw

DNS

cat > /etc/resolv.conf <<EOF
#search example.local
nameserver 208.67.222.222
nameserver 208.67.220.220
EOF

SSHDSSHD

See SSHD.


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT