You are on page 1of 2

bash-3.

2# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bash-3.2# ifconfig -a plumb
bash-3.2# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
ether 0:50:56:ad:5d:ad
bash-3.2# cat /etc/hostname.e1000g0
interface-1
bash-3.2# cat /etc/defaultrouter
10.60.34.1
bash-3.2# cat /etc/inet/hosts
#
# Internet host table
#
10.60.34.17 interface-1 loghost
::1 localhost loghost QLTN
127.0.0.1 localhost loghost QLTN
bash-3.2# cat /etc/inet/ipnodes
#
# Internet host table
#
10.60.34.17 interface-1 loghost
::1 localhost loghost QLTN
127.0.0.1 localhost loghost QLTN
bash-3.2# cat /etc/inet/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
10.60.34.0 255.255.255.128
svcadm restart physical
svcs -a | grep ipf
disabled 6:20:30 svc:/network/ipfilter:default
vi /etc/ssh/sshd_config
PermitRootlogin yes
svcadm restart ssh
Tham kho thm trn 10.58.3.111

bash-3.00# cat /etc/hostname.bnx0


bgw-111
bash-3.00# cat /etc/defaultrouter
10.58.3.254
bash-3.00# cat /etc/inet/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
#
10.58.3.0 255.255.255.0
bash-3.00# cat /etc/inet/hosts
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
10.58.3.111 bgw-111 loghost
10.58.3.114 bgw-114
#10.58.4.111 bgw4111
bash-3.00# cat /etc/inet/ipnodes
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
10.58.3.111 bgw-111 loghost
10.58.3.114 bgw-114
#10.58.4.111 bgw4111

You might also like