Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Archives for network

October 13, 2020

AWS Enable Enhance Network Support

When changing machine types, you may be asked to enable the latest ENA driver for Enhanced Network Support on an Amazon EC2 instance. There are several instructions depending on the Linux OS flavor. Here are the instructions to enable. In some cases, you may need to rebuild the kernel module. To verify that the ena module is installed, use the modinfo command as shown in the following example.

modinfo ena

modinfo ena

You also may have to enable the enhanced networking attribute on the instance.

aws ec2 modify-instance-attribute --instance-id instance_id --ena-support

aws ec2 modify-instance-attribute --instance-id instance_id --ena-support

March 19, 2020

Nmap

Here’s how to list all the devices on your network using nmap.

nmap -sn 192.168.0.0/24

nmap -sn 192.168.0.0/24

If nmap is not installed, install it.

yum install nmap
apt install nmap

yum install nmap apt install nmap

March 3, 2020

Netstat

Netstat is a utility for gathering network statistics. It comes preinstalled on most systems.

If missing, here’s how to install.

# Redhat, CentOS
yum install net-tools
# Debian, Ubuntu, Mint
apt install net-tools
# SLES, SUSE
zypper install net-tools

# Redhat, CentOS yum install net-tools # Debian, Ubuntu, Mint apt install net-tools # SLES, SUSE zypper install net-tools

Here are some common and useful commands.

# show version
netstat -v
# show routing table
netstat -nr
# show network interface statistics
netstat -ai
# show network connections
netstat -ant
# show network services
netstat -pnltu

# show version netstat -v # show routing table netstat -nr # show network interface statistics netstat -ai # show network connections netstat -ant # show network services netstat -pnltu

  • 1
  • 2
  • 3
  • …
  • 5
  • Next Page »
  • Cloud
  • Linux
  • Git

Copyright © 2012–2021