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 > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Ifconfig command
Show all network interfaces ifconfig-a
-bash-3.2$ ifconfig-a
En0: flags=1e080863480
Inet 99.99.99.35 netmask 0xffffff00 broadcast 99.99.99.255
Tcp_sendspace 262144 tcp_recvspace 262144 rfc1323 1
En1: flags=1e080863480
Inet 99.99.99.89 netmask 0xffffff00 broadcast 99.99.99.255
Tcp_sendspace 262144 tcp_recvspace 262144 rfc1323 1
Lo0: flags=e08084b
Inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
Inet6:: 1/0
Tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
Only the network interface is displayed with no other information. Ifconfig-l
-bash-3.2# ifconfig-l
En0 en1 lo0
Shutting down and starting the network interface ifconfig en1 up/down
-bash-3.2# ifconfig en1 down
-bash-3.2# ifconfig en1 up
View network interfaces that have been started
-bash-3.2# ifconfig-au
En0: flags=1e080863480
Inet 99.99.99.35 netmask 0xffffff00 broadcast 99.99.99.255
Tcp_sendspace 262144 tcp_recvspace 262144 rfc1323 1
Lo0: flags=e08084b
Inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
Inet6:: 1/0
Tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
-bash-3.2# ifconfig-lu
En0 lo0
View network interfaces that are down
-bash-3.2# ifconfig-ad
En1: flags=1e080862480
Inet 99.99.99.89 netmask 0xffffff00 broadcast 99.99.99.255
Tcp_sendspace 262144 tcp_recvspace 262144 rfc1323 1
-bash-3.2# ifconfig-ld
En1
-bash-3.2# netstat-in # the network interface marked with * is shown as down. This command can check the IP address of this machine.
Name Mtu Network Address ZoneID Ipkts Ierrs Opkts Oerrs Coll
En0 1500 link#2 ee.cb.f0.2.30.2-477369 0 24513 00
En0 1500 99.99.99 99.99.35-477369 0 24513 00
En1* 1500 link#3 ee.cb.f0.2.30.3-2539 0 84 00
En1* 1500 99.99.99 99.99.89-2539 084 00
Lo0 16896 link#1-93601 0 93608 0 0
Lo0 16896 127.0.0.1-93601 0 93608 0 0
Lo0 16896:: 1 0 93601 0 93608 0 0
You can use the ping command to test network connectivity
Ping-c 5 99.99.99.35
Netstat command
Displays the format of the network interface and whether there are multiple incorrect packets.
-bash-3.2$ netstat-I
Name Mtu Network Address ZoneID Ipkts Ierrs Opkts Oerrs Coll
En0 1500 link#2 ee.cb.f0.2.30.2-478409 0 24611 00
En0 1500 99.99.99 peng2012-478409 0 24611 00
En1* 1500 link#3 ee.cb.f0.2.30.3-2539 0 84 00
En1* 1500 99.99.99 99.99.89-2539 084 00
Lo0 16896 link#1-93767 0 93774 0 0
Lo0 16896 loopback-93767 0 93774 0 0
Lo0 16896:: 1 0 93767 0 93774 0 0
Display the routing table of this machine
-bash-3.2$ netstat-rn
Routing tables
Destination Gateway Flags Refs Use If Exp Groups
Route Tree for Protocol Family 2 (Internet):
99.99.99.0 99.99.99.35 UHSb 0 0 en0-- = >
99.99.99.0 99.99.99.89 UHSb 0 0 en1-- = >
99.99.99.99.35 U 1 20417 en0-- = >
99.99.99 take 24 99.99.99.89 U 0 53 en1--
99.99.99.35 127.0.0.1 UGHS 1,509 lo0-
99.99.99.89 127.0.0.1 UGHS 0 17 lo0--
99.99.99.255 99.99.99.35 UHSb 0 4 en0-- = >
99.99.99.255 99.99.99.89 UHSb 0 en1--
127Accord 8 127.0.0.1 U 13 93148 lo0--
Displays the service netstat-an enabled by this machine (displays sockets, does not show port number)
Netstat-a
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
Tcp 0 0 *. * CLOSED
Tcp 0 0 *. * CLOSED
Tcp4 0 0 *. * CLOSED
Tcp4 0 0 * .daytime *. * LISTEN
Tcp 0 0 * .ftp *. * LISTEN
Tcp4 0 0 * .ssh *. * LISTEN
Tcp 0 0 * .telnet *. * LISTEN
Tcp4 0 0 * .smtp *. * LISTEN
Tcp4 0 0 * .time *. * LISTEN
Tcp4 0 0 * .sunrpc *. * LISTEN
Tcp 0 0 * .smux *. * LISTEN
Tcp 0 0 * .exec *. * LISTEN
Tcp 0 0 * .login *. * LISTEN
Tcp 0 0 * .shell *. * LISTEN
Tcp 0 0 * .rmc *. * LISTEN
Tcp4 0 0 * .writesrv *. * LISTEN
Tcp 0 0 * .5335 *. * LISTEN
Tcp 0 0 * .5336 *. * LISTEN
Tcp 0 0 * .wbem-htt *. * LISTEN
Tcp 0 0 * .wbem-htt *. * LISTEN
Tcp 0 0 * .6988 *. * LISTEN
.
Display the service enabled by this machine (display port number) netstat-an
Netstat-an
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
Tcp 0 0 *. * CLOSED
Tcp 0 0 *. * CLOSED
Tcp4 0 0 *. * CLOSED
Tcp4 0 0 * .13 *. * LISTEN
Tcp 0 0 * .21 *. * LISTEN
Tcp4 0 0 * .22 *. * LISTEN
Tcp 0 0 * .23 *. * LISTEN
Tcp4 0 0 * .25 *. * LISTEN
Tcp4 0 0 * .37 *. * LISTEN
Tcp4 0 0 * .111 *. * LISTEN
Tcp 0 0 * .199 *. * LISTEN
Tcp 0 0 * .512 *. * LISTEN
Tcp 0 0 * .513 *. * LISTEN
Tcp 0 0 * .514 *. * LISTEN
Tcp 0 0 * .657 *. * LISTEN
Tcp4 0 0 * .1334 *. * LISTEN
Tcp 0 0 * .5335 *. * LISTEN
Tcp 0 0 * .5336 *. * LISTEN
Tcp 0 0 * .5988 *. * LISTEN
Tcp 0 0 * .5989 *. * LISTEN
Tcp 0 0 * .6988 *. * LISTEN
.
Displays whether the port number 21 of this machine is enabled.
Netstat-an | grep 21.
Set the host IP address smit mktcpip (smit tcpip further select)
Minimum Configuration & Startup
To Delete existing configuration data, please use Further Configuration menus
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP] [Entry Fields]
* HOSTNAME [peng2012]
* Internet ADDRESS (dotted decimal) [99.99.99.35]
Network MASK (dotted decimal) [255.255.255.0]
* Network INTERFACE en0
NAMESERVER
Internet ADDRESS (dotted decimal) []
DOMAIN Name []
Default Gateway
Address (dotted decimal or symbolic name) []
Cost [] #
Do Active Dead Gateway Detection? No +
[MORE...2]
F1=Help F2=Refresh F3=Cancel F4=List
F5=Reset F6=Command F7=Edit F8=Image
F9=Shell F10=Exit Enter=Do
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: 0
*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.