- 15/10/10
- 90
- 0
экран ANDROID ASUS P1801 <--> модемом ANDROID ZTE MF823:MODS1
-----------------------------------------------------------------------------------------------
Ifconfig -a
dummy0 Link encap:Ethernet HWaddr AE:7C:50:93:20:18 <------------------------------------------ ??? ---- Как его запустить чтоб он светился всегда в Меню "Настройки" для Yotaсвистка (плиз... тормоза доброе время суток )
BROADCAST NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 <---------------------------------------------- ??? ---- Хочу этот протокол
NOARP MTU:1452 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback <---------------------------------------------- Этот несомненно нужен
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
p2p0 Link encap:Ethernet HWaddr 760:2B:0E:44:C4 <---------------------------------------------- ??? ----
inet6 addr: fe80::74d0:2bff:fe0e:44c4/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
sit0 Link encap:IPv6-in-IPv4 <---------------------------------------------- ??? ----
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr 36:4B:50:B7:EF:6B <---------------------------------------------- ??? ---- модемом ANDROID ZTE MF823:MODS1
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 740:2B:0E:44:C4 <---------------------------------------------- ??? ---- Сижу в сети адаптер Wi-Fi(экран для винды тоскать не смогу)
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::76d0:2bff:fe0e:44c4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:118223 errors:0 dropped:0 overruns:0 frame:0
TX packets:128659 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35858697 (34.1 MiB) TX bytes:11146927 (10.6 MiB)
==================================================
---> Из каких делать ifdownов <имя интерфейса> ???
---------- Сообщение добавлено в 03:09 ---------- Предыдущее сообщение было от в 02:40 ----------
Installing The Linux Dummy-Network Interface
If your NST system does not have an active NIC adapter installed or is off-line from the network, you can install a Dummy Network Interface Module to simulate a network computing environment. This can be quite useful for testing out various networking tools (e.g., Wireshark and Snort) with the Network Security Toolkit when off-line. Use the following procedure to install the Linux Dummy-Network Interface:
1. Add an IP address and host name to your "/etc/hosts" table. For example, an Internet address of 10.0.0.1 would result in:
echo 10.0.0.1 $HOSTNAME >> /etc/hosts
2. Preload the dummy network driver on the machine. If this command is successful, you do not receive any messages from the server.
# modprobe dummy
If you need to load more than one (1) dummy interface use the following (Three (3) in this example):
# modprobe dummy numdummies=3
3. Bind the dummy established network interface to the $HOSTNAME configured IP address. Also shown are other bindings for virtual network interfaces using IP Address Aliasing
# ifconfig dummy0 $HOSTNAME
# ifconfig dummy0:0 10.0.0.2
# ifconfig dummy0:1 10.0.0.3
4. Add a route other than “default” to the established connectivity to each virtual network interface.
# route add $HOSTNAME dummy0
# route add 10.0.0.2 dummy0:0
# route add 10.0.0.3 dummy0:1
5. Check the network binding: This command gives below listed output:
# ifconfig dummy0
dummy0 Link encap:Ethernet HWaddr 2A:7B:EA:49:69:E2
inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::287b:eaff:fe49:69e2/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:824 (824.0 b)
#
# ifconfig dummy0:0
dummy0:0 Link encap:Ethernet HWaddr 2A:7B:EA:49:69:E2
inet addr:10.0.0.2 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
#
# ifconfig dummy0:1
dummy0:1 Link encap:Ethernet HWaddr 2A:7B:EA:49:69:E2
inet addr:10.0.0.3 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
6. Check the route binding: This command shows the routing as it is set up.
# route -n
Kernel IP routing table:
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 dummy0
10.0.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 dummy0
10.0.0.3 0.0.0.0 255.255.255.255 UH 0 0 0 dummy0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 dummy0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
References
-----------------------------------------------------------------------------------------------
Проблемы-то пока никакой не видно. Конечно, на планшете Вам нужно отключить все другие сетевые адаптеры перед тем, как экспериментировать с этим usb0. В первую очередь, адаптер Wi-Fi. Можно просто в консоли запустить ifdown <имя интерфейса> для всех, кроме lo и usb0. Потом, наверное, нужно будет запустить получение адресов по DHCP или временно задать адрес/маску/шлюз вручную, с помощью тех же ifconfig и route. А после того, как у usb0 появятся нормальные адреса, всё должно уже работать.
Впоследствии, можно будет придумать, как это всё автоматизировать. Сейчас главное - получить Интернет-трафик на этом интерфейсе.
Да, а у Вас на планшете разве нельзя делать скриншоты из меню при долгом нажатии на кнопку питания?
Ifconfig -a
dummy0 Link encap:Ethernet HWaddr AE:7C:50:93:20:18 <------------------------------------------ ??? ---- Как его запустить чтоб он светился всегда в Меню "Настройки" для Yotaсвистка (плиз... тормоза доброе время суток )
BROADCAST NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 <---------------------------------------------- ??? ---- Хочу этот протокол
NOARP MTU:1452 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback <---------------------------------------------- Этот несомненно нужен
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
p2p0 Link encap:Ethernet HWaddr 760:2B:0E:44:C4 <---------------------------------------------- ??? ----
inet6 addr: fe80::74d0:2bff:fe0e:44c4/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
sit0 Link encap:IPv6-in-IPv4 <---------------------------------------------- ??? ----
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr 36:4B:50:B7:EF:6B <---------------------------------------------- ??? ---- модемом ANDROID ZTE MF823:MODS1
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 740:2B:0E:44:C4 <---------------------------------------------- ??? ---- Сижу в сети адаптер Wi-Fi(экран для винды тоскать не смогу)
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::76d0:2bff:fe0e:44c4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:118223 errors:0 dropped:0 overruns:0 frame:0
TX packets:128659 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35858697 (34.1 MiB) TX bytes:11146927 (10.6 MiB)
==================================================
---> Из каких делать ifdownов <имя интерфейса> ???
---------- Сообщение добавлено в 03:09 ---------- Предыдущее сообщение было от в 02:40 ----------
Installing The Linux Dummy-Network Interface
If your NST system does not have an active NIC adapter installed or is off-line from the network, you can install a Dummy Network Interface Module to simulate a network computing environment. This can be quite useful for testing out various networking tools (e.g., Wireshark and Snort) with the Network Security Toolkit when off-line. Use the following procedure to install the Linux Dummy-Network Interface:
1. Add an IP address and host name to your "/etc/hosts" table. For example, an Internet address of 10.0.0.1 would result in:
echo 10.0.0.1 $HOSTNAME >> /etc/hosts
2. Preload the dummy network driver on the machine. If this command is successful, you do not receive any messages from the server.
# modprobe dummy
If you need to load more than one (1) dummy interface use the following (Three (3) in this example):
# modprobe dummy numdummies=3
3. Bind the dummy established network interface to the $HOSTNAME configured IP address. Also shown are other bindings for virtual network interfaces using IP Address Aliasing
# ifconfig dummy0 $HOSTNAME
# ifconfig dummy0:0 10.0.0.2
# ifconfig dummy0:1 10.0.0.3
4. Add a route other than “default” to the established connectivity to each virtual network interface.
# route add $HOSTNAME dummy0
# route add 10.0.0.2 dummy0:0
# route add 10.0.0.3 dummy0:1
5. Check the network binding: This command gives below listed output:
# ifconfig dummy0
dummy0 Link encap:Ethernet HWaddr 2A:7B:EA:49:69:E2
inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::287b:eaff:fe49:69e2/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:824 (824.0 b)
#
# ifconfig dummy0:0
dummy0:0 Link encap:Ethernet HWaddr 2A:7B:EA:49:69:E2
inet addr:10.0.0.2 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
#
# ifconfig dummy0:1
dummy0:1 Link encap:Ethernet HWaddr 2A:7B:EA:49:69:E2
inet addr:10.0.0.3 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
6. Check the route binding: This command shows the routing as it is set up.
# route -n
Kernel IP routing table:
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 dummy0
10.0.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 dummy0
10.0.0.3 0.0.0.0 255.255.255.255 UH 0 0 0 dummy0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 dummy0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
References
Последнее редактирование: