https://hackmd.io/@synchrotech-inc/SJXbVFysr
2022年12月15日 星期四
2022年7月3日 星期日
using spyder python terminal on windows command line
https://stackoverflow.com/questions/42602024/windows-shortcut-to-run-python-script-in-anaconda-command-prompt
nce the quotes were inserted correctly this worked perfectly for me. I had been looking all over for a good solution to this problem. I have Anaconda3 installed. Thanks to Eryk Sun et al.
My batch file as follows: -
echo off
cls
"%windir%\System32\cmd.exe" /k ""C:\ProgramData\Anaconda3\Scripts\activate.bat" "C:\ProgramData\Anaconda3" && python.exe "C:\Desktop\eam\1\1-v2.py""
2022年6月11日 星期六
route add
https://blog.xuite.net/mypace/wretch/145109060
電腦] Windows Route Table 兩張網卡的設定
30627電腦網路
1.設定所有IP走IP分享器(192.168.1.1)
要增加預設值網路閘道位址為 192.168.1.1 的預設值路由,輸入:
route add 0.0.0.0 mask 0.0.0.0 192.168.1.1
2.設定大愛網段走大愛網卡
route ADD 192.168.161.0 MASK 255.255.255.0 192.168.161.1
3.啟動大愛網卡時候會造成兩個0.0.0.0閘道
route change 0.0.0.0 mask 0.0.0.0 192.168.1.1
關於第三點可參考 http://sunrise-msn.spaces.live.com/Blog/cns!487A9984929026B7!202.entry
----------
要增加預設值網路閘道位址為 192.168.1.1 的預設值路由,輸入:
route add 0.0.0.0 mask 0.0.0.0 192.168.1.1
2.設定大愛網段走大愛網卡
route ADD 192.168.161.0 MASK 255.255.255.0 192.168.161.1
3.啟動大愛網卡時候會造成兩個0.0.0.0閘道
route change 0.0.0.0 mask 0.0.0.0 192.168.1.1
關於第三點可參考 http://sunrise-msn.spaces.live.com/Blog/cns!487A9984929026B7!202.entry
----------
上方例子的電腦,Windows開機後,路由表居然有兩筆閘道資料,但不要以為都可以通,預設閘道只能使用一個,也就是在路由表下方所顯示的Default Gateway:
C:\> route print
C:\> route print
Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 10.101.8.254 10.101.8.64 20 0.0.0.0 0.0.0.0 192.168.101.254 192.168.101.1 20 Default Gateway: 10.101.8.254 ===========================================================================
我們可以用指令來改變預設閘道,例如:
C:>route change 0.0.0.0 mask 0.0.0.0 192.168.101.254
C:>route print
C:>route change 0.0.0.0 mask 0.0.0.0 192.168.101.254
C:>route print
Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.101.254 192.168.101.1 1 Default Gateway: 192.168.101.254 ===========================================================================
將預設閘道改成192.168.101.254之後,閘道資料只剩一筆了。
設定好的網路組態Windows會儲存起來,因此可以一直持續使用,直到如果其中有一方的閘道不通了,Windows就會自動把預設閘道換成可以用的閘道。
https://blog.csdn.net/wuqingyu01/article/details/88965784
Windows系统增加和删除永久静态路由
wuqingyu01
于 2019-04-02 11:19:04 发布
57278
收藏 49
分类专栏: Windows 文章标签: 永久静态路由 永久网关地址 静态网关地址 删除永久静态
版权
Windows
专栏收录该内容
1 篇文章0 订阅
订阅专栏
1.查看系统中是否有配置过静态路由
打开cmd命令窗口,输入“route print -4”命令。可以看到如下图:
2.比如:添加一条去往 10.10.10.0/24网段的静态路由,指定去往此网段的路由都走 172.20.153.254网关
route -p add 10.10.10.0 mask 255.255.255.0 172.20.153.254
其中此处用到的几个参数的作用是:
-p 表示永久路由,重启后不丢失
Add 添加路由
10.10.10.0 表示目的网段的网络地址
Mask 固定命令,后面跟的是目标网段的子网掩码
172.20.153.254 是去往目的网段的
3.检查一下是否添加成功
route print
4.删除添加的永久静态路由
route delete 10.10.10.0(目的网段网络地址)
5.修改一条路由记录
route change 192.168.0.0 mask 255.255.0.0 192.168.14.1 metric 1 if 2 (CHANGE参数只能修改“网关”和“跳数”)。
————————————————
版权声明:本文为CSDN博主「wuqingyu01」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/wuqingyu01/article/details/88965784
https://docs.microsoft.com/en-us/troubleshoot/windows-client/networking/incorrect-default-gateways-in-persistent-routes
訂閱:
文章 (Atom)
PCMCIA ATA Flash PC Card imaging using OmniDrive 留言
The best source of information for utilizing the OmniDrive and the PC Card Manager software it comes with is the documentation that the device comes with — starting with the comprehensive help system contained in PC Card Manager’
"Help"
menu.A copy of this document is available online.
I. Checking the OmniDrive
A quick way to determine if the OmniDrive, its drivers, and PC Card Manager are working is to
Menu: "Tools -> Analyze Card"
Here, we used a 64MB ATA Flash PC Card, so the values populating the fields in the “ATA Card” section will likely look different than those you are deploying. What’s important is that the fields are filled in with values. If there are issues, see the begining of this document for instructions on checking the OmniControl utility to ensure that all the drivers and software packages are installed correctly.
II. Creating an image of a card
To create a byte-for-byte image (binary image) of the ATA Flash PC Card:
Menu: "Actions -> Copy -> Card to File(s)"
"New"
in the"Copy Jobs"
section"Source; File"
click the ellipse"…"
character"Save As"
dialog perform the following:"Save in:"
pop-up"File name:"
field"Files of type"
pop-up to"BIN files"
"Save"
"Source"
the following attributes will be preset:"Copy"
in the bottom of the"Copy: Card to File(s)"
dialog. A progress indicator will appear."Copy Jobs; Address"
III. Writing images to cards
The process for writing images to cards is very similar to the process above.
To write a byte-for-byte copy of a binary image to the ATA Flash PC Card:
Menu: "Actions -> Copy -> File(s) to Card"
"New"
in the"Copy Jobs"
sectionUnder
"Source; File"
click the ellipse"…"
characterChange
"Files of type"
to"BIN files"
and locate the file created in step II.5 above.Click
"Open"
. Like step II.6 above, there is no need to change the default values. Here, the attributes will be under"Target".
They should read the same as discussed above:"Options"
select"Write with verify"
and click"Copy"
. A progress dialog appears."Source file"
under"Copy Jobs"
. You may now eject the current PC Card and insert a new card."Copy"
for all subsequent cards, and"Cancel"
when you are done.Compares
A compare function, much like
cmp
in Unix, is available to check cards to binary images. The process described in the document OmniDrive: Comparing .bin files to Linear Flash images would be the same for ATA Flash as it is for Linear Flash.