标签:network
Ubuntu 22.04配置静态IP地址
蓝鹰 | 杂类其它 | 2023-06-17
编辑网卡配置文件,命令:vi /etc/netplan/00-installer-config.yaml
输入以下网卡配置信息,内容格式为yaml,不太了解的可以学习一下。
network:
ethernets:
eth0:
dhcp4: no
addresses: [192.168.1.88/24]
routes:
- to: default
via: 192.168.1.1
nameservers:
addresses: [114.114.114.114]
version: 2
应用网卡配置文件,命令 netplan apply
网卡... [阅读全文]
centos安装 setuptools
蓝鹰 | CentOS | 2016-05-23
centos运行不了setup?那安装setuptool吧,可以节省很多系统管理的时间。
#安装setuptool
yum -y install setuptool
#可以发现执行setup后不全,再安装一个用于系统服务管理
yum -y install ntsysv
#再安装个防火墙,以及setup中配套的防火墙设置、网络设置
yum -y install iptables
#安装setup中配套的防火墙设置
yum -y install system-config-securit... [阅读全文]
debain用udhcpd做htcp服务器
蓝鹰 | debian | 2015-11-16
安装必备程序
apt-get install udhcpd
udhcpd主要为连接到WiFi的设备自动分配IP地址的,当然你也可以换用你所熟悉的软件。
配置udhcpd,编辑/etc/udhcpd.conf,主要内容如下:
start 192.168.42.2 # This is the range of IPs that the hostspot will give to client devices.
end 192.168.42.20
interface wlan0 # The device uDHCP listens on.
re... [阅读全文]
Debian使用Hostapd搭建无线访问点(WAP)
蓝鹰 | debian | 2015-11-16
不是每张网卡都有无线AP功能所以先检查下
http://linuxwireless.org/en/users/Drivers/
这里可以查到支持AP的网卡及内核版本
apt-get install wireless-tools
iw list
重点观察:
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
* mesh point
* P2P-client
* P2P-GO
看看这段中是不是有AP如果有可以继续,
步骤1: 安装hostapd
a... [阅读全文]
搞定debain Linux下WPA无线上网
蓝鹰 | debian | 2015-11-10
首先,我假设您们都已经正确安装了无线网卡的驱动程序。没有这前提,后续的一切都如镜花水月。如果您你机器确实没有正确安装上,您应该看看关于您的发布版本的维基和文档。
简单方法:
apt-get install wireless-tools wpasupplicant
收集信息
获取 SSID
iwlist scan
配置无线网络
把下面文件中的 ssid 和 passwd 换成无线网络的 ssid 和密码。
vim /etc... [阅读全文]
debian adsl拨号上网和网络设置详细
蓝鹰 | debian | 2015-11-09
PPPoE拨号
家用路由器不能PPPoE拨号那基本就掉价一半了。接下来要让我的NAS能拨号。
要能让系统做PPPoE拨号首先得需要确保ppp和pppoe模块编译到内核里了(或者以模块的方式加载),debian发行版自带的kernel已经默认编译进去了。然后安装pppoeconf:
# apt-get install pppoeconf
安装结束后执行pppoeconf,该工具用来配置 /etc/ppp/peers/dsl-provider... [阅读全文]
Debian双网卡配置
蓝鹰 | debian | 2015-11-09
1.单网卡配置
/etc/network/interfaces
auto eth0
#iface eth0 inet dhcp(默认是DHCP被注释掉)
iface eth0 inet static
address 192.168.8.110
netmask 255.255.255.0
gateway 192.168.8.1
2.双网卡配置
/etc/network/interfaces
auto eth0
#iface eth0 inet dhcp(默认是DHCP被注释掉)
iface eth0 inet static
address 192.168.8.110
netmask 255.2... [阅读全文]
Centos 6 关闭ipv6后报错: Module off not found 解决
蓝鹰 | CentOS | 2015-10-22
Centos 6 关闭ipv6 在 /etc/modprobe.d/dist.conf增加如下内容
alias net-pf-10 off
alias ipv6 off
此步可以禁止ipv6,但重启网络会提示报错FATAL: Module off not found.
解决方法如下:
1. alias ipv6 off 替换成 options ipv6 disable=1
2. /etc/sysconfig/network 新增如下一行
NETWORKING_IPV6=off
3. 关闭iptables的ipv6
chkconfig ip6tables off
[阅读全文]
尝试设置网卡的 IP 地址时出现错误信息
蓝鹰 | WIN系统教程 | 2015-05-01
当您尝试设置网卡的 IP 地址时,可能会收到以下错误信息:
The IP address XXX.XXX.XXX.XXX you have entered for this network adapter is already assigned to another adapter Name of adapter.Name of adapter is hidden from the network and Dial-up Connections folder because it is not physically in the computer or is a legacy adapter ... [阅读全文]
Centos 6 关闭ipv6后报错: Module off not found 解决
蓝鹰 | CentOS | 2014-11-17
Centos 6 关闭ipv6 在 /etc/modprobe.d/dist.conf增加如下内容
alias net-pf-10 off
alias ipv6 off
此步可以禁止ipv6,但重启网络会提示报错FATAL: Module off not found.
解决方法如下:
1. 将/etc/modprobe.d/dist.conf 文件中 alias ipv6 off 替换成 options ipv6 disable=1
2. /etc/sysconfig/network 新增如下一行
NETWORKING_IPV6=off
3. 关闭ipt... [阅读全文]