Photon OS Command | SLES Command |
ip addr | ifconfig -a |
ss | netstat |
ip route | route |
ip maddr | netstat -g |
ip link set eth0 up | ifconfig eth0 up |
ip -s neigh | arp -v |
ip link set eth0 mtu 9000 | ifconfig eth0 mtu 9000 |
When running the #tcpdump --help command, you see output similar to:
tcpdump version 4.7.4
libpcap version 1.7.4
Usage: tcpdump [-aAbdDefhHIJKlLnNOpqRStuUvxX#] [ -B size ] [ -c count ]
[ -C file_size ] [ -E algo:secret ] [ -F file ] [ -G seconds ]
[ -i interface ] [ -j tstamptype ] [ -M secret ] [ --number ]
[ -Q in|out|inout ]
[ -r file ] [ -s snaplen ] [ --time-stamp-precision precision ]
[ --immediate-mode ] [ -T type ] [ --version ] [ -V file ]
[ -w file ] [ -W filecount ] [ -y datalinktype ] [ -z command ]
[ -Z user ] [ expression ]
GNU netcat 0.7.1, a rewrite of the famous networking tool.Basic usages:connect to somewhere: netcat [options] hostname port [port] ...listen for inbound: netcat -l -p port [options] [hostname] [port] ...tunnel to somewhere: netcat -L hostname:port -p port [options]Mandatory arguments to long options are mandatory for short options too.Options:-c, --close close connection on EOF from stdin-e, --exec=PROGRAM program to exec after connect-g, --gateway=LIST source-routing hop point[s], up to 8-G, --pointer=NUM source-routing pointer: 4, 8, 12, ...-h, --help display this help and exit-i, --interval=SECS delay interval for lines sent, ports scanned-l, --listen listen mode, for inbound connects-L, --tunnel=ADDRESS:PORT forward local port to remote address-n, --dont-resolve numeric-only IP addresses, no DNS-o, --output=FILE output hexdump traffic to FILE (implies -x)-p, --local-port=NUM local port number-r, --randomize randomize local and remote ports-s, --source=ADDRESS local source address (ip or hostname)-t, --tcp TCP mode (default)-T, --telnet answer using TELNET negotiation-u, --udp UDP mode-v, --verbose verbose (use twice to be more verbose)-V, --version output version information and exit-x, --hexdump hexdump incoming and outgoing traffic-w, --wait=SECS timeout for connects and final net reads-z, --zero zero-I/O mode (used for scanning)Remote port number can also be specified as range. Example: '1-1024'
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEsystemd 1 root 83u IPv6 11427 0t0 UDP *:69ntpd 909 ntp 16u IPv6 11786 0t0 UDP *:123ntpd 909 ntp 17u IPv4 11789 0t0 UDP *:123ntpd 909 ntp 18u IPv4 11793 0t0 UDP 127.0.0.1:123ntpd 909 ntp 19u IPv6 11795 0t0 UDP [::1]:123ntpd 909 ntp 21u IPv4 26108 0t0 UDP 10.x.x.x:123systemd-n 4146 systemd-network 13u IPv4 25130 0t0 UDP 10.x.x.x:68rpcbind 4375 rpc 6u IPv4 27963 0t0 UDP *:111rpcbind 4375 rpc 7u IPv4 27964 0t0 UDP *:731rpcbind 4375 rpc 8u IPv4 27965 0t0 TCP *:111 (LISTEN)rpcbind 4375 rpc 9u IPv6 27966 0t0 UDP *:111rpcbind 4375 rpc 10u IPv6 27967 0t0 UDP *:731rpcbind 4375 rpc 11u IPv6 27968 0t0 TCP *:111 (LISTEN)dcerpcd 4609 root 3u IPv4 28201 0t0 TCP *:135 (LISTEN)dcerpcd 4609 root 6u IPv4 28205 0t0 UDP *:135dcerpcd 4609 root 7u IPv4 95629 0t0 TCP 10.x.x.x:39766->10.x.x.x:2020 (ESTABLISHED)dcerpcd 4609 root 8u IPv4 95631 0t0 TCP 10.x.x.x:36094->10.x.x.x:2012 (ESTABLISHED)dcerpcd 4609 root 9u IPv4 96413 0t0 TCP 10.x.x.x:43905->10.x.x.x:2015 (ESTABLISHED)vmafdd 4616 root 3u IPv4 95630 0t0 TCP 10.x.x.x:2020->10.x.x.x:39766 (ESTABLISHED)vmafdd 4616 root 21u IPv4 28229 0t0 TCP *:2020 (LISTEN)vmcad 4862 root 19u IPv4 28592 0t0 TCP *:2014 (LISTEN)vmdird 5193 root 22u IPv4 29202 0t0 TCP *:2012 (LISTEN)vmdird 5193 root 25u IPv4 86892 0t0 TCP 10.x.x.x:389->10.x.x.x:42080 (ESTABLISHED)vmdird 5193 root 26u IPv4 31970 0t0 TCP *:389 (LISTEN)vmdird 5193 root 27u IPv4 31971 0t0 TCP *:11711 (LISTEN)vmdird 5193 root 28u IPv4 29268 0t0 TCP *:636 (LISTEN)vmdird 5193 root 29u IPv4 29269 0t0 TCP *:11712 (LISTEN)vmdird 5193 root 32u IPv4 31973 0t0 TCP *:88 (LISTEN)vmdird 5193 root 33u IPv4 31975 0t0 UDP *:88vmdird 5193 root 34u IPv4 95632 0t0 TCP 10.x.x.x:2012->10.x.x.x:36094 (ESTABLISHED)vmdird 5193 root 35u IPv4 91988 0t0 TCP 10.x.x.x:389->10.x.x.x:42456 (ESTABLISHED)
You see output similar to:
# systemctl status systemd-networkdsystemd-networkd.service - Network ServiceLoaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)Active: active (running) since Wed 2016-09-28 09:23:08 UTC; 9min agoDocs: man:systemd-networkd.service(8)Main PID: 4146 (systemd-network)Status: "Processing requests..."Tasks: 1Memory: 276.0KCPU: 10msCGroup: /system.slice/systemd-networkd.service4146 /lib/systemd/systemd-networkd09:23:08 localhost.localdom systemd[1]: Starting Network Service...09:23:08 localhost.localdom systemd-networkd[4146]: Enumeration completed09:23:08 localhost.localdom systemd[1]: Started Network Service.09:23:08 localhost.localdom systemd-networkd[4146]: eth0: Gained carrier09:23:11 localhost.localdom systemd-networkd[4146]: eth0: DHCPv4 address 10.x.x.x/20 via 10.x.x.x09:23:11 localhost.localdom systemd-networkd[4146]: eth0: Configured
Run the # cat /etc/systemd/network/10-eth0.network command to display the content of the file.
You see output similar to:
# cat /etc/systemd/network/10-eth0.network
[Match]
Name=eth0
[Network]
Gateway=10.x.x.x
Address=10.x.x.x/x
DHCP=no
[DHCP]
UseDNS=false