博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ti8168 eth0 启动
阅读量:6205 次
发布时间:2019-06-21

本文共 2206 字,大约阅读时间需要 7 分钟。

ti8168 原始文件系统进去后没有网络eth0接口,为了有该接口须要配置/etc/network/interfaces 文件

详细配置例如以下(红色要配置)

 

 

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

 
# The loopback interface
auto lo
iface lo inet loopback

# Wireless interfaces
#
# Example of an unencrypted (no WEP or WPA) wireless connection
# that connects to any available access point:
#
iface wlan0 inet dhcp
        wireless_mode managed
        wireless_essid any
#
#
# Same as above but locked to a specific access point:
#
#iface wlan0 inet dhcp 
#       wireless_mode managed
#       wireless-essid some-essid
#
# A WEP encrypted connection locked to a specific access point:
#
#iface wlan0 inet dhcp 
#       wireless-essid some-essid
#       wireless-key s:My-PlainText-Password
#       wireless-mode managed                 
#
# A WPA1 or WPA2 encrypted connection locked to a specific access point.
# This is the best option for non-roaming, single-network usage.
# Note that your card may require a firmware update to use WPA.
# Some distributions install a temporary volatile firmware update on ifup.
#
#iface wlan0 inet dhcp                                                  
#       wpa-essid some-essid                                         
#       wpa-psk My-PlainText-Password                                             
#
# A WPA1 or WPA2 encrypted connection using an external configuration file
# for wpa-supplicant. This is the way to go if you need to configure multiple
# networks with different keys and / or WPA settings and roaming support.
#
# iface wlan0 inet dhcp
#    wpa-conf /etc/wpa_supplicant.conf
#    wpa-driver hostap

 

iface atml0 inet dhcp

# Wired or wireless interfaces

auto eth0
iface eth0 inet dhcp
        pre-up /bin/grep -v -e "ip=[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /proc/cmdline > /dev/null

iface eth1 inet dhcp

 

# Ethernet/RNDIS gadget (g_ether)

# ... or on host side, usbnet and random hwaddr
iface usb0 inet static
        address 192.168.0.202
        netmask 255.255.255.0
        network 192.168.0.0
        gateway 192.168.0.200

# Zaurus 2.4 Lineo net_fd; obsolete
iface usbd0 inet static
        address 192.168.129.201
        netmask 255.255.255.0
        network 192.168.129.0
        gateway 192.168.129.200

# iPAQ 2.4 mach-sa1100/usb-eth

# (192.168.0.202 is the iPAQ's IP, 192.168.0.200 is the host's IP)
iface usbf inet static
        address 192.168.0.202
        netmask 255.255.255.0
        network 192.168.0.0
        gateway 192.168.0.200

# Bluetooth networking

iface bnep0 inet dhcp

 

ifconfig eth0 MTU 9000

 

转载地址:http://jowja.baihongyu.com/

你可能感兴趣的文章
还是分了的好——看惠普、赛门铁克拆分
查看>>
yum和编译两种方式升级or降级Centos内核
查看>>
Android消息处理机制Looper和Handler详解
查看>>
C# 设置IE Cookie 从而实现自动打开需要登录的页面
查看>>
Android拓展系列(2)--Git使用
查看>>
脚踏实地,不要飘忽不定
查看>>
A Resegmentation Approach for Detecting Rectangular Objects in High-Resolution Imagery
查看>>
郁闷的时候干脆休息
查看>>
sql语句查询Oracle|sql server|access 数据库里的所有表名,字段名
查看>>
当 dynamic 遇上 internal
查看>>
webGL简单例子(klayge)
查看>>
如何在有int型主键遍历表中的某一列数据
查看>>
梯度下降法 Method of steepest descent.
查看>>
跟小静读CLR via C#(09)-扩展方法
查看>>
关于javascript中的回调函数
查看>>
多进程,多线程,就是这么回事儿
查看>>
Java之Log4j入门 [V512工作室视频]
查看>>
mass Framework class模块 v7
查看>>
数的乘方,简单背包,组合
查看>>
70、linux shell常用函数,head
查看>>