Basic network configuration for Solaris 10

Source: Internet
Author: User
Tags ssh

The Solaris underlying network configuration commands are recorded as follows:

1. Configure SSH to allow root login

Vi/etc/sshd/sshd_config

Permitrootlogin Yes

Reboot SSH Service

Svcadm Restart SSH

2. Network configuration

1 Configure IP address and host name

# vi/etc/hosts

#

:: 1 localhost 127.0.0.1 localhost 192.168.50.200 vmtest loghost

2) Configure the host name

# Cat/etc/nodename

Vmtest

3) Configure the subnet mask

# Cat/etc/netmasks

192.168.50.0 255.255.255.0

4) Configure the Gateway

# Cat/etc/defaultrouter

192.168.50.2

5 Configure DNS Solution

# MV Nsswitch.conf Nsswitch.bak

# MV Nsswitch.dns nsswitch.conf

Configuring DNS

# cat/etc/resolv.conf

NameServer 202.100.192.68

3. Solaris ping command

# ping-s Www.baidu.com

PING www.baidu.com:56 Data bytes

Bytes from 115.239.210.27:icmp_seq=0. time=122. Ms

Bytes from 115.239.210.27:icmp_seq=1. time=87.9 ms

Bytes from 115.239.210.27:icmp_seq=2. time=97.2 ms

CTRL + C Cancel

This article is from "Koumm Linux Technology blog" blog, please be sure to keep this source http://koumm.blog.51cto.com/703525/1263898

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/unix/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.