资讯专栏INFORMATION COLUMN

linux network configure and setup

wuyumin / 2079人阅读

摘要:

linux network tools
#: dpkg --search `which ifconfig` (rpm  : search it with you hand)

net-tools: /sbin/ifconfig

iproute2: /sbin/ip

network-manager: /usr/bin/nmcli

isc-dhcp-client: /sbin/dhclient
and so on ...

wireless-tools: /sbin/iwconfig

you can find more information in archlinux wiki
And here is the wireless network setup.
1. iw dev waln0 link : check the status of the wlan0
2. # iw dev wlan0 connect "your_essid" key 0:your_key
or: # iw dev wlan0 connect "your_essid" key d:2:your_key
3. wpa_supplicant -D nl80211,wext -i wlan0 -c <(wpa_passphrase "your_SSID" "your_key")
4. get the ip for wlan0: dhcpcd wlan0 or dhclient -4 waln0

stop the networkmanager (ubuntu)

$ sudo /etc/init.d/network-manager stop
$ sudo update-rc.d network-manager remove

**OR: **
$ sudo stop network-manager
$ echo "manual" | sudo tee /etc/init/network-manager.override

ARCHLINUX:
$ sudo systemctl stop NetworkManager.service
$ sudo systemctl disable NetworkManager.service

/etc/network/interfaces setup
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

#auto eth0
#iface eth0 inet dhcp
# add by hz 

auto waln0
iface wlan0 inet dhcp

auto br0
iface br0 inet dhcp
    bridge_ports eth0
    bridge_stp off
    bridge_maxwait 0
    bridge-fd 0

and some useful commond:

#auto eth0
#iface eth0 inet dhcp

#auto br0
#iface br0 inet dhcp
#pre-up tunctl -t tap0 -u hz -g hz
#pre-up ip link set dev eth0 down
#pre-up brctl addbr br0
#pre-up brctl addif br0 eth0
#pre-up brctl addif br0 tap0
#pre-up ip link set dev tap0 up
#up chmod 0666 /dev/net/tun
#post-down ip link set dev tap0 down
#post-down ip link set dev br0 down
#post-down brctl delif br0 eth0
#post-down brctl delif br0 tap0
#post-down brctl delbr br0
    #bridge_ports eth0
    #bridge_fd 0
    #bridge_maxpage 12
    #bridge_stp off

https://help.ubuntu.com/community/KVM/Directly
http://www.h7.dion.ne.jp/~qemu-win/HowToNetwork-en.html#card

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/23413.html

相关文章

  • linux network configure and setup

    摘要: linux network tools #: dpkg --search `which ifconfig` (rpm : search it with you hand) net-tools: /sbin/ifconfig iproute2: /sbin/ip network-manager: /usr/bin/nmcli isc-dhcp-client: /sbin/dh...

    Anshiii 评论0 收藏0
  • ElasticSearch实战:Linux日志对接Kibana

    摘要:是用开发的,并作为许可条款下的开放源码发布,是当前流行的企业级搜索引擎。下面,我们以接管日志为例,详细介绍如何进行配置与部署。建议修改配置前,先备份此文件。然后,确认需要对接的的日志目录,我们以下图为例。修改好上述内容后,保存退出。 本文由云+社区发表 ElasticSearch是一个基于Lucene的搜索服务器。它提供了一个分布式多用户能力的全文搜索引擎,基于RESTFul web接...

    SmallBoyO 评论0 收藏0
  • linux下安装node环境以及配置软连接、pm2管理node进程

    摘要:安装在官方网站下载系统的安装包,然后上传到服务器进行解压安装执行解压命令重命名确认一下下目录是否有和文件,如果有执行软连接,如果没有重新下载执行上边步骤通过源码编译,在官方网站下载文件,路径自己选择查看当前安装的的版本建 安装 在官方网站下载linux系统的安装包,然后上传到服务器进行解压安装 执行解压命令:tar -xvf node-v6.10.0-linux-x64.tar...

    ispring 评论0 收藏0
  • django+centos+cx_Oracle开发环境搭建

    摘要:设置固定重启配置文件使之生效安装安装略安装文件如下然后让新环境生效安装如果默认源被墙壁打开文件在其中添加然后重启网卡使用命令数据库数据库添加以下内容到然后让新环境 Linux设置固定IP vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.0.116 NE...

    stormgens 评论0 收藏0
  • django+centos+cx_Oracle开发环境搭建

    摘要:设置固定重启配置文件使之生效安装安装略安装文件如下然后让新环境生效安装如果默认源被墙壁打开文件在其中添加然后重启网卡使用命令数据库数据库添加以下内容到然后让新环境 Linux设置固定IP vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.0.116 NE...

    libin19890520 评论0 收藏0

发表评论

0条评论

wuyumin

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<