Showing posts with label network. Show all posts
Showing posts with label network. Show all posts

Friday, September 12, 2025

Command line commands on esxi 6 and other esxi

Networking and esxcli on esxi command line
 
 
~ # esxcli network ip 
Usage: esxcli network ip {cmd} [cmd options]

Available Namespaces:
  dns                   Operations pertaining to Domain Name Server configuration.
  interface             Operations having to do with the creation, management and deletion of VMkernel network interfaces (vmknic).
  ipsec                 Operations on Internet Protocol Security
  route                 Operations pertaining to route configuration
  connection            List active tcpip connections
  neighbor              Operations that can be performed on arp tables

 # esxcli network ip interface list
vmk0
   Name: vmk0
   MAC Address: 6c:62:6d:a3:2e:c2
   Enabled: true
   Portset: vSwitch0
   Portgroup: Management Network
   VDS Name: N/A
   VDS UUID: N/A
   VDS Port: N/A
   VDS Connection: -1
   MTU: 1500
   TSO MSS: 65535
   Port ID: 33554436
 # esxcli network ip interface ipv4 get
Name  IPv4 Address    IPv4 Netmask   IPv4 Broadcast  Address Type  DHCP DNS
----  --------------  -------------  --------------  ------------  --------
vmk0  172.16.0.10     255.255.255.0  172.16.0.255    STATIC           false
 
~ # esxcli network ip neighbor list
Neighbor                   Mac Address        Vmknic    Expiry  State    
-------------------------  -----------------  ------  --------  ---------
172.16.0.2                 00:1f:ca:88:96:8c  vmk0    1139 sec           
fe80::6e62:6dff:fea3:2ec2  6c:62:6d:a3:2e:c2  vmk0       0 sec  Reachable
~ # esxcli network ip route ipv4 list
Network       Netmask        Gateway       Interface  Source
------------  -------------  ------------  ---------  ------
default       0.0.0.0        172.16.200.2  vmk0       MANUAL
172.16.200.0  255.255.255.0  0.0.0.0       vmk0       MANUAL
 # esxcfg-route
VMkernel default gateway is 172.16.200.2

To make routing changes on the command line use the esxcli network ip route ipv4 add command.

https://knowledge.broadcom.com/external/article/324496/link-state-up-or-down-for-a-vmnic-interf.html

https://blog.technodrone.cloud/2011/09/netstat-for-esxi.html

-30-- 

Sunday, February 9, 2025

Install ntop

 

install ntop
 
Type the following commands in your shell:

wget https://packages.ntop.org/RaspberryPI/apt-ntop.deb sudo dpkg -i apt-ntop.deb sudo apt-get update
sudo apt-get install ntopng nprobe
 
--30--

Thursday, February 3, 2022

nmap network tool usage notes

 nmap notes

nmap -v -sn 192.168.xx.0/24

nmap -sn 192.168.xx.0/24

--30--

Tuesday, August 4, 2020

download and build driver (RTL wifi) example video


https://www.youtube.com/watch?v=dokG4bCF4GQ

http://gdanstum.net/-12AEHO/DN2D?rndad=2891595163-1596553568

18.04.3 instructions

https://askubuntu.com/questions/1156167/unable-to-get-wifi-adapter-working-clean-19-04-install-network-unclaimed/1156246#1156246

handy summary of commands
https://bbs.archlinux.org/viewtopic.php?id=245864

apt install  -y iw
apt install -y rfkill

from bbs.archlinux.org post above

lsusb

lsusb

b

dmesg

dmesg | grep rtl8812au

0

iw

iw dev

phy#1
    Interface wlp0s20u10
        ifindex 4
        wdev 0x100000001
        addr 00:e0:4c:88:12:00
        type managed
        txpower 12.00 dBm

rfkill

rfkill list

1: phy1: Wireless LAN
    Soft blocked: no
    Hard blocked: no

uname

uname -r

5.0.8-arch1-1-ARCH



--30--

Sunday, January 20, 2019

configuration notes for beaglebone pocket


local link to BBB if connected (presented for convenience).
http://192.168.7.2/bone101/Support/bone101/

This will probably apply to the beaglebone black (wireless) which will be used in the Unibone project that is in the queue.

This has some number of extra complications since it has a USB OTG connection for power and also presents a USB networking adapter via that conduit to the host.

This allows for a very interesting control interface via the web, but makes it a bit tricky to
get to the internet with the pocket (since it has no network NIC).

The first few notes here are for configuring the network, setting up ssh.

The default login is debian for the system, which is default for the debian releases.

The network router / gateway address is 192.168.7.1, and 192.168.7.2 is the IP for the debian board on the other side of the USB.  On windows at least, the win 10 automagically recognized the connection, created an eth instance for the USB NDIS nic and the ip 192.168.7.1 is visible there.

Login worked to the 192.168.7.2 as advertised.

The time page below doesn't use Debian, so such as installing software must be translated to debian commands.  The page's example uses Angstrom (which is advertised on the BBB images).

Also it did not include the incantation for getting the time to be set.  ntp was not in the downloaded debian image used, so one must use some way to get  the time to set.

http://derekmolloy.ie/automatically-setting-the-beaglebone-black-time-using-ntp/

I also wanted to set the timezone.  Not sure how one would do it on the Angstrom release, but on debian, the dpkg reconfigure worked as usual.

dpkg-reconfigure tzdata

This page has info for making Windows 7 host the network connection.

https://ofitselfso.com/BeagleNotes/HowToConnectBeagleboneBlackToTheInternetViaUSB.php

Will research how to use a raspberry pi W or such linux system to host this, with possibly less foolishness with the network setup on the hosting system end.  With windows not sure how much has to be redone everytime the system starts and stops.

Also since this will be frequently used on a windows laptop, not sure whether the whole thing will survive suspend, even if the BBB pocket is turned off prior to the exercise of suspending.

Eventually setting up a raspberry pi zero as a router would be valuable as it could also present an IP and make it accessible by natting the connection used by the BBB.

***********************
Hosting system + network with a linux host:

https://elementztechblog.wordpress.com/2014/12/22/sharing-internet-using-network-over-usb-in-beaglebone-black/

The Debian OS is used for the testing which is obtained from here.
BBB console can be obtained by using the following command
ssh 192.168.7.2 -l root
 
In the BBB console type the following
ifconfig usb0 192.168.7.2
route add default gw 192.168.7.1

In the linux console of host system type
sudo su
 
#wlan0 is my internet facing interface, eth5 is the BeagleBone USB connection
ifconfig eth5 192.168.7.1
iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
iptables --append FORWARD --in-interface eth5 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward

Incase network not accessible then type the following in BBB terminal

echo "nameserver 8.8.8.8" >> /etc/resolv.conf  

To set up a domain use the following (example uses pri domain):

domain pri
search pri
nameserver 10.192.168.1
nameserver 8.8.8.8

***********************
Other links of use:

getting started

How to Connect a BeagleBone Black to the Internet Using USB

discussion for Armbian, but some good info on USB OTG as a tether.
USB OTG as a network - Development - Armbian forum 

Announcing $25 PocketBeagle - Google Groups (link into GG discussions)

BeagleBoard.org - latest-images

eLinux org links

BeagleBoardDebian - eLinux.org

--30--

Monday, June 11, 2018

How to find out port usage program on windows

On linux, one can type

sudo netatat -aopn

to get a list of processes which are in operations with ports on the system.  The "p" parameter required superuser access to get the pid.

On Windows 10 (and perhaps others) one can do the same

Using an administrator privilged cmd window, you get the same access as superuser for accessing ports

netstat -abno in that window will show all the processes on the system and their pids

To determine the process name associated with each pid

tasklist

will do that.  One can locate a specific task with for example:

tasklist /fi "pid eq 4444"


https://stackoverflow.com/questions/48198/how-can-you-find-out-which-process-is-listening-on-a-port-on-windows
https://stackoverflow.com/questions/27211427/find-process-name-by-its-process-id
-30-

Wednesday, April 18, 2018

Centos and Redhat EL firewall port opening


http://ask.xmodulo.com/open-port-firewall-centos-rhel.html

Centos 7
To open up a new port (e.g., TCP/80) permanently, use these commands.
$ sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
$ sudo firewall-cmd --reload 
 
Check the updated rules with:
$ firewall-cmd --list-all
 
Centos 6, iptables
Use iptables command to open up a new TCP/UDP port in the firewall. To save the updated rule permanently, you need the second command.
$ sudo iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT
$ sudo service iptables save 
 
Start / Stop / disable firewall completely
 
 

-30-