Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Default gateway -linux

sk@sk:~$ ip route show
default via 192.168.1.1 dev eth1  proto static 
192.168.1.0/24 dev eth1  proto kernel  scope link  src 192.168.1.100  metric 1
Comment

see default gateway linux

ip route
# first line is your default gateway, next lines are your other routes
Comment

linux change default gateway

ip route add default gw {IP-ADDRESS} {INTERFACE-NAME}
Comment

PREVIOUS NEXT
Code Example
Shell :: sed replace from match 
Shell :: To install latest version of something with pip in python 
Shell :: git find commit by message 
Shell :: dockerfile expose 
Shell :: add geckodriver to path linux 
Shell :: install pypy on ubuntu 
Shell :: fix merge conflict in package-lock.json 
Shell :: git unstage 
Shell :: how to find and replace in nano editor 
Shell :: github pull request template 
Shell :: apt-get install plex 
Shell :: get name of files in directory 
Shell :: dev/kvm not found 
Shell :: github merge conflict 
Shell :: awk or statement 
Shell :: how to curl a service inside a pod in kubernetes? 
Shell :: linx delete 
Shell :: how to search in git bash 
Shell :: scp 
Shell :: awk select second field stored in a variable 
Shell :: loop clear and ls lrt command line linux 
Shell :: router dom react 
Php :: Go back URL in Laravel 
Php :: laravel get project root 
Php :: if user logged in wordpress 
Php :: wordpress turn off php warnings 
Php :: Class "AppHttpControllersGuzzle Client" not found 
Php :: autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated. laravel 
Php :: check if includes numbers php 
Php :: refresh seeder laravel 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =