2022年6月11日 星期六

route add

 https://blog.xuite.net/mypace/wretch/145109060


電腦] Windows Route Table 兩張網卡的設定

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

----------
上方例子的電腦,Windows開機後,路由表居然有兩筆閘道資料,但不要以為都可以通,預設閘道只能使用一個,也就是在路由表下方所顯示的Default Gateway:
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
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

2022年3月11日 星期五

Adding download actions , export auto open excel (firefox)

 

Adding download actions

Starting in Firefox version 98, when you download a file that can be opened with an installed application, you can right-click the downloaded item in the Downloads panel and select Always Open Similar Files from the context menu.

Fx97Downloads-FileContextmenu

Selecting Always Open Similar Files will add a new download action entry for that type of file to the General panel Applications section of Firefox settings. You can later change the download action (see above) to a different action, such as "Always ask" or "Save File", if you wish. 

2021年11月25日 星期四

overlay one pdf or ps file on top of another

 https://stackoverflow.com/questions/501723/overlay-one-pdf-or-ps-file-on-top-of-another


You can do this with pdf files using the command line tool pdftk using the stamp or background option.

e.g.

$ pdftk file1.pdf background file2.pdf output combinedfile.pdf

This will only work with a one-page background file. If you have multiple pages, you can use the multibackground command instead.

Display gridlines in a Microsoft Word document

 https://www.techrepublic.com/blog/microsoft-office/display-gridlines-in-a-microsoft-word-document/


Method #3: Printing Gridlines for Text and Image Alignment

Step #1: Open the Word document containing an image

Open the Word document, and navigate to the page with the image.

Step #2: Turn Gridlines on

Click on View tab on the top menu bar and click on Gridlines to turn it on. A grid should now cover the page.


Fix Ctrl Alt Del not Working on Windows 10 (Solved) JUNE 30, 2021 By KARAN

 https://thegeekpage.com/fix-ctrl-alt-del-not-working-on-windows-10-solved/


Solution 1] Via Registry editor

1. Search regedit in your windows 10 Search box and click on Registry editor icon to open Registry editor.

 

2. Now , go to the following path in the registry editor.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies

3. Now, check if there is a key named System when you expand policies. If it does not exist, just right click on policies and create new key named System.

 

Policies New Key

 

 

4. Now, in the right side right click and choose New > Dword (32-bit) value named as DisableTaskMgr.

 

System Dword 32

 

5. Now, Double click on DisableTaskMgr and change value data to 0.

 

Disabletaskmge 0

 

6. Now, close the registry editor window and reboot PC.

2021年11月17日 星期三

increase windows 10 indexing option search with D Drive

 https://superuser.com/questions/1429042/drive-not-listed-under-windows-10-indexing-options-and-so-not-selectable-for-in


  • Suspecting the drive was not being properly recognized as fixed, I checked the indexing locations again under Indexing Options, recalling that I kept seeing a folder displayed with a long ID string, and a tooltip informing me that that particular location was unavailable. I never assumed this to be a problem since I also have USB drives plugged in/out sometimes:

tooltip

  • PROBLEM FIX: to set the drive to be seen by windows as permanently fixed follow Microsoft's own guide here: https://support.microsoft.com/en-us/help/3083627/internal-sata-drives-show-up-as-removeable-media

  • If for whatever reason the command mentioned in the MS guide doesn't work follow these steps below

    1. open Registry Editor in administrator mode
    2. browse registry folders to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device
    3. add a new "Multi String Value" called "TreatAsInternalPort" and list the bus number for the drive in question:

new registry value

  1. it should look like this once you are done: Registry edited

  2. reboot and check Indexing Options again, you should now see your drive on the selection list.

2021年11月5日 星期五

PR2E Printer

 https://www.drvsky.com/driver/Nantian_PR2E.htm


南天PR2E打印机支持OKI,IBM,LQ,Olivetti等多种仿真模式,其中OKI速度快兼容好,推荐使用OKI仿真。

【PR2E打印参数设置方法】
在关机状态下,同时按住STATION1和STATION2键开机,等待打印机完成初始化,放入一张A4纸,会打印出操作说明。
按下LOCAL键,机器进入设置状态,会打印出菜单项。
STATION1键是确认,STATION2键是切换,LOCAL键是保存配置。
在“配置模式”中,【接口】- 选择【并口】;【并口仿真】-选择【南天-OKI】
在“OKI配置”中使用默认配置即可。

【驱动安装说明】
本站提供了OKI仿真和EPSON LQ1600K仿真的驱动下载。

【OKI 5530SC驱动安装方法】
1. 下载驱动。点击“OKI仿真驱动【WINXP/WIN7/WIN10驱动 32/64位】”下载。
2. 运行驱动。提示是否安装“Drvsky.com 打印机”,点安装,完成安装会自动添加“Oki 5530SC”打印机。
3. 设置端口。打开控制面板-设备和打印机,找到Oki 5530SC打印机,右键选择“打印机属性”,查看“端口”选项,默认是选择LPT1端口,如果是USB转接线使用USB001之类的端口。