[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian 11 installation attempt / walkthrough



On Fri, 23 Dec 2022, Michael Schmitz wrote:

> Am 22.12.2022 um 11:17 schrieb Finn Thain:
> 
> > ip address add 192.168.1.10/24 dev eth0
> > ip link set dev eth0 up
> > ip route add default via 192.168.1.1
> 
> Perhaps add 'ip route add 192.168.1.0/24 dev eth0' in case 'ip address' 
> did not set up the local network route?
> 

It's automatic (given the /24).

> Output of 'ip route show' would be useful.
> 

# ip route show
# ip address add 192.168.1.10/24 dev eth0
# ip route show
# ip link set dev eth0 up
# ip route show
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.10 
# ip route add default via 192.168.1.1
# ip route show
default via 192.168.1.1 dev eth0 
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.10 
# 


Reply to: