In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you the "solaris 10 static IP, static routing and DNS resolution configuration example analysis", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "solaris 10 static IP, static routing and DNS resolution configuration example analysis" this article.
Configuring IP addresses on the Solaris 10 operating system is easy to configure, but more practical. Simple static IP address configuration suitable for regular projects. Although it is very simple, I did not notice the method of adding static routes before. I put it into practice today and record archiving.
Only the network card bge0 is activated when the operating system is installed by default, and you need to activate bge1 to configure static IP.
Configure the DNS parser configuration so that the operating system can use DNS to resolve servers on the network.
The server sol10 needs to point the default gateway to 10.1.9.182, but it also needs to be able to access the network segments 192.168.6.0 and 192.168.0, through the gateway 192.168.9.1.
Solaris 10 adds static routes by using the route-p command, and the added routes are recorded in the / etc/inet/static_routes file.
Setting
Modify / etc/netmasks to configure the network mask for each network segment. Note that the mask for the 192.168.6.0 segment is 255.255.254.0 (including 192.168.6.x and 192.168.7.x)
192.168.9.0 255.255.255.0
192.168.6.0 255.255.254.0
192.168.8.0 255.255.255.0
10.1.9.0 255.255.255.0
Set / etc/hosts configuration, the configuration in the hosts file will be used to specify the network card interface IP. Note that host name resolution must ensure at least one fully resolved name, otherwise the system sendmail will report an error.
:: 1 localhost127.0.0.1 localhost192.168.9.221 v245 v245.x.net loghost10.1.9.221 v245-i10.1.9.182 gw
Set the identification of the two network cards. If there is no plumb option, solaris cannot use the network card bge1. Usually, after installing the solaris operating system, you only see the first network card (IP), because only the first network card is activated during the installation. For subsequent configuration, you need to use the plumb parameter to activate the Nic for further configuration. For example, on the sun Fire v245 server, the motherboard integrates four Gigabit Nic interfaces.
Ifconfig bge0 plumbifconfig bge1 plumb
If you want to activate Nic 2 and Nic 3, use the commands ifconfig bge2 plumb and ifconfig bge3 plumb as well.
Create a configuration file / etc/hostname.bge0, which is the hostname corresponding to the network card interface bge0 setting IP. The system will set the network card IP (192.168.9.221) according to the IP configured in the hosts file.
V245
Create a configuration file / etc/hostname.bge1, which is the hostname corresponding to the network card interface bge1 setting IP. The system will set the network card IP according to the IP configured in the hosts file (that is, 10.1.9.221)
V245muri
Create / etc/defaultrouter, which is the hostname of the default gateway. The system will set the default gateway IP (that is, 10.1.9.182) according to the IP configured in the hosts text.
Gw
Set up static routes and enter commands in the system
Route-p add 192.168.6.0 192.168.9.1route-p add 192.168.8.0 192.168.9.1
At this point, check the configuration file / etc/inet/static_routes with the following contents
# File generated by route (1m)-do not edit.192.168.6.0 192.168.9.1192.168.0 192.168.9.1
Set DNS resolution configuration / etc/resolv.conf
Nameserver 8.8.8.8nameserver 8.8.4.4
Configure the parsing order / etc/nsswitch.conf, and make sure to use the DNS configuration line as follows. Note that by default (such as when DNS is not specified during the installation of the operating system), it is statically parsed only through hosts files, not DNS parsing. So make sure that the parsing configuration order is files dns, so that the host cannot get the DNS parsing from the hosts file and then do the DNS query.
Hosts: files dnsipnodes: files dns
Restart the system and verify that the configuration is correct.
These are all the contents of the article "sample Analysis of static IP, static routing, and DNS parsing configuration in solaris 10. Thank you for reading!" I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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: 224
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.