Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure hostname and IP address for Solaris10.5

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how to configure hostname and IP address in Solaris10.5". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

/ * determine which interfaces are currently installed on the system, and this command reports all interface drivers it finds, regardless of whether the interface is currently configured or not. # dladm show-link/* determines which interfaces are currently detected on the system. # ifconfig-a move * configure and detect each interface. # ifconfig interface plumb up/* configuration IPV4 address # ifconfig-a # ifconfig e1000g1 192.168.204.24 "ifconfig e1000g1 netmask 255.255.255." ifconfig e1000g1 up# ifconfig-an ifconfig e1000g1 up# ifconfig * to enable the interface configuration to continue to exist after reboot, perform the following steps: / * create / etc/hostname.interface file for each interface to be configured. / * for example, to add the e1000g1 interface, create the following file: # vi / etc/hostname.e1000g1192.168.204.244 netmask 255.255.255.0amp * modify the hostname # vi / etc/nodenamesolaris/* / etc/hosts to the soft connection of / etc/inet/hosts file # vi / etc/hosts 192.168.204.244 solaris/* configure the gateway The default gateway can only be configured with one # vi / etc/defaultrouter/*. Use the command route-p option to configure the permanent route # route-p add net 192.168.204.0-netmask 255.255.255.0 192.168.204.100-interface/* reboot # reboot-- r etc/defaultrouter/* * delete the physical interface. # ifconfig interface down unplumb/* for example, to delete the interface qfe1, type: # ifconfig qfe1 down unplumb/* monitoring system # prstat/* uses the process pid to view the files associated with the process and the ip address. Port # pfiles "how to configure hostname and IP address" ends here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report