변군이글루

[솔라리스] 오픈솔라리스 네트워크 설정 본문

구___솔라리스

[솔라리스] 오픈솔라리스 네트워크 설정

변군 변군이글루 2013.06.17 23:42

오픈솔라리스 네트워크 설정

 

IP(Internet Protocol)

root@opensolaris:~# cat /etc/hostname.iprb0

10.0.10.100

Netmask

root@opensolaris:~# cat /etc/netmasks

#

# CDDL HEADER START

#

# The contents of this file are subject to the terms of the

# Common Development and Distribution License, Version 1.0 only

# (the "License"). You may not use this file except in compliance

# with the License.

#

# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

# or http://www.opensolaris.org/os/licensing.

# See the License for the specific language governing permissions

# and limitations under the License.

#

# When distributing Covered Code, include this CDDL HEADER in each

# file and include the License file at usr/src/OPENSOLARIS.LICENSE.

# If applicable, add the following below this CDDL HEADER, with the

# fields enclosed by brackets "[]" replaced with your own identifying

# information: Portions Copyright [yyyy] [name of copyright owner]

#

# CDDL HEADER END

#

# Copyright 2000 Sun Microsystems, Inc. All rights reserved.

# Use is subject to license terms.

#

# ident "%Z%%M% %I% %E% SMI"

#

# 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

#

10.0.10.0 255.255.255.0

Gateway

root@opensolaris:~# cat /etc/defaultrouter

10.0.10.1

DNS resolve

root@opensolaris:~# cat /etc/resolv.conf

nameserver 10.0.10.2

NSSwitch(file : hosts, dns : dns서버)

root@opensolaris:~# cat /etc/nsswitch.conf

# CDDL HEADER START

#

# The contents of this file are subject to the terms of the

# Common Development and Distribution License (the "License").

# You may not use this file except in compliance with the License.

#

# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

# or http://www.opensolaris.org/os/licensing.

# See the License for the specific language governing permissions

# and limitations under the License.

#

# When distributing Covered Code, include this CDDL HEADER in each

# file and include the License file at usr/src/OPENSOLARIS.LICENSE.

# If applicable, add the following below this CDDL HEADER, with the

# fields enclosed by brackets "[]" replaced with your own identifying

# information: Portions Copyright [yyyy] [name of copyright owner]

#

# CDDL HEADER END

#

# Copyright 2006 Sun Microsystems, Inc. All rights reserved.

# Use is subject to license terms.

#

# ident "%Z%%M% %I% %E% SMI"

#

# /etc/nsswitch.files:

#

# An example file that could be copied over to /etc/nsswitch.conf; it

# does not use any naming service.

#

# "hosts:" and "services:" in this file are used only if the

# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files

group: files

hosts: files dns

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

tnrhtp: files

tnrhdb: files

호스트파일

root@opensolaris:~# cat /etc/hosts

# CDDL HEADER START

#

# The contents of this file are subject to the terms of the

# Common Development and Distribution License (the "License").

# You may not use this file except in compliance with the License.

#

# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

# or http://www.opensolaris.org/os/licensing.

# See the License for the specific language governing permissions

# and limitations under the License.

#

# When distributing Covered Code, include this CDDL HEADER in each

# file and include the License file at usr/src/OPENSOLARIS.LICENSE.

# If applicable, add the following below this CDDL HEADER, with the

# fields enclosed by brackets "[]" replaced with your own identifying

# information: Portions Copyright [yyyy] [name of copyright owner]

#

# CDDL HEADER END

#

# Copyright 2007 Sun Microsystems, Inc. All rights reserved.

# Use is subject to license terms.

#

# ident "%Z%%M% %I% %E% SMI"

#

# Internet host table

#

::1 opensolaris opensolaris.local localhost loghost

127.0.0.1 opensolaris.local localhost loghost

 root@opensolaris:~# cat /etc/nwam/llp

iprb0 dhcp

iprb0 priority 0

 

0 Comments
댓글쓰기 폼
Prev 1 2 3 4 5 6 7 8 Next