目录
基本名词解释

ipconfig:Internet Protocol configuration;
ifconfig ( network interface configuration):配置网络接口;
Enternet:以太网;
HWaddr(Hare Ware address) :网卡地址(固定);
inet (Internet address):网络地址
Local Loopback:本机回旋地址;
Bcast:广播地址;
DHCP server(Dynamic Host Configuration Protocol,动态主机分配协议):管理服务器,分配服务器;
Mask:子网掩码,#mask(口罩);
MTU(maximum transmission unit):最大传输单元;
ICMP(Internet Control Message Protocol) :
ping (测带宽,ping -c 5 -s 1024 -i 2 www.baidu.com):lanuch an ICMP request message;
ttl(time -to -live):生命周期,hops,跳;
rtt(round trip time):往返时间;
Mbps (Mb per second):每秒多少兆;
BIOS:;
Sed text editor
user vices:ladvices ,mobile phone,desktop
怎么上网
台式机:1个有线网卡,wired network card,装一个无线网卡就可以连网;
笔记本:两个网卡,一个有线,一个无线;
smartphone:3个网口(3 network interfaces),4G,Wi-Fi,Bluetooth;
手机能上网的条件:有IP地址;
域名服务器(DNS):IP地址的别名,一个;
修改流量,域名劫持:篡改DNS;
路由器动态分配IP地址;
IP设置:自动(DHCP),手动;
Ping
Ping launching an ICMP (Internet Control message protocol)request message
ttl=128 (通信128次 (主机到路由器(router)就是一次)) time-to-live (防止包太多撞包)
ping,测带宽,测试一个域名或IP是否存在;
ping -s -c -i (packet size count interval)
ping -c 10 -i 3 www.baidu.com > 文件
网络安全:
Low-rate Distribute Denial of Service;
DoS ,DDoS ,LDDoS, 网络攻击;
获取IP地址;
# method1
/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6 | awk '{print $2}' | tr -d "addr:"
# method2
ifconfig eth0|grep "inet addr:"|awk -F":" '{print $2}'|awk '{print $1}'
Sed text editor
非交户,流编辑器,不对文本直接做处理,类似于缓冲文件;
# 删除第2行
sed "2d" t.text > /home/t1.txt
# 删除第1~2行
sed "1,2d" t.text
#注意单引号
sed '2,$d' t.text
sed -a(append:追加) ,-i (insert:插入);
sed -d(delete:删除)
sed -c(整行替换),-s(部分替换)
sed -n (查,有个过滤)
另存为一份文本,sed 常和文本联系

Log for Java: 为Java记录日志;
P2P(peer to peer ):点对点;
本文介绍了Linux网络的基础知识,包括ipconfig、ifconfig、ping等命令的使用,讲解了如何上网,以及网络安全方面的内容,如DNS篡改和DoS攻击。此外,还提到了Sed文本编辑器的基本操作,如追加、插入和删除。
384

被折叠的 条评论
为什么被折叠?



