PC Review


Reply
Thread Tools Rate Thread

disable lan through command prompt

 
 
polilop
Guest
Posts: n/a
 
      16th Dec 2004
Is there a way to disable local area connection and enable
through command prompt?
The thing i wont to do is a .bat file which i can
scheduel so it starts or disables a lan connection.


 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      16th Dec 2004

"polilop" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Is there a way to disable local area connection and enable
> through command prompt?
> The thing i wont to do is a .bat file which i can
> scheduel so it starts or disables a lan connection.


Rather than disabling your LAN connection, you could
change the PC's IP address on the fly like so:

netsh interface ip set address "Local Area Connection" static 125.187.7.56
255.0.0.0

This would make it impossible for the machine to communicate
with other devices on the network.


 
Reply With Quote
 
polilop
Guest
Posts: n/a
 
      16th Dec 2004
The thing is that i have a lan connection and a modem connection
when they both are active i cant ping through my modem to the remote comp
but when i disable the local area connection i am able to ping. I wish to
schedule
a bat file which will disable my lan, send a message through my modem
connection and
then activate my lan again. Someone told me to erase the gateway on my lan
but that allso
dosent work.
So when i change to this adress(255.0.0.0) do you think it will work
"Pegasus (MVP)" <(E-Mail Removed)> wrote in message
news:%23UCP6$(E-Mail Removed)...
>
> "polilop" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Is there a way to disable local area connection and enable
>> through command prompt?
>> The thing i wont to do is a .bat file which i can
>> scheduel so it starts or disables a lan connection.

>
> Rather than disabling your LAN connection, you could
> change the PC's IP address on the fly like so:
>
> netsh interface ip set address "Local Area Connection" static 125.187.7.56
> 255.0.0.0
>
> This would make it impossible for the machine to communicate
> with other devices on the network.
>
>



 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      16th Dec 2004
Don't change the Default Gateway; change the IP Address!


"polilop" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> The thing is that i have a lan connection and a modem connection
> when they both are active i cant ping through my modem to the remote comp
> but when i disable the local area connection i am able to ping. I wish to
> schedule
> a bat file which will disable my lan, send a message through my modem
> connection and
> then activate my lan again. Someone told me to erase the gateway on my lan
> but that allso
> dosent work.
> So when i change to this adress(255.0.0.0) do you think it will work
> "Pegasus (MVP)" <(E-Mail Removed)> wrote in message
> news:%23UCP6$(E-Mail Removed)...
> >
> > "polilop" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> >> Is there a way to disable local area connection and enable
> >> through command prompt?
> >> The thing i wont to do is a .bat file which i can
> >> scheduel so it starts or disables a lan connection.

> >
> > Rather than disabling your LAN connection, you could
> > change the PC's IP address on the fly like so:
> >
> > netsh interface ip set address "Local Area Connection" static

125.187.7.56
> > 255.0.0.0
> >
> > This would make it impossible for the machine to communicate
> > with other devices on the network.
> >
> >

>
>



 
Reply With Quote
 
Jetro
Guest
Posts: n/a
 
      17th Dec 2004
Windows assigns the cost of interface (metric) on-the-fly analysing its
declared speed. Thus 10/100Mbps interface (LAN adapter) metric is lower than
any modem interface metric and IP packets are routed on more effective
(best) 10/100Mbps interface. That's why ping is going thru LAN interface.

Increase LAN metric when you establish a dial-up connection using 'route'
command similar to

route change 0.0.0.0 mask 0.0.0.0 192.168.1.1 metric 100 if {interfaceNo}

netsh int del int [name=]<string> deletes a particular interface at the
router completely and
netsh int add int [name=]<string> [[type=]full] adds an interface.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable command prompt? news.microsoft.com Microsoft Windows 2000 Active Directory 2 12th Jan 2004 04:21 PM
How to disable command prompt? news.microsoft.com Microsoft Windows 2000 Setup 1 11th Jan 2004 01:31 AM
How to disable command prompt? news.microsoft.com Microsoft Windows 2000 Security 1 9th Jan 2004 12:17 AM
how do I disable command prompt? news.microsoft.com Microsoft Windows 2000 1 8th Jan 2004 11:11 PM
How do disable command prompt? news.microsoft.com Microsoft Windows 2000 Group Policy 3 8th Jan 2004 08:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:43 AM.