Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ECHO off
- cls
- :start
- ECHO.
- ECHO ----------------------------------------------
- ECHO Set Static IPv4 Address And IP Address Info
- ECHO ----------------------------------------------
- ECHO 1. GTPL Broadband : 198.168.2.48
- ECHO 2. You Broadband : 192.168.31.48
- ECHO 3. GTPL Broadband Custom IP Set
- ECHO 4. You Broadband Custom IP Set
- ECHO 5. Show Internet Interface
- ECHO 6. Show IP Address
- ECHO 7. Set Automatic IP DHCP
- ECHO 8. Exit
- ECHO ----------------------------------------------
- ECHO #. Created By VeeRa
- ECHO ----------------------------------------------
- ECHO NOTE : Only For "Ethernet"
- ECHO ----------------------------------------------
- set choice=
- set /p choice= Enter Choice :
- if not '%choice%'=='' set choice=%choice:~0,1%
- if '%choice%'=='1' goto gtpl_b
- if '%choice%'=='2' goto you_b
- if '%choice%'=='3' goto gtpl_b_custom
- if '%choice%'=='4' goto you_b_custom
- if '%choice%'=='5' goto show_net
- if '%choice%'=='6' goto show_ip
- if '%choice%'=='7' goto set_auto
- if '%choice%'=='8' goto exit
- ECHO "%choice%" is not valid, try again
- ECHO.
- goto start
- :gtpl_b
- ECHO:
- ECHO GTPL Broadband Static IP Set
- ECHO:
- set IP=192.168.2.48
- set Sub_Mask=255.255.255.0
- set D_Gate=192.168.2.1
- set DNS=8.8.8.8
- set DNS2=4.2.2.2
- netsh interface ipv4 set address name="Ethernet" static %IP% %Sub_Mask% %D_Gate%
- netsh interface ipv4 set dns name="Ethernet" static %DNS% primary validate=no
- netsh interface ipv4 add dns name="Ethernet" %DNS2% index=2 validate=no
- netsh int ip show config name="Ethernet"
- goto start
- :you_b
- ECHO:
- ECHO You Broadband Static IP Set
- ECHO:
- set IP=192.168.31.48
- set Sub_Mask=255.255.255.0
- set D_Gate=192.168.31.1
- set DNS=8.8.8.8
- set DNS2=4.2.2.2
- netsh interface ipv4 set address name="Ethernet" static %IP% %Sub_Mask% %D_Gate%
- netsh interface ipv4 set dns name="Ethernet" static %DNS% primary validate=no
- netsh interface ipv4 add dns name="Ethernet" %DNS2% index=2 validate=no
- netsh int ip show config name="Ethernet"
- goto start
- :show_net
- netsh interface show interface
- goto start
- :show_ip
- netsh int ip show config name="Ethernet"
- goto start
- :gtpl_b_custom
- ECHO Example : 192.168.2.XXX
- set /p gtpl_ip= Enter IP Address :
- set IP=%gtpl_ip%
- set Sub_Mask=255.255.255.0
- set D_Gate=192.168.2.1
- set DNS=8.8.8.8
- set DNS2=4.2.2.2
- netsh interface ipv4 set address name="Ethernet" static %IP% %Sub_Mask% %D_Gate%
- netsh interface ipv4 set dns name="Ethernet" static %DNS% primary validate=no
- netsh interface ipv4 add dns name="Ethernet" %DNS2% index=2 validate=no
- netsh int ip show config name="Ethernet"
- goto start
- :you_b_custom
- ECHO Example : 192.168.31.XXX
- set /p you_ip= Enter IP Address :
- set IP=%you_ip%
- set Sub_Mask=255.255.255.0
- set D_Gate=192.168.31.1
- set DNS=8.8.8.8
- set DNS2=4.2.2.2
- netsh interface ipv4 set address name="Ethernet" static %IP% %Sub_Mask% %D_Gate%
- netsh interface ipv4 set dns name="Ethernet" static %DNS% primary validate=no
- netsh interface ipv4 add dns name="Ethernet" %DNS2% index=2 validate=no
- netsh int ip show config name="Ethernet"
- goto start
- :set_auto
- netsh interface ip set address "Ethernet" dhcp
- netsh interface ipv4 set dns name="Ethernet" dhcp
- netsh int ip show config name="Ethernet"
- goto start
- :exit
- goto end
- :end
- pause
Add Comment
Please, Sign In to add comment