网络管理


1. 有线网卡

1.1. 动态IP配置

DHCP自动获取IP配置示例:

auto enp3s0
iface enp3s0 inet dhcp
hostname loongson

1.2. 静态IP配置

静态IP地址示例:

auto enp3s0
iface enp3s0 inet static
address 192.168.0.3/24
broadcast 192.168.0.255
network 192.168.0.0
gateway 192.168.0.1

2. 无线网卡

示例:

auto wlp4s0
iface wlp4s0 inet dhcp
wpa-ssid Falcot
wpa-psk ccb290fd4fe6b22935cbae31449e050edd02ad44627b16ce0151668f5f53c01b

wpa psk参数可以包含纯文本密码短语,也可以包含用wpa_passphrase SSID密码短语生成的哈希版本。

©龙芯开源社区 all right reserved,powered by Gitbook文档更新时间: 2023-12-21 12:36:52

results matching ""

    No results matching ""

    results matching ""

      No results matching ""