fervent

Untitled

Aug 29th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.06 KB | None | 0 0
  1. 1)
  2. root@kq-zr5b4mgj6rgi5a5dekkqkf2k64-0:~# netstat -tuplen
  3. Active Internet connections (only servers)
  4. Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode       PID/Program name
  5. tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          14222       1241/sshd      
  6. tcp        0      0 127.0.0.1:10248         0.0.0.0:*               LISTEN      0          53593       12831/kubelet  
  7. tcp        0      0 127.0.0.1:10249         0.0.0.0:*               LISTEN      0          57607       13390/hyperkube
  8. tcp        0      0 127.0.0.1:2379          0.0.0.0:*               LISTEN      0          44419       10146/etcd      
  9. tcp        0      0 10.1.0.3:2379           0.0.0.0:*               LISTEN      0          44418       10146/etcd      
  10. tcp        0      0 10.1.0.3:2380           0.0.0.0:*               LISTEN      0          44417       10146/etcd      
  11. tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      0          59549       13596/hyperkube
  12. tcp        0      0 127.0.0.1:10256         0.0.0.0:*               LISTEN      0          57605       13390/hyperkube
  13. tcp6       0      0 :::22                   :::*                    LISTEN      0          14224       1241/sshd      
  14. tcp6       0      0 :::10250                :::*                    LISTEN      0          53600       12831/kubelet  
  15. tcp6       0      0 :::10251                :::*                    LISTEN      0          63074       14198/hyperkube
  16. tcp6       0      0 :::6443                 :::*                    LISTEN      0          58268       13596/hyperkube
  17. tcp6       0      0 :::10252                :::*                    LISTEN      0          63624       14305/hyperkube
  18.  
  19. 2)
  20. root@kq-zr5b4mgj6rgi5a5dekkqkf2k64-0:~# nmap -p 2379 172.17.48.53
  21.  
  22. Starting Nmap 7.01 ( https://nmap.org ) at 2018-08-29 10:44 UTC
  23. Nmap scan report for kq-zr5b4mgj6rgi5a5dekkqkf2k64-0 (172.17.48.53)
  24. Host is up (0.000088s latency).
  25. PORT     STATE  SERVICE
  26. 2379/tcp closed unknown
  27.  
  28. 3)
  29. root@kq-zr5b4mgj6rgi5a5dekkqkf2k64-0:~# ifconfig
  30. ...
  31. lo        Link encap:Local Loopback  
  32.           inet addr:127.0.0.1  Mask:255.0.0.0
  33.           inet6 addr: ::1/128 Scope:Host
  34.           UP LOOPBACK RUNNING  MTU:65536  Metric:1
  35.           RX packets:90575 errors:0 dropped:0 overruns:0 frame:0
  36.           TX packets:90575 errors:0 dropped:0 overruns:0 carrier:0
  37.           collisions:0 txqueuelen:1
  38.           RX bytes:15712976 (15.7 MB)  TX bytes:15712976 (15.7 MB)
  39.  
  40. root@kq-zr5b4mgj6rgi5a5dekkqkf2k64-0:~# ip addr
  41. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
  42.     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  43.     inet 127.0.0.1/8 scope host lo
  44.        valid_lft forever preferred_lft forever
  45.     inet 172.17.48.53/32 scope host lo
  46.        valid_lft forever preferred_lft forever
  47.     inet6 ::1/128 scope host
  48.        valid_lft forever preferred_lft forever
  49. 4)
  50. root@kq-zr5b4mgj6rgi5a5dekkqkf2k64-0:~# cat /etc/network/interfaces
  51. # This file describes the network interfaces available on your system
  52. # and how to activate them. For more information, see interfaces(5).
  53.  
  54. # The loopback network interface
  55. auto lo
  56. iface lo inet loopback
  57.  
  58. # Source interfaces
  59. # Please check /etc/network/interfaces.d before changing this file
  60. # as interfaces may have been defined in /etc/network/interfaces.d
  61. # See LP: #1262951
  62. source /etc/network/interfaces.d/*.cfg
  63.  
  64. root@kq-zr5b4mgj6rgi5a5dekkqkf2k64-0:~# cat /etc/network/interfaces.d/50-cloud-init.cfg
  65. # This file is generated from information provided by
  66. # the datasource.  Changes to it will not persist across an instance.
  67. # To disable cloud-init's network configuration capabilities, write a file
  68. # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
  69. # network: {config: disabled}
  70. auto lo
  71. iface lo inet loopback
  72.     dns-nameservers 172.18.80.136
  73.  
  74. auto ens3
  75. iface ens3 inet static
  76.     address 10.1.0.3/16
  77.     post-up route add default gw 10.1.0.1 || true
  78.     pre-down route del default gw 10.1.0.1 || true
Advertisement
Add Comment
Please, Sign In to add comment