openindiana下配置静态IP
2012-06-28 15:53
302 查看
Introduction
OpenIndiana151aisbydefaultinstalledtouseGUIWay(easiest)
Usingsu,sudoorpfexectoacquiretherequiredprivileges:Commands
#svcadmdisablesvc:/network/physical:nwam
#svcadmenablesvc:/network/physical:default
#cp/etc/nsswitch.dns/etc/nsswitch.conf
#network-admin
network-admin
Connections
General
DNS
Hosts
Thislastcommandwillopenawindowingnomeinwhichyoucanfillintherequiredvalues.ConsoleWay
Commands(Solaris11andOpenIndiana151):
#ipadmcreate-addr-Tstatic-a1.2.3.4/24e1000g0/v4staticroute-padddefault1.2.3.254#cp/etc/nsswitch.dns/etc/nsswitch.conf#
#vi/etc/hosts
#vi/etc/resolv.conf
Commands:
#svcadmdisablesvc:/network/physical:nwam
#svcadmenablesvc:/network/physical:default
#cp/etc/nsswitch.dns/etc/nsswitch.conf
#vi/etc/hosts
#vi/etc/resolv.conf
#vi/etc/defaultrouter
#vi/etc/hostname.NIC
#svcadmrestartsvc:/network/physical:default
files
Thefollowingfilesneedtobeedited.Changethepartsnecessary,whereoiboxisthecurrentcomputername,example.netisthedomainname(orworkgroup)./etc/hostsPotentialIssuesandWorkarounds
Typicallyitisalwaysagoodideasdoallthisworkinatrueconsole(directkeyboardplusscreenoraBMC/iLOM/IMMdevice)asyoumayloseallnetworkedconnectivitytoyoursystem.firewalls
Theuseofipfilter(afirewall)canpreventthechangesabovefromworking.Tocheckifipfilterisactive#svcsipfilterThefollowingcommandtodisableipfiltermaysolveissuesintryingtogetastaticIPtowork.
#svcadmdisableipfilter
alternatesetoffileschanges
Amoretraditionalsetofchanges(similartowhatsys-unconfigwoulddo),allowingthesystemtohavemultipleIPaddresseswithdifferenthostnamesoneachofyourphysicalinterfaces.ThebelowassumesyouwanttheservertohaveStaticIP:192.168.1.16,hostname:oibox,adefaultrouteof192.168.1.1,andtousegoogle'sDNSnameserversof8.8.8.8and8.8.4.4.ThisiswhatIdo,itisdifferentthantheabove"files"section,andisbasedoninformationatsshkeys
Youmaywishtogenerateanewsetofsshkeystodothisyouwillneedtoremovethekeys,thewillberegeneratedautomaticallyonnextsystemreboot.#rm/etc/ssh/*key*
Other
Thissectionneedstobemergedwith以上转自http://wiki.openindiana.org/oi/Static+IP
以上经本人测试通过
相关文章推荐
- Linux杂谈:解决配置静态ip后eth0网卡启动不了的问题
- CentOS7配置静态IP中NM_CONTROLLED不要设置为NO
- VMware虚拟机中如何配置静态IP
- 给linux配置静态IP
- ESXi5.5下的Centos7虚机配置静态IP
- linux(centos 7版) 配置静态ip
- centos vmare 虚拟机 静态IP 配置
- Ubuntu Server 12.04(14.04)配置静态IP的方法
- centos 7配置静态IP 后 service network restart 成功 IP仍然保持原来值不变
- Centos 之静态IP配置
- VMware配置Centos7静态ip
- centos 6.x 初始化配置,静态IP配置,IPV6禁止等
- CentOS克隆后配置静态IP
- centos 6.6 配置 静态ip 能上网
- VM中Linux配置静态IP
- ubuntu 配置静态 动态 IP
- 虚拟机配置静态 IP 以后无法连接的解决办法
- Linux之静态IP的配置
- Linux VMware虚拟机中如何配置静态IP