VM Wareで仮想OSをブリッジで作ってL2スイッチと接続しているが、L2スイッチ側でRX PacketのDropが多発している。
原因を調べたところ、VM Wareで意図せずHost Onlyアダプタが作成されており、そのアダプタから不明なパケットがでていることから、スイッチのRX Dropのカウンターが上昇していることが判明した。
WindowsのNetwork設定からVM Wware NetworkAdapterのHost OnlyAdapterに割り当てられているNICを無効にするとRX Dropのカウンター上昇が止まった。
2026年3月11日水曜日
L2スイッチでのRX Dropカウンター上昇について(VM Ware)
2025年2月23日日曜日
Cisco-Yamaha IPSEC
Cisco-Yamaha間 IPSEC VPN SAMPLE
10.0.5.0/24-LAN:Cisco-WAN:1.1.1.2/24-1.1.1.1/24:WAN-Router-LAN:2.2.2.1 /24-2.2.2.1/24-YAMAHA-172.16.0.0/24
Cisco
LAN:10.0.5.254/24
WAN:1.1.1.2/24
中間ルータ
Cisco側:1.1.1.1/24
Yamaha側:2.2.2.1/24
Yamaha
LAN:172.16.0.254/24
WAN:2.2.2.2/24
Cisco
crypto isakmp policy 1
encr aes
authentication pre-share
group 2
lifetime 28800
crypto isakmp key IPSECPASSWORD address 2.2.2.2
!
crypto ipsec transform-set IPSEC esp-aes 256 esp-sha-hmac
!
crypto map TOKYO local-address GigabitEthernet0
crypto map TOKYO 1 ipsec-isakmp
set peer 2.2.2.2
set transform-set IPSEC
match address 100
!
interface GigabitEthernet0
ip address 1.1.1.2 255.255.255.0
duplex auto
speed auto
crypto map TOKYO
!
interface Vlan1
ip address 10.0.5.254 255.255.255.0
ip tcp adjust-mss 1350
!
ip route 0.0.0.0 0.0.0.0 1.1.1.1
!
access-list 100 permit ip 10.0.5.0 0.0.0.255 172.16.0.0 0.0.0.255
Yamaha
ip route 1.1.1.0/24 gateway 2.2.2.1
ip route 10.0.5.0/24 gateway tunnel 1
ip lan1 address 172.16.0.254/24
ip lan2 address 2.2.2.2/24
tunnel select 1
ipsec tunnel 101
ipsec sa policy 101 1 esp aes256-cbc sha-hmac
ipsec ike duration isakmp-sa 1 28800
ipsec ike encryption 1 aes-cbc
ipsec ike group 1 modp1024
ipsec ike hash 1 sha
ipsec ike local address 1 2.2.2.2
ipsec ike local id 1 172.16.0.0/24
ipsec ike pre-shared-key 1 text IPSECPASSWORD
ipsec ike remote address 1 1.1.1.2
ipsec ike remote id 1 10.0.5.0/24
ip tunnel tcp mss limit 1350
tunnel enable 1
ipsec auto refresh on
2024年10月16日水曜日
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux Public key for wget-1.19.5-12.el8_10.x86_64.rpm is not installed. Failing package is: wget-1.19.5-12.el8_10.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'dnf clean packages'. Error: GPG check FAILED
「GPG check FAILED」エラーは、インストールしようとしているパッケージのGPG署名が確認できなかったことを示しています。これにより、パッケージの信頼性が保証されず、インストールが失敗しています。
1. GPGキーのインポート
GPGキーが正しくインポートされていない可能性があります。以下のコマンドでAlmaLinuxのGPGキーを手動でインポートしてください:
rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
2024年8月30日金曜日
SSD故障による、HDDへのクローンコピーについて
古いWindows2016 Serverの128GBSSDが壊れかけて、起動時に以下のエラーが出るようになった。
1720-SMARTハードディスク ドライブによる重大な障害の検出。
障害のあるドライブ:コネクタSATA0(Dark Blue)
障害のある属性:#AA
データの損失のリスクを最小限に抑えるために、ハードディスク ドライブの内容をバックアップして、コンピュータセットアップ(F10)ユーティリティのDPSセルフテストを実行します。
CrystalDiskInfoでは、属性#AAは、 「利用可能な予備領域」で異常となっていた。
異常のあるSSDをクローンして入れ替えれば簡単なのだが、Dドライブで使用していた、2TBのHDDを分割してクローン先にすることとした。
2TB→ Cドライブ 128GB Dドライブ残り容量
クローンするにあたっては、Seagate Discwizardを使った。
https://www.seagate.com/jp/ja/support/downloads/discwizard/
このソフトはSeagateのHDDを1台繋いでおけばライセンス上使えるので、Logitec製の中身Seagateの外付けHDDをUSB接続した。
クローンが完了し接続すると、以下のエラーがでた。
Non-System disk or disk error
replace and strike and key when ready
予備で余っていた、128GBの2.5インチHDDにもクローンコピーして試したが、こちらは、以下のエラー
Windows Boot Manager
Windows failed to start. A recent hardware or software change might be the cause.
To fix the problem:
1. Inser your Windows installation disc and restart your computer.
2. choose your language settings,and then click "Next."
3. Click "Repair your computer."
Status: 0xc0000225
原因はEFIパーティションの破損 または、ドライブレターの指定の誤り。
Windows2016の評価版をダウンロードして、起動ディスクを作成
USBなら楽なんだが、事情により、2層DVD8.5Gを使用して作成
DVDドライブから起動して、トラブルシュートからコマンドプロンプトを起動
最初の2TBのHDDは、CドライブがDドライブにっており、500MBの回復領域がCドライブになっていた。
これは、Cドライブのドライブレターを削除してから、DドライブのドライブレターをCに書き換えてから、EFIをフォーマットしてからRebuildbcdを実行
2つ目は、EFIをフォーマットしてからRebuildbcdを実行した。
参考コマンド
>diskpart
DISKPART> select volume 2 (EFIにあたるボリューム番号を指定)
DISKPART> assign letter=b: (空いているドライブレターを指定)
DISKPART> format fs=FAT32 quick (FAT32でフォーマット)
DISKPART> list volume
> cd /d b:\
b:¥> mkdir efi
b:¥> mkdir efi\microsoft
b:¥> mkdir efi\microsoft\boot
b:¥> bootrec /Rebuildbcd
b:¥> bootrec /fixboot
b:¥> bcdboot c:\Windows /l ja-JP /s b: /f ALL
参考URL
https://vmemo.blog.fc2.com/blog-entry-739.html
2023年11月7日火曜日
YAMAHA RTX ルータのWAN側InterfaceへのSSH
Yamaha RTXルータは、WAN側アドレスへの直接のSSH接続は仕様上できない。
そのため、WAN側にSSHで接続するには、少し、工夫が必要となる。
1 ループバックアドレスの作成
ip loopback1 address 192.168.1.1/32
2 NATの設定
nat descriptor masquerade static 200 1 192.168.1.1 tcp 10022=22
ip lan2 address 10.0.0.1/24
ip lan2 nat descriptor 200
ループバックアドレスを作成し、WAN側アドレス(10.0.0.1)にPort10022でアクセスしたときに、ループバックアドレス(192.168.1.1)に、22で転送するように設定する。
VPN環境でLAN側のアドレスを変更する必要があったが、コンフィグの入れ替えによる再起動ではなく、WAN側からアクセスすることで、接続不能になる危険を避けることができた。
2023年7月28日金曜日
DMVPN Cisco
R1
Building configuration...
Current configuration : 1939 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
!
!
no ip domain lookup
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
archive
log config
hidekeys
!
!
crypto isakmp policy 1
encr 3des
hash md5
authentication pre-share
group 2
crypto isakmp key cisco address 0.0.0.0 0.0.0.0
crypto isakmp keepalive 30
!
!
crypto ipsec transform-set dmvpnset esp-3des esp-md5-hmac
!
crypto ipsec profile dmprofile
set transform-set dmvpnset
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
interface Loopback0
no ip address
!
interface Tunnel0
ip address 172.31.255.1 255.255.255.0
no ip redirects
ip mtu 1368
ip nhrp authentication dmcisco
ip nhrp map multicast dynamic
ip nhrp network-id 99
ip nhrp holdtime 300
ip ospf network broadcast
tunnel source FastEthernet0/0
tunnel mode gre multipoint
tunnel key 10
tunnel protection ipsec profile dmprofile
!
interface FastEthernet0/0
ip address 64.100.1.100 255.255.255.0
ip mtu 1454
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.16.10.1 255.255.255.0
ip tcp adjust-mss 1328
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet2/0
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 172.16.0.0 0.0.0.255 area 0
network 172.31.255.0 0.0.0.255 area 0
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
R1#
R2
ter len 0
R2#show run
Building configuration...
Current configuration : 1993 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
!
!
no ip domain lookup
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
archive
log config
hidekeys
!
!
crypto isakmp policy 1
encr 3des
hash md5
authentication pre-share
group 2
crypto isakmp key cisco address 0.0.0.0 0.0.0.0
crypto isakmp keepalive 30
!
!
crypto ipsec transform-set dmvpnset esp-3des esp-md5-hmac
!
crypto ipsec profile dmprofile
set transform-set dmvpnset
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
interface Tunnel0
ip address 172.31.255.2 255.255.255.0
no ip redirects
ip mtu 1368
ip nhrp authentication dmcisco
ip nhrp map multicast 64.100.1.100
ip nhrp map 172.31.255.1 64.100.1.100
ip nhrp network-id 99
ip nhrp holdtime 300
ip nhrp nhs 172.31.255.1
ip ospf network broadcast
ip ospf priority 0
tunnel source FastEthernet0/0
tunnel mode gre multipoint
tunnel key 10
tunnel protection ipsec profile dmprofile
!
interface FastEthernet0/0
ip address 64.100.1.101 255.255.255.0
ip mtu 1454
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.16.11.1 255.255.255.0
ip tcp adjust-mss 1328
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet2/0
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 172.16.11.0 0.0.0.255 area 0
network 172.31.255.0 0.0.0.255 area 0
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
R2#
R3
ter len 0
R3#show run
Building configuration...
Current configuration : 1993 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
!
!
no ip domain lookup
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
archive
log config
hidekeys
!
!
crypto isakmp policy 1
encr 3des
hash md5
authentication pre-share
group 2
crypto isakmp key cisco address 0.0.0.0 0.0.0.0
crypto isakmp keepalive 30
!
!
crypto ipsec transform-set dmvpnset esp-3des esp-md5-hmac
!
crypto ipsec profile dmprofile
set transform-set dmvpnset
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
interface Tunnel0
ip address 172.31.255.3 255.255.255.0
no ip redirects
ip mtu 1368
ip nhrp authentication dmcisco
ip nhrp map multicast 64.100.1.100
ip nhrp map 172.31.255.1 64.100.1.100
ip nhrp network-id 99
ip nhrp holdtime 300
ip nhrp nhs 172.31.255.1
ip ospf network broadcast
ip ospf priority 0
tunnel source FastEthernet0/0
tunnel mode gre multipoint
tunnel key 10
tunnel protection ipsec profile dmprofile
!
interface FastEthernet0/0
ip address 64.100.1.102 255.255.255.0
ip mtu 1454
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.16.12.1 255.255.255.0
ip tcp adjust-mss 1328
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet2/0
no ip address
shutdown
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 172.16.12.0 0.0.0.255 area 0
network 172.31.255.0 0.0.0.255 area 0
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
R3#wr
Building configuration...
[OK]
R3#
2023年7月27日木曜日
L2TPv3 over IPSEC Cisco
R1
R1#show run
Building configuration...
Current configuration : 2153 bytes
!
version 12.4
service timestamps debug datetime msec localtime
service timestamps log datetime msec localtime
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
logging buffered 512000
!
no aaa new-model
memory-size iomem 5
clock timezone JST 9
no ip icmp rate-limit unreachable
ip cef
!
!
!
!
no ip domain lookup
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
archive
log config
hidekeys
!
!
crypto isakmp policy 1
encr 3des
hash md5
authentication pre-share
group 2
crypto isakmp key cisco address 10.0.0.2
crypto isakmp keepalive 30 periodic
!
!
crypto ipsec transform-set IPSEC esp-3des esp-md5-hmac
!
crypto map L2TPv3-IPSEC_to_vpn2 1 ipsec-isakmp
set peer 10.0.0.2
set transform-set IPSEC
match address 100
!
!
!
ip tcp synwait-time 5
pseudowire-class L2TPv3
encapsulation l2tpv3
ip local interface FastEthernet0/0
!
!
!
!
!
interface FastEthernet0/0
ip address 10.0.0.1 255.255.255.252
duplex auto
speed auto
crypto map L2TPv3-IPSEC_to_vpn2
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
xconnect 10.0.0.2 1 pw-class L2TPv3
!
interface FastEthernet2/0
!
interface FastEthernet2/1
!
interface FastEthernet2/2
!
interface FastEthernet2/3
!
interface FastEthernet2/4
!
interface FastEthernet2/5
!
interface FastEthernet2/6
!
interface FastEthernet2/7
!
interface FastEthernet2/8
!
interface FastEthernet2/9
!
interface FastEthernet2/10
!
interface FastEthernet2/11
!
interface FastEthernet2/12
!
interface FastEthernet2/13
!
interface FastEthernet2/14
!
interface FastEthernet2/15
!
interface Vlan1
no ip address
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
!
!
no ip http server
no ip http secure-server
!
access-list 1 permit any
access-list 100 permit 115 host 10.0.0.1 host 10.0.0.2
no cdp log mismatch duplex
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
2023年7月8日土曜日
RHEL8 SMB自動マウント(CIFS)
RHEL8で再起動後に、自動マウントに失敗する事象が発生。
以下の設定で回避した。
root@localhost ~]# mkdi /mnt/nas
root@localhost ~]# chmod 777 /mnt/nas
[root@localhost ~]# vi /root/.credfile
username=smbuser
password=smbpass
domain=WORKGROUP
[root@localhost ~]# chown root:root /root/.credfile
[root@localhost ~]# chmod 600 /root/.credfile
[root@localhost ~]# vi /etc/fstab
//192.168.x.x/TMP_Share /mnt/nas cifs _netdev,credentials=/root/.credfile,dir_mode=0755,file_mode=0755 0 0
説明
"//192.168.x.x/TMP_Share":ネットワーク上のリモートサーバー(192.168.x.x)のTMP_Share共有フォルダをマウントポイントとして使用します。この共有フォルダは、ローカルディレクトリ"/mnt/nas"に接続されます。
"cifs":このマウントポイントはCIFS(Common Internet File System)プロトコルを使用してアクセスされます。CIFSは、WindowsやSambaなどの共有フォルダをLinuxで利用するためのプロトコルです。
"_netdev":ネットワークデバイスであることを示すオプションです。このオプションを指定することで、システムがネットワークの利用可能性を確認してからマウントを試行します。
"credentials=/root/.credfile":認証情報ファイル"/root/.credfile"を使用して、リモートサーバーへのアクセスに必要なユーザー名とパスワードを指定します。このファイルには機密情報が含まれるため、適切なパーミッションを設定してアクセスを制限する必要があります。
"dir_mode=0755":マウントされたディレクトリのパーミッションを指定します。この場合、ディレクトリのモードは"0755"(読み取りと実行が全体に許可され、書き込みが所有者にのみ許可される)に設定されます。
"file_mode=0755":マウントされたファイルのパーミッションを指定します。この場合、ファイルのモードは"0755"(読み取りと実行が全体に許可され、書き込みが所有者にのみ許可される)に設定されます。
"0 0":ファイルシステムのバックアップとチェックの設定を示します。この場合、バックアップは無効化されており、fsck(ファイルシステムのチェック)も行われません。
<参考>
https://access.redhat.com/ja/solutions/1447443
2022年12月5日月曜日
Linux(CentOS8) NATルータ構築
前提条件 WAN側は名前解決できており、インターネットにアクセスできる。
##########################
# DNSサーバ構築 #
##########################
dnsmasqをインストール。
yum install dnsmasq
vi /etc/dnsmasq.d/local-dns.conf
---------------------------------------
domain-needed
bogus-priv
---------------------------------------
systemctl enable dnsmasq
systemctl start dnsmasq
firewall-cmd --add-service=dns --permanent --zone=internal
firewall-cmd --reload
##########################
# NATルータ設定 #
##########################
WAN側 enp3s0
LAN側 enp4s0
firewall-cmd --permanent --zone=internal --change-interface=enp4s0
firewall-cmd --permanent --zone=internal --add-masquerade
firewall-cmd --permanent --direct --add-rule ipv4 nat POSTROUTING 0 -o enp3s0 -j MASQUERADE
firewall-cmd --permanent --direct --add-rule ipv4 filter FORWARD 0 -i enp4s0 -o enp3s0 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter FORWARD 0 -i enp3s0 -o enp4s0 -m state --state RELATED,ESTABLISHED -j ACCEPT
firewall-cmd --reload
2022年10月20日木曜日
Cisco 841M IOS復旧手順
ルータがダウンし、リンクアップしなくなったらしい。
コンソールを接続すると、ロムモニタープロンプトになっている。
loadprog: bad file magic number: 0x0
rommon 1 >
loadprog: bad file magic number: 0x0
boot: cannot load "flash:"
rommon 4 > IP_SUBNET_MASK=255.255.255.0
rommon 5 > TFTP_SERVER=192.168.4.2
rommon 6 > DEFAULT_GATEWAY=192.168.4.1
rommon 7 > TFTP_FILE=c800m-universalk9-mz.SPA.155-3.M10.bin
rommon 8 > TFTP_VERBOSE=2
rommon 9 > tftpdnld
IP_ADDRESS: 192.168.4.3
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 192.168.4.1
TFTP_SERVER: 192.168.4.2
TFTP_FILE: c800m-universalk9-mz.SPA.155-3.M10.bin
Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash will be lost!
Do you wish to continue? y/n: [n]: y
Performing tftpdnld over Fast Enet.
Interface is operating at: 100Mbps/FULL DUPLEX
Initializing interface.
Interface link state down.
Interface link state up.
ARPing for 192.168.4.2
2022年3月16日水曜日
楽天LINKとXiaomi MI Bandとの連動
楽天LINKとXiaomi MI Bandの連動をTaskerでカスタマイズした。
タスク作成
1.通知を出す/Notify
2.通知取り消し/Notify Cancel
作成したタスクをプロファイルに紐づける。
通知(Link,Call) 所有者であるアプリ 楽天LINK
カテゴリー Call
Mi Fitアプリ
プロフィール
マイデバイスのMi スマートバンド6をタップ
通知とリマインド
アプリ通知
アプリを管理からTaskerを追加する。
2021年6月7日月曜日
USBIP検証(USBエクステンダー自作)
USBIP検証
Server
Raspberry pi 3 B+
192.168.10.10
$ sudo apt
install usbip
Client CentOS
IPアドレス、Gateway,DNSの設定が必要
■HOST側(RaspberryPi)
$ sudo fdisk –l
~省略~
Disk /dev/sda:
29 GiB, 31142707200 bytes, 60825600 sectors
Disk model:
Units: sectors
of 1 * 512 = 512 bytes
Sector size
(logical/physical): 512 bytes / 512 bytes
I/O size
(minimum/optimal): 512 bytes / 512 bytes
Disklabel type:
dos
Disk
identifier: 0x0116af91
Device Boot Start End
Sectors Size Id Type
/dev/sda1 *
2048 60825599 60823552 29G c W95 FAT32 (LBA)
$ sudo mkdir
/mnt/usb1
$ sudo mount
/dev/sda1 /mnt/usb1
$ df -h
Filesystem Size
Used Avail Use% Mounted on
~省略~
/dev/sda1 29G
1.9G 28G 7% /mnt/usb1
$ sudo modprobe
usbip_host
$ usbip list -l
- busid 1-1.1.1 (0424:7800)
Standard Microsystems Corp. : unknown
product (0424:7800)
- busid 1-1.3 (058f:6387)
Alcor Micro Corp. :
$ sudo usbip
bind -b 1-1.3
usbip: info:
bind device on busid 1-1.3: complete$ sudo usbipd –D
$ sudo usbipd
-D
解除方法
sudo usbip
unbind -b 1-1.3
■クライアント側
CetnOS7の場合
sudo rpm
--import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
sudo rpm -ivh
http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
CentOS8の場合
sudo rpm
--import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
sudo rpm -ivh
https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
sudo dnf -y
install kmod-usbip
sudo dnf -y install
usbip-utils
再起動をする。
※再起動しないと、vhci-hcdを読み込まなかった。
shutdown -r now
# modprobe
vhci-hcd
# usbip list -r
192.168.10.10
Exportable USB
devices
======================
- 192.168.10.10
1-1.3: Alcor Micro Corp. :
: /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3
: (Defined at Interface level)
(00/00/00)
#usbip attach
-r 192.168.10.10 -b 1-1.3
# fdisk -l
デバイス 起動 開始位置 終了位置 セクタ サイズ Id タイプ
/dev/sdb1 *
2048 60825599 60823552 29G c W95 FAT32 (LBA)
# cd /mnt
# mkdir usb1
# mount
/dev/sdb1 /mnt/usb1
# df -h
ファイルシス サイズ 使用 残り 使用% マウント位置
devtmpfs 376M 0
376M 0% /dev
tmpfs 405M 0
405M 0% /dev/shm
tmpfs 405M 6.2M
399M 2% /run
tmpfs 405M 0
405M 0% /sys/fs/cgroup
/dev/mapper/cl-root 8.0G
4.4G 3.7G 55% /
/dev/sda1 1014M 325M
690M 33% /boot
tmpfs 81M 1.2M
80M 2% /run/user/42
tmpfs 81M
4.0K 81M 1% /run/user/1000
/dev/sdb1 29G 1.9G
28G 7% /mnt/usb1
[root@localhost
mnt]#
# umount
/mnt/usb1
[root@localhost
mnt]# usbip port
Imported USB
devices
====================
Port 00:
<Port in Use> at High Speed(480Mbps)
Alcor Micro Corp. :
2-1 ->
usbip://192.168.10.10:3240/1-1.3
-> remote bus/dev 001/005
[root@localhost
mnt]# usbip detach -p 00
usbip: info:
Port 0 is now detached!
2台同時には使えない。
使おうとすると、”no
exportable devices found on 192.168.10.10”と表示される。
使用を解除すると、使えるようになる。
[root@localhost
~]# usbip list -r 192.168.10.10
usbip: info: no
exportable devices found on 192.168.10.10
[root@localhost
~]# usbip list -r 192.168.10.10
Exportable USB
devices
======================
- 192.168.10.10
1-1.3: Alcor Micro Corp. :
:
/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3
: (Defined at Interface level)
(00/00/00)
:
0 - Mass Storage / SCSI / Bulk-Only (08/06/50)
2020年12月21日月曜日
Biglobe SIMでデータ使い切ったときは詰んでしまう。ボリュームチャージ100M/300円 10回まで制限
12月の初めに、サブ機でGooglePlayBookが暴走して、モバイルで本を10Gダウンロードしてしまった。
家族でSIM 5枚を共有していたため、すべてのSIMが200kbps制限になった。
当初、200kbps制限なら何とかなるかなと思っていたが、バーコード決済もものすごく遅い。
D払いに関しては、WifiではNGでWifiをOFFにしないと使えない始末。
ボリュームチャージ100Mも考えたが、1Gで3000円、それ以上はできないとなると、焼け石に水。
楽天モバイルのサブ機をテザリングして当面はしのいだが、家族全滅となるとリスクが高いなぁ。
やはり、家族別のキャリアに分けた方が、リスク分散していいかもしれない。
自分 Docmo系
妻 AU系
子供 Softbank系
サブ機も暴走しても、大丈夫なように、モバイルデーターの上限値を設定した。
2020年12月16日水曜日
2020年11月25日水曜日
Asterisk Dial() Timeout削除
Asterisk ダイアルプランにおいて、Timeoutを削除する。
変更前
exten => _20Z,1,Dial(SIP/${EXTEN},30,tT)
変更後
exten => _20Z,1,Dial(SIP/${EXTEN},,tT)
タイムアウト値をなし「,,」に設定すると、無限になる。
ちなみに、0を設定すると、以下のメッセージがでて、同じようにタイムアウト値が無限に設定された。
dial_exec_full: Invalid timeout specified: '0'. Setting timeout to infinite
※海外の掲示板では0にすればいいという記載があった。(無効な値 0や文字などを入れても結果は一緒)
2020年9月12日土曜日
2020年9月1日火曜日
玄箱 玄人志向 KURO-BOX Debian化
2020年8月時点で、ヨッパのサーバー構築が生きていたので、ダウンロードできました。
念のため、再配布しておきます。
install_debian.txt
install_debian_standalone.txt
debian_2004_12_26_dist.tgz
2020年8月30日日曜日
玄人志向 玄箱(KURO-BOX) の付属CD-ROM
HDDは捨てずに、置いていた80GのIDE HDDがあったので、それを流用
付属CD-ROM(KuroBoxUpdate.exe)がなかったが、公式サイトからダウンローできた。
https://www.kuroutoshikou.com/product/old_series/old_case/old_case_kurobako/old_case_kurobako_select/kuro-box/
ファームウェアアップデート Ver1.02 (2004.04.20):20MB
デフォルト設定
IPアドレス DHCPまたは、192.168.10.150(DHCPサーバーがいると優先される。)
TELNET
User:root
PASS:kuro
WEB
User:kuro
PASS: なし
Debianを入れて、Asterisk検証などをしようと思っているけど、ネットで検索したリンク先がのみ、切れている。。
2020年7月27日月曜日
ザウルス C860の復旧
FN+D+Mを同時に3つ押しながらアダプタをつないでサービスメニューを起動してNANDを確認すると、エラーが多い。
幸いなことに複数持っていたので、正常に起動する方でNANDをバックアップして、
起動しないほうでリストアしてみることにした。
