In the Solaris system, view the TCP/IP configuration

Source: Internet
Author: User

Modifying TCP/IP configurations in the Solaris system is cumbersome.

Local Machine name/etc/Hostname. Pcn0
Point to/etc/inet/hosts soft link, record the ing between IP address and machine name/etc/Hosts
Point to the soft link of/etc/inet/netmasks, and record the ing between the network address and subnet mask/etc/Netmasks
Default Gateway/etc/Defaultrouter

 

# Cd/etc
# Ls host *
Hostname. ce0 hosts
# More hostname *
J ** DB
# More hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.1.115 J ** dB loghost
# More netmasks
#
# The netmasks file Associates Internet Protocol (IP) addres
# Masks with IP network numbers.
#
# Network-number netmask
#
# The term network-number refers to a number obtained from t
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "Decimal dot" notation, e. g:
#
#128.32.0.0 255.255.255.0
#
192.168.1.0 255.255.255.0
# More defaultrouter
192.168.1.1
# More defaultdomain
Defaultdomain: This file or directory does not exist.
# Cd inet
# More ipnodes
#
# Internet host table
#
: 1 localhost
127.0.0.1 localhost
192.168.1.115 J ** dB loghost
# More hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.1.115 J ** dB loghost
# More netmasks
#
# The netmasks file Associates Internet Protocol (IP) addres
# Masks with IP network numbers.
#
# Network-number netmask
#
# The term network-number refers to a number obtained from t
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "Decimal dot" notation, e. g:
#
#128.32.0.0 255.255.255.0
#
192.168.1.0 255.255.255.0
#
# Ifconfig-
Lo0: Flags = 2001000849 <up, loopback, running, multicast, IPv4, virtual> MTU 8232 Index
1
Inet 127.0.0.1 netmask ff000000
Ce0: Flags = 1000843 <up, broadcast, running, multicast, IPv4> MTU 1500 index 2
Inet 192.168.1.115 netmask ffffff00 broadcast 192.168.1.255
Ether 0: 3: BA: DB: EC: F1
#
By default, the FTP service is started, but root access is not allowed. This problem has plagued me for a week. I started to change the sshd configuration file and Google it for a long time, the FTPd configuration file should be changed.
To enable the root user to log on, you need to modify/etc/ftpd/ftpusers and comment out the root user. This folder contains all users who have been denied access.

# Cd/etc/ftpd
# Pwd
/Etc/ftpd
# More ftpusers
# Ident "@ (#) ftpusers 1.5 04/02/20 SMI"
#
# List of users denied access to the FTP server, see ftpusers (4 ).
#
# Root
Daemon
Bin
Sys
Adm
Lp
Uucp
Nuucp
Smmsp
Listen
NT
Webservd
Nobody
Noaccess
Nobody4
========================================================== =

# More/etc/nodename
J ** DB
# More/etc/hostname. ce0
J ** DB
# More/etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.1.115 J ** dB loghost
# More/etc/netmasks
#
# The netmasks file Associates Internet Protocol (IP) address
# Masks with IP network numbers.
#
# Network-number netmask
#
# The term network-number refers to a number obtained from the Internet network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "Decimal dot" notation, e. g:
#
#128.32.0.0 255.255.255.0
#
192.168.1.0 255.255.255.0
# More/etc/defaultrouter
192.168.1.1
# More/etc/resolv. conf
/Etc/resolv. conf: the file or directory does not exist.
# More/etc/nsswitch. conf
#
#/Etc/nsswitch. Files:
#
# An example file that cocould be copied over to/etc/nsswitch. conf; it
# Does not use any Naming Service.
#
# "Hosts:" and "services:" In this file are used only if
#/Etc/netconfig file has a "-" For nametoaddr_libs of "Inet" transports.

Passwd: Files
GROUP: Files
Hosts: Files
Ipnodes: Files
Networks: Files
Protocols: Files
RPC: Files
Ethers: Files
Netmasks: Files
Bootparams: Files
Publickey: Files
# At present there isn't a 'files' backend for netgroup; the system will
# Figure it out pretty quickly, and won't use netgroups at all.
Netgroup: Files
Automount: Files
Aliases: Files
Services: Files
Printers: User Files

Auth_attr: Files
Prof_attr: Files
Project: Files
#

========================================================== ==============

# Ifconfig-Lists the NIC configurations of the local machine;
# Ifconfig e1000g1 down, Remove the NIC to be reconfigured;
# Ifconfig e1000g1 192.168.1.1 netmask 255.255.255.0 upReconfigure and start the IP address;

========================================================== ==============

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.