Chinaunix首页 | 论坛 | 博客
  • 博客访问: 548118
  • 博文数量: 159
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 1264
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-20 14:15
个人简介

LoveMoney

文章存档

2016年(2)

2015年(8)

2014年(148)

2011年(1)

分类: AIX

2014-05-22 15:44:20

Partition Activation
    |
    |
Run time init        ------------->Process /etc/inittab
    |
    |
/sbin/rc.boot calls cfgmgr     ------------->Process /etc/rc.net
    |
    |
/etc/rc.tcpip    ------------->Start TCP/IP subsystems|syslogd|snmpd|sendmail|portmap|Inetd-->/etc/inetd.con
    |
    |    
/etc/rc.nfs
    |
Login
上图是AIX网络启动顺序
smit addvlan建立vlan网卡
AIX建议只有主网卡使用主机名 目的是为了避免主机通讯时解析困难
配置主网卡IP使用smit mktcpip
配置主机名:
chdev –l inet0 –a hostname=sys1 永久生效
hostname sys1 重启后失效
配置IP:
chdev -l en0 -a netaddr=192.168.0.1 –a netmask=255.255.255.0 -a state=up 永久
ifconfig en0 192.168.0.1 255.255.255.0 up 重启失效
# netstat -in 查看本机网络情况
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
en0 1500 link#2 0.9.6b.4e.38.b0 3136 0 498 0 0
en0 1500 10.1 10.1.0.250 3136 0 498 0 0
en1 1500 link#3 0.9.6b.4e.38.b1 0 0 4 0 0
en1 1500 10.2 10.2.0.251 0 0 4 0 0
en4* 1500 link#4 0.6.29.84.ec.be 0 0 1 0 0
en4* 1500 192.168.1 192.168.1.145 0 0 1 0 0
en3* 1500 link#5 0.9.6b.4e.38.b3 0 0 0 0 0
en3* 1500 0 0.0.0.0 0 0 0 0 0
lo0 16896 link#1 34 0 38 0 0
lo0 16896 127 127.0.0.1 34 0 38 0 0
lo0 16896 ::1 34 0 38 0 0
# netstat -a 查看本机端口情况
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 0 *.daytime *.* LISTEN
tcp 0 0 *.ftp *.* LISTEN
tcp 0 0 *.telnet *.* LISTEN
tcp4 0 0 *.time *.* LISTEN
tcp4 0 0 *.sunrpc *.* LISTEN
tcp4 0 0 *.smux *.* LISTEN
tcp 0 0 *.exec *.* LISTEN
tcp 0 0 *.login *.* LISTEN
tcp 0 0 *.shell *.* LISTEN
tcp4 0 0 *.rmc *.* LISTEN
tcp4 0 0 *.x11 *.* LISTEN
tcp6 0 0 *.x11 *.* LISTEN
tcp4 0 0 *.dtspcd *.* LISTEN
tcp4 0 0 *.godm *.* LISTEN
tcp4 0 0 *.clcomd *.* LISTEN
tcp4 0 0 *.filenet- *.* LISTEN
tcp4 0 0 *.filenet- *.* LISTEN
tcp4 0 0 *.filenet- *.* LISTEN
tcp4 0 0 *.wsmserve *.* LISTEN
tcp4 0 0 p44.telnet 10.1.0.234.ansoft-l ESTABLISHED
tcp4 0 0 loopback.smux loopback.filenet- ESTABLISHED
tcp4 0 0 loopback.filenet- loopback.smux ESTABLISHED
tcp4 0 1790 p44.telnet 10.1.0.20.tsb2 ESTABLISHED
udp4 0 0 *.daytime *.*
udp4 0 0 *.time *.*
udp4 0 0 *.sunrpc *.*
udp4 0 0 *.snmp *.*
udp4 0 0 *.xdmcp *.*
udp4 0 0 *.syslog *.*
udp4 0 0 *.ntalk *.*
udp4 0 0 *.rmc *.*
udp4 0 0 *.xmquery *.*
udp4 0 0 *.filenet- *.*
udp4 0 0 *.filenet- *.*
more /etc/hosts
# Internet Address Hostname # Comments
# 192.9.200.1 net0sample # ethernet name/address
# 128.100.0.1 token0sample # token ring name/address
# 10.2.0.2 x25sample # x.25 name/address
127.0.0.1 loopback localhost p44 # loopback (lo0) name/address
10.1.0.250 p44
解析过程
DNS--------auth---------local
修改默认解析过程
/etc/netsvc.conf
route -f 是清除下AIX路由表 HA环境中用的比较多。
ifconfig en1 alias 172.31.0.1 255.255.0.0 指定别名-----HA环境中比较多

阅读(1170) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~