LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

MULTI ethernet bonding

Posted 04-05-2020 at 05:23 PM by karanis
Tags net

# /etc/rc.d/rc.inet1.conf HAS 2 if enabled at boot
# eth0: no DNS, no static IP , eth1: no DNS, no static IP

/sbin/ifconfig eth0 down
/sbin/ifconfig eth1 down
/sbin/modprobe bonding mode=0 miimon=100

/usr/sbin/ip addr add 192.168.2.IP/24 dev bond0

/usr/sbin/ip link set bond0 up
/usr/sbin/ip link set eth0 master bond0
/usr/sbin/ip link set eth1 master bond0

/sbin/route add default gw 192.168.2.1
...
LQ Newbie
Posted in Uncategorized
Views 247 Comments 0 karanis is offline
Old

Connection speed between 2 linux

Posted 04-05-2020 at 05:22 PM by karanis
Tags net

https://askubuntu.com/questions/7976...ween-two-boxes

Type 1 : (nc and dd)
Server# nc -vvlnp 12345 >/dev/null
Client# dd if=/dev/zero bs=1M count=1K | nc -vvn 10.10.0.2 12345

Type 2 : (iperf)
Server# iperf -s
Client# iperf -c
LQ Newbie
Posted in Uncategorized
Views 242 Comments 0 karanis is offline
Old

BASH get ip from ifconfig ( and grep hostname from /etc/hosts by IP)

Posted 04-05-2020 at 05:13 PM by karanis
Updated 04-05-2020 at 05:15 PM by karanis
Tags bash, net

#!/bin/bash

IP=`/usr/sbin/ip addr show dev eth0| grep -v inet6| awk ' !/127.0.0.1/ && /inet/ { gsub(/\/.*/, "", $2); print $2 }'`
grep $IP /etc/hosts | sed -r s/$IP\\s\\t//
LQ Newbie
Posted in Uncategorized
Views 786 Comments 0 karanis is offline
Old

nmap Scan Network (better&faster)

Posted 04-05-2020 at 05:10 PM by karanis
Tags bash, net

nmap -sL 192.168.*.* | grep \(1
ip neigh show dev eth1
LQ Newbie
Posted in Uncategorized
Views 259 Comments 0 karanis is offline

  



All times are GMT -5. The time now is 02:17 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration