Wednesday, August 10, 2011
Unix/Linux network related information
Some times you may need to find/modify network related information in Linux/Unix systems. You can find most of the network related information from following table :
Network IP configuration :
AIX : lsattr -E -l inet0
HP-UX : /etc/rc.config.d/netconf
LINUX(RedHat): /etc/sysconfig/network-scripts/
Solaris : /etc/hostname.*
/etc/inet/*
/etc/defaultrouter
Hosts IP addresses :
AIX : /etc/hosts
HP-UX : /etc/hosts
LINUX(RedHat): /etc/hosts
Solaris : /etc/inet/hosts
Name service switch :
AIX : /etc/netsvc.conf
HP-UX : /etc/nsswitch.conf
LINUX(RedHat): /etc/nsswitch.conf
Solaris : /etc/nsswitch.conf
Network parameters :
AIX : no -a
HP-UX : ndd -h
LINUX(RedHat): sysctl -a | grep net
Solaris : ndd /dev/[tcp|ip] ?
Routing daemon :
AIX : gated
HP-UX : gated
LINUX(RedHat): routed
Solaris : in.routed
NIC Configurations :
AIX : ifconfig -a
HP-UX : lanscan -v
LINUX(RedHat): ifconfig -a
Solaris : ifconfig -a
Secondary IP Address :
AIX : ifconfig en0 alias IP
HP-UX : ifconfig lan0:1 IP
LINUX(RedHat): modprobe ip_alias
ifconfig eth0:1 IP
Solaris : ifconfig hme0:1 IP up
Login prompt :
AIX : HERALD @
/etc/security/login.cfg
HP-UX : telnetd -b /etc/issue
LINUX(RedHat): /etc/issue
Solaris : BANNER @
/etc/default/telnetd
Increase the # of pseudo-terminals :
AIX : odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed
"s/0-64/0-512/" |
odmchange -q "attribute=num and uniquetype=pty/pty/pty" -o PdAt
chdev -l pty0 -anum=256 -P
reboot
HP-UX : rebuild your kernel with these new values NPTY=#
NSTRPY=#
reboot
insf -d ptys -n #
insf -d ptym -n #
insf -d pts -s # -e -v
LINUX(RedHat): cd /dev
./MAKEDEV -v pty
Solaris : {/etc/system}
set pt_cnt = # {SYSV}
set npty = # {BSD}
{/etc/iu.ap}
ptsl 0 # ldterm ttcompat
halt
boot -r
Maximum # of ptys :
AIX : 512
HP-UX : {MAXUSERS}
LINUX(RedHat): 256
Solaris : 176 {BSD}
3000 {SYSV}
Remote Shell :
AIX : remsh
rsh
HP-UX : remsh
LINUX(RedHat): rsh
Solaris : rsh
YP/NIS service binder :
AIX : /usr/lib/netsvc/yp/ypbind
HP-UX : /usr/lib/netsvc/yp/ypbind
LINUX(RedHat): /sbin/ypbind
Solaris : /usr/lib/netsvc/yp/ypbind
No Response to "Unix/Linux network related information"
Leave A Reply