配置HP-UNIX下配置IP地址

anycall2010發表於2009-07-10

Cd /etc/rc.config.d

Vi netconfig

# LAN 0 埠配置
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]="35.1.90.23"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]="35.1.90.255"
INTERFACE_STATE[0]="up"
DHCP_ENABLE[0]=0
INTERFACE_MODULES[0]=""

#LAN2埠配置
INTERFACE_NAME[1]=lan2
IP_ADDRESS[1]="10.0.0.2"
SUBNET_MASK[1]="255.255.255.0"
BROADCAST_ADDRESS[1]="10.0.0.255"
INTERFACE_STATE[1]="up"
DHCP_ENABLE[1]=0
INTERFACE_MODULES[1]=""

#路由配置:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]="255.255.255.0"
ROUTE_GATEWAY[0]="35.1.90.254"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
ROUTE_SOURCE[0]=""


節點1配置:

# LAN 0 埠配置
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]="35.1.90.21"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]="35.1.90.255"
INTERFACE_STATE[0]="up"
DHCP_ENABLE[0]=0
INTERFACE_MODULES[0]=""

#LAN2埠配置
INTERFACE_NAME[1]=lan2
IP_ADDRESS[1]="10.0.0.1"
SUBNET_MASK[1]="255.255.255.0"
BROADCAST_ADDRESS[1]="10.0.0.255"
INTERFACE_STATE[1]="up"
DHCP_ENABLE[1]=0
INTERFACE_MODULES[1]=""

#路由配置:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]="255.255.255.0"
ROUTE_GATEWAY[0]="35.1.90.254"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
ROUTE_SOURCE[0]=""

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8334342/viewspace-608791/,如需轉載,請註明出處,否則將追究法律責任。

相關文章