Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1)
- root@kq-zr5b4mgj6rgi5a5dekkqkf2k64-0:~# netstat -tuplen
- Active Internet connections (only servers)
- Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
- tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 14222 1241/sshd
- tcp 0 0 127.0.0.1:10248 0.0.0.0:* LISTEN 0 53593 12831/kubelet
- tcp 0 0 127.0.0.1:10249 0.0.0.0:* LISTEN 0 57607 13390/hyperkube
- tcp 0 0 127.0.0.1:2379 0.0.0.0:* LISTEN 0 44419 10146/etcd
- tcp 0 0 10.1.0.3:2379 0.0.0.0:* LISTEN 0 44418 10146/etcd
- tcp 0 0 10.1.0.3:2380 0.0.0.0:* LISTEN 0 44417 10146/etcd
- tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 0 59549 13596/hyperkube
- tcp 0 0 127.0.0.1:10256 0.0.0.0:* LISTEN 0 57605 13390/hyperkube
- tcp6 0 0 :::22 :::* LISTEN 0 14224 1241/sshd
- tcp6 0 0 :::10250 :::* LISTEN 0 53600 12831/kubelet
- tcp6 0 0 :::10251 :::* LISTEN 0 63074 14198/hyperkube
- tcp6 0 0 :::6443 :::* LISTEN 0 58268 13596/hyperkube
- tcp6 0 0 :::10252 :::* LISTEN 0 63624 14305/hyperkube
- 2)
- root@kq-zr5b4mgj6rgi5a5dekkqkf2k64-0:~# nmap -p 2379 172.17.48.53
- Starting Nmap 7.01 ( https://nmap.org ) at 2018-08-29 10:44 UTC
- Nmap scan report for kq-zr5b4mgj6rgi5a5dekkqkf2k64-0 (172.17.48.53)
- Host is up (0.000088s latency).
- PORT STATE SERVICE
- 2379/tcp closed unknown
- 3)
- root@kq-zr5b4mgj6rgi5a5dekkqkf2k64-0:~# ifconfig
- ...
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- inet6 addr: ::1/128 Scope:Host
- UP LOOPBACK RUNNING MTU:65536 Metric:1
- RX packets:90575 errors:0 dropped:0 overruns:0 frame:0
- TX packets:90575 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1
- RX bytes:15712976 (15.7 MB) TX bytes:15712976 (15.7 MB)
- root@kq-zr5b4mgj6rgi5a5dekkqkf2k64-0:~# ip addr
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
- link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
- inet 127.0.0.1/8 scope host lo
- valid_lft forever preferred_lft forever
- inet 172.17.48.53/32 scope host lo
- valid_lft forever preferred_lft forever
- inet6 ::1/128 scope host
- valid_lft forever preferred_lft forever
- 4)
- root@kq-zr5b4mgj6rgi5a5dekkqkf2k64-0:~# cat /etc/network/interfaces
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- # The loopback network interface
- auto lo
- iface lo inet loopback
- # Source interfaces
- # Please check /etc/network/interfaces.d before changing this file
- # as interfaces may have been defined in /etc/network/interfaces.d
- # See LP: #1262951
- source /etc/network/interfaces.d/*.cfg
- root@kq-zr5b4mgj6rgi5a5dekkqkf2k64-0:~# cat /etc/network/interfaces.d/50-cloud-init.cfg
- # This file is generated from information provided by
- # the datasource. Changes to it will not persist across an instance.
- # To disable cloud-init's network configuration capabilities, write a file
- # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
- # network: {config: disabled}
- auto lo
- iface lo inet loopback
- dns-nameservers 172.18.80.136
- auto ens3
- iface ens3 inet static
- address 10.1.0.3/16
- post-up route add default gw 10.1.0.1 || true
- pre-down route del default gw 10.1.0.1 || true
Advertisement
Add Comment
Please, Sign In to add comment